| STM32L - BlueNRG-1 BLE stack APIs, Events and Constants

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

Macros
ble_status.h File Reference

Header file for BLE Stack status codes. More...

`#include <hal_types.h>`

Go to the source code of this file.

## Macros

#define | ERR_CMD_SUCCESS (0x00)
#define | BLE_STATUS_SUCCESS (0x00)
#define | ERR_UNKNOWN_HCI_COMMAND (0x01)
#define | ERR_UNKNOWN_CONN_IDENTIFIER (0x02)
#define | ERR_AUTH_FAILURE (0x05)
#define | ERR_PIN_OR_KEY_MISSING (0x06)
#define | ERR_MEM_CAPACITY_EXCEEDED (0x07)
#define | ERR_CONNECTION_TIMEOUT (0x08)
#define | ERR_COMMAND_DISALLOWED (0x0C)
#define | ERR_UNSUPPORTED_FEATURE (0x11)
#define | ERR_INVALID_HCI_CMD_PARAMS (0x12)
#define | ERR_RMT_USR_TERM_CONN (0x13)
#define | ERR_RMT_DEV_TERM_CONN_LOW_RESRCES (0x14)
#define | ERR_RMT_DEV_TERM_CONN_POWER_OFF (0x15)
#define | ERR_LOCAL_HOST_TERM_CONN (0x16)
#define | ERR_UNSUPP_RMT_FEATURE (0x1A)
#define | ERR_INVALID_LMP_PARAM (0x1E)
#define | ERR_UNSPECIFIED_ERROR (0x1F)
#define | ERR_LL_RESP_TIMEOUT (0x22)
#define | ERR_LMP_PDU_NOT_ALLOWED (0x24)
#define | ERR_INSTANT_PASSED (0x28)
#define | ERR_PAIR_UNIT_KEY_NOT_SUPP (0x29)
#define | ERR_CONTROLLER_BUSY (0x3A)
#define | ERR_DIRECTED_ADV_TIMEOUT (0x3C)
#define | ERR_CONN_END_WITH_MIC_FAILURE (0x3D)
#define | ERR_CONN_FAILED_TO_ESTABLISH (0x3E)
#define | BLE_STATUS_FAILED (0x41)
#define | BLE_STATUS_INVALID_PARAMS (0x42)
#define | BLE_STATUS_BUSY (0x43)
#define | BLE_STATUS_INVALID_LEN_PDU (0x44)
#define | BLE_STATUS_PENDING (0x45)
#define | BLE_STATUS_NOT_ALLOWED (0x46)
#define | BLE_STATUS_ERROR (0x47)
#define | BLE_STATUS_ADDR_NOT_RESOLVED (0x48)
#define | FLASH_READ_FAILED (0x49)
#define | FLASH_WRITE_FAILED (0x4A)
#define | FLASH_ERASE_FAILED (0x4B)
#define | BLE_STATUS_INVALID_CID (0x50)
#define | TIMER_NOT_VALID_LAYER (0x54)
#define | TIMER_INSUFFICIENT_RESOURCES (0x55)
#define | BLE_STATUS_CSRK_NOT_FOUND (0x5A)
#define | BLE_STATUS_IRK_NOT_FOUND (0x5B)
#define | BLE_STATUS_DEV_NOT_FOUND_IN_DB (0x5C)
#define | BLE_STATUS_SEC_DB_FULL (0x5D)
#define | BLE_STATUS_DEV_NOT_BONDED (0x5E)
#define | BLE_STATUS_DEV_IN_BLACKLIST (0x5F)
#define | BLE_STATUS_INVALID_HANDLE (0x60)
#define | BLE_STATUS_INVALID_PARAMETER (0x61)
#define | BLE_STATUS_OUT_OF_HANDLE (0x62)
#define | BLE_STATUS_INVALID_OPERATION (0x63)
#define | BLE_STATUS_INSUFFICIENT_RESOURCES (0x64)
#define | BLE_INSUFFICIENT_ENC_KEYSIZE (0x65)
#define | BLE_STATUS_CHARAC_ALREADY_EXISTS (0x66)
#define | BLE_STATUS_NO_VALID_SLOT (0x82)
#define | BLE_STATUS_SCAN_WINDOW_SHORT (0x83)
#define | BLE_STATUS_NEW_INTERVAL_FAILED (0x84)
#define | BLE_STATUS_INTERVAL_TOO_LARGE (0x85)
#define | BLE_STATUS_LENGTH_FAILED (0x86)
#define | BLE_STATUS_TIMEOUT (0xFF)
#define | BLE_STATUS_PROFILE_ALREADY_INITIALIZED (0xF0)
#define | BLE_STATUS_NULL_PARAM (0xF1)

## Detailed Description

Header file for BLE Stack status codes.

Author
  AMS - VMA RF Application team

Version
  V1.0.0

Date
  21-Sept-2015

Attention

THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.

##
© COPYRIGHT 2015 STMicroelectronics

Definition in file ble_status.h.

## Macro Definition Documentation

#define BLE_INSUFFICIENT_ENC_KEYSIZE (0x65)

Definition at line 82 of file ble_status.h.

#define BLE_STATUS_ADDR_NOT_RESOLVED (0x48)

Definition at line 64 of file ble_status.h.

#define BLE_STATUS_BUSY (0x43)

Definition at line 59 of file ble_status.h.

#define BLE_STATUS_CHARAC_ALREADY_EXISTS (0x66)

Definition at line 83 of file ble_status.h.

#define BLE_STATUS_CSRK_NOT_FOUND (0x5A)

Definition at line 71 of file ble_status.h.

#define BLE_STATUS_DEV_IN_BLACKLIST (0x5F)

Definition at line 76 of file ble_status.h.

#define BLE_STATUS_DEV_NOT_BONDED (0x5E)

Definition at line 75 of file ble_status.h.

#define BLE_STATUS_DEV_NOT_FOUND_IN_DB (0x5C)

Definition at line 73 of file ble_status.h.

#define BLE_STATUS_ERROR (0x47)

Definition at line 63 of file ble_status.h.

#define BLE_STATUS_FAILED (0x41)

Definition at line 57 of file ble_status.h.

#define BLE_STATUS_INSUFFICIENT_RESOURCES (0x64)

Definition at line 81 of file ble_status.h.

#define BLE_STATUS_INTERVAL_TOO_LARGE (0x85)

Returned when the maximum requested interval to be allocated is greater than the current anchor period and there is no multiple of the anchor period that is between the minimum and the maximum requested intervals.

Definition at line 105 of file ble_status.h.

#define BLE_STATUS_INVALID_CID (0x50)

Definition at line 68 of file ble_status.h.

#define BLE_STATUS_INVALID_HANDLE (0x60)

Definition at line 77 of file ble_status.h.

#define BLE_STATUS_INVALID_LEN_PDU (0x44)

Definition at line 60 of file ble_status.h.

#define BLE_STATUS_INVALID_OPERATION (0x63)

Definition at line 80 of file ble_status.h.

#define BLE_STATUS_INVALID_PARAMETER (0x61)

Definition at line 78 of file ble_status.h.

#define BLE_STATUS_INVALID_PARAMS (0x42)

Definition at line 58 of file ble_status.h.

#define BLE_STATUS_IRK_NOT_FOUND (0x5B)

Definition at line 72 of file ble_status.h.

#define BLE_STATUS_LENGTH_FAILED (0x86)

Returned when the current anchor period or a new one can be found that is compatible to the interval range requested by the new slot but the maximum available length that can be allocated is less than the minimum requested slot length.

Definition at line 111 of file ble_status.h.

#define BLE_STATUS_NEW_INTERVAL_FAILED (0x84)

Returned when the maximum requested interval to be allocated is shorter then the current anchor period and a there is no submultiple for the current anchor period that is between the minimum and the maximum requested intervals.

Definition at line 99 of file ble_status.h.

#define BLE_STATUS_NO_VALID_SLOT (0x82)

Returned when no valid slots are available (e.g. when there are no available state machines).

Definition at line 89 of file ble_status.h.

#define BLE_STATUS_NOT_ALLOWED (0x46)

Definition at line 62 of file ble_status.h.

#define BLE_STATUS_NULL_PARAM (0xF1)

Definition at line 118 of file ble_status.h.

#define BLE_STATUS_OUT_OF_HANDLE (0x62)

Definition at line 79 of file ble_status.h.

#define BLE_STATUS_PENDING (0x45)

Definition at line 61 of file ble_status.h.

#define BLE_STATUS_PROFILE_ALREADY_INITIALIZED (0xF0)

Definition at line 117 of file ble_status.h.

#define BLE_STATUS_SCAN_WINDOW_SHORT (0x83)

Returned when a scan window shorter than minimum allowed value has been requested (i.e. 2ms)

Definition at line 93 of file ble_status.h.

#define BLE_STATUS_SEC_DB_FULL (0x5D)

Definition at line 74 of file ble_status.h.

#define BLE_STATUS_SUCCESS (0x00)

Definition at line 32 of file ble_status.h.

#define BLE_STATUS_TIMEOUT (0xFF)

Definition at line 116 of file ble_status.h.

#define ERR_AUTH_FAILURE (0x05)

Definition at line 35 of file ble_status.h.

#define ERR_CMD_SUCCESS (0x00)

Definition at line 31 of file ble_status.h.

#define ERR_COMMAND_DISALLOWED (0x0C)

Definition at line 39 of file ble_status.h.

#define ERR_CONN_END_WITH_MIC_FAILURE (0x3D)

Definition at line 55 of file ble_status.h.

#define ERR_CONN_FAILED_TO_ESTABLISH (0x3E)

Definition at line 56 of file ble_status.h.

#define ERR_CONNECTION_TIMEOUT (0x08)

Definition at line 38 of file ble_status.h.

#define ERR_CONTROLLER_BUSY (0x3A)

Definition at line 53 of file ble_status.h.

#define ERR_DIRECTED_ADV_TIMEOUT (0x3C)

Definition at line 54 of file ble_status.h.

#define ERR_INSTANT_PASSED (0x28)

Definition at line 51 of file ble_status.h.

#define ERR_INVALID_HCI_CMD_PARAMS (0x12)

Definition at line 41 of file ble_status.h.

#define ERR_INVALID_LMP_PARAM (0x1E)

Definition at line 47 of file ble_status.h.

#define ERR_LL_RESP_TIMEOUT (0x22)

Definition at line 49 of file ble_status.h.

#define ERR_LMP_PDU_NOT_ALLOWED (0x24)

Definition at line 50 of file ble_status.h.

#define ERR_LOCAL_HOST_TERM_CONN (0x16)

Definition at line 45 of file ble_status.h.

#define ERR_MEM_CAPACITY_EXCEEDED (0x07)

Definition at line 37 of file ble_status.h.

#define ERR_PAIR_UNIT_KEY_NOT_SUPP (0x29)

Definition at line 52 of file ble_status.h.

#define ERR_PIN_OR_KEY_MISSING (0x06)

Definition at line 36 of file ble_status.h.

#define ERR_RMT_DEV_TERM_CONN_LOW_RESRCES (0x14)

Definition at line 43 of file ble_status.h.

#define ERR_RMT_DEV_TERM_CONN_POWER_OFF (0x15)

Definition at line 44 of file ble_status.h.

#define ERR_RMT_USR_TERM_CONN (0x13)

Definition at line 42 of file ble_status.h.

#define ERR_UNKNOWN_CONN_IDENTIFIER (0x02)

Definition at line 34 of file ble_status.h.

#define ERR_UNKNOWN_HCI_COMMAND (0x01)

Definition at line 33 of file ble_status.h.

#define ERR_UNSPECIFIED_ERROR (0x1F)

Definition at line 48 of file ble_status.h.

#define ERR_UNSUPP_RMT_FEATURE (0x1A)

Definition at line 46 of file ble_status.h.

#define ERR_UNSUPPORTED_FEATURE (0x11)

Definition at line 40 of file ble_status.h.

#define FLASH_ERASE_FAILED (0x4B)

Definition at line 67 of file ble_status.h.

#define FLASH_READ_FAILED (0x49)

Definition at line 65 of file ble_status.h.

#define FLASH_WRITE_FAILED (0x4A)

Definition at line 66 of file ble_status.h.

#define TIMER_INSUFFICIENT_RESOURCES (0x55)

Definition at line 70 of file ble_status.h.

#define TIMER_NOT_VALID_LAYER (0x54)

Definition at line 69 of file ble_status.h.