BlueNRG-MS pack for STM32CubeMX: Bluetooth Status/Error Codes

STM32CubeMX BlueNRG-MS

BlueNRG-MS pack for STM32CubeMX  V4.4.0
The BlueNRG-MS pack is an additional software for STM32CubeMX.
Bluetooth Status/Error Codes

BLE standard and vendor-specific status/error codes. More...

Typedefs

typedef uint8_t tBleStatus
 

Standard error codes

Standard error codes. See Core v 4.1, Vol. 2, part D.

#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)
 

Vendor-specific error codes

Error codes defined by ST related to BlueNRG stack

#define BLE_STATUS_FAILED   (0x41)
 
#define BLE_STATUS_INVALID_PARAMS   (0x42)
 
#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)
 

Library Error Codes

Error codes defined by ST related to MCU library.

#define BLE_STATUS_TIMEOUT   (0xFF)
 
#define BLE_STATUS_PROFILE_ALREADY_INITIALIZED   (0xF0)
 
#define BLE_STATUS_NULL_PARAM   (0xF1)
 

Detailed Description

BLE standard and vendor-specific status/error codes.

Macro Definition Documentation

◆ BLE_INSUFFICIENT_ENC_KEYSIZE

#define BLE_INSUFFICIENT_ENC_KEYSIZE   (0x65)

◆ BLE_STATUS_ADDR_NOT_RESOLVED

#define BLE_STATUS_ADDR_NOT_RESOLVED   (0x48)

◆ BLE_STATUS_CHARAC_ALREADY_EXISTS

#define BLE_STATUS_CHARAC_ALREADY_EXISTS   (0x66)

◆ BLE_STATUS_CSRK_NOT_FOUND

#define BLE_STATUS_CSRK_NOT_FOUND   (0x5A)

◆ BLE_STATUS_DEV_IN_BLACKLIST

#define BLE_STATUS_DEV_IN_BLACKLIST   (0x5F)

◆ BLE_STATUS_DEV_NOT_BONDED

#define BLE_STATUS_DEV_NOT_BONDED   (0x5E)

◆ BLE_STATUS_DEV_NOT_FOUND_IN_DB

#define BLE_STATUS_DEV_NOT_FOUND_IN_DB   (0x5C)

◆ BLE_STATUS_ERROR

#define BLE_STATUS_ERROR   (0x47)

Unexpected error.

◆ BLE_STATUS_FAILED

#define BLE_STATUS_FAILED   (0x41)

The command cannot be executed due to the current state of the device.

◆ BLE_STATUS_INSUFFICIENT_RESOURCES

#define BLE_STATUS_INSUFFICIENT_RESOURCES   (0x64)

◆ BLE_STATUS_INTERVAL_TOO_LARGE

#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.

◆ BLE_STATUS_INVALID_CID

#define BLE_STATUS_INVALID_CID   (0x50)

◆ BLE_STATUS_INVALID_HANDLE

#define BLE_STATUS_INVALID_HANDLE   (0x60)

◆ BLE_STATUS_INVALID_OPERATION

#define BLE_STATUS_INVALID_OPERATION   (0x63)

◆ BLE_STATUS_INVALID_PARAMETER

#define BLE_STATUS_INVALID_PARAMETER   (0x61)

◆ BLE_STATUS_INVALID_PARAMS

#define BLE_STATUS_INVALID_PARAMS   (0x42)

Some parameters are invalid.

◆ BLE_STATUS_IRK_NOT_FOUND

#define BLE_STATUS_IRK_NOT_FOUND   (0x5B)

◆ BLE_STATUS_LENGTH_FAILED

#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.

◆ BLE_STATUS_NEW_INTERVAL_FAILED

#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 sub-multiple for the current anchor period that is between the minimum and the maximum requested intervals.

◆ BLE_STATUS_NO_VALID_SLOT

#define BLE_STATUS_NO_VALID_SLOT   (0x82)

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

◆ BLE_STATUS_NOT_ALLOWED

#define BLE_STATUS_NOT_ALLOWED   (0x46)

It is not allowed to start the procedure (e.g. another the procedure is ongoing or cannot be started on the given handle).

◆ BLE_STATUS_NULL_PARAM

#define BLE_STATUS_NULL_PARAM   (0xF1)

◆ BLE_STATUS_OUT_OF_HANDLE

#define BLE_STATUS_OUT_OF_HANDLE   (0x62)

◆ BLE_STATUS_PROFILE_ALREADY_INITIALIZED

#define BLE_STATUS_PROFILE_ALREADY_INITIALIZED   (0xF0)

◆ BLE_STATUS_SCAN_WINDOW_SHORT

#define BLE_STATUS_SCAN_WINDOW_SHORT   (0x83)

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

◆ BLE_STATUS_SEC_DB_FULL

#define BLE_STATUS_SEC_DB_FULL   (0x5D)

◆ BLE_STATUS_SUCCESS

#define BLE_STATUS_SUCCESS   (0x00)

◆ BLE_STATUS_TIMEOUT

#define BLE_STATUS_TIMEOUT   (0xFF)

◆ ERR_AUTH_FAILURE

#define ERR_AUTH_FAILURE   (0x05)

◆ ERR_CMD_SUCCESS

#define ERR_CMD_SUCCESS   (0x00)

◆ ERR_COMMAND_DISALLOWED

#define ERR_COMMAND_DISALLOWED   (0x0C)

◆ ERR_CONN_END_WITH_MIC_FAILURE

#define ERR_CONN_END_WITH_MIC_FAILURE   (0x3D)

◆ ERR_CONN_FAILED_TO_ESTABLISH

#define ERR_CONN_FAILED_TO_ESTABLISH   (0x3E)

◆ ERR_CONNECTION_TIMEOUT

#define ERR_CONNECTION_TIMEOUT   (0x08)

◆ ERR_CONTROLLER_BUSY

#define ERR_CONTROLLER_BUSY   (0x3A)

◆ ERR_DIRECTED_ADV_TIMEOUT

#define ERR_DIRECTED_ADV_TIMEOUT   (0x3C)

◆ ERR_INSTANT_PASSED

#define ERR_INSTANT_PASSED   (0x28)

◆ ERR_INVALID_HCI_CMD_PARAMS

#define ERR_INVALID_HCI_CMD_PARAMS   (0x12)

◆ ERR_INVALID_LMP_PARAM

#define ERR_INVALID_LMP_PARAM   (0x1E)

◆ ERR_LL_RESP_TIMEOUT

#define ERR_LL_RESP_TIMEOUT   (0x22)

◆ ERR_LMP_PDU_NOT_ALLOWED

#define ERR_LMP_PDU_NOT_ALLOWED   (0x24)

◆ ERR_LOCAL_HOST_TERM_CONN

#define ERR_LOCAL_HOST_TERM_CONN   (0x16)

◆ ERR_MEM_CAPACITY_EXCEEDED

#define ERR_MEM_CAPACITY_EXCEEDED   (0x07)

◆ ERR_PAIR_UNIT_KEY_NOT_SUPP

#define ERR_PAIR_UNIT_KEY_NOT_SUPP   (0x29)

◆ ERR_PIN_OR_KEY_MISSING

#define ERR_PIN_OR_KEY_MISSING   (0x06)

◆ ERR_RMT_DEV_TERM_CONN_LOW_RESRCES

#define ERR_RMT_DEV_TERM_CONN_LOW_RESRCES   (0x14)

◆ ERR_RMT_DEV_TERM_CONN_POWER_OFF

#define ERR_RMT_DEV_TERM_CONN_POWER_OFF   (0x15)

◆ ERR_RMT_USR_TERM_CONN

#define ERR_RMT_USR_TERM_CONN   (0x13)

◆ ERR_UNKNOWN_CONN_IDENTIFIER

#define ERR_UNKNOWN_CONN_IDENTIFIER   (0x02)

◆ ERR_UNKNOWN_HCI_COMMAND

#define ERR_UNKNOWN_HCI_COMMAND   (0x01)

◆ ERR_UNSPECIFIED_ERROR

#define ERR_UNSPECIFIED_ERROR   (0x1F)

◆ ERR_UNSUPP_RMT_FEATURE

#define ERR_UNSUPP_RMT_FEATURE   (0x1A)

◆ ERR_UNSUPPORTED_FEATURE

#define ERR_UNSUPPORTED_FEATURE   (0x11)

◆ FLASH_ERASE_FAILED

#define FLASH_ERASE_FAILED   (0x4B)

◆ FLASH_READ_FAILED

#define FLASH_READ_FAILED   (0x49)

◆ FLASH_WRITE_FAILED

#define FLASH_WRITE_FAILED   (0x4A)

◆ TIMER_INSUFFICIENT_RESOURCES

#define TIMER_INSUFFICIENT_RESOURCES   (0x55)

◆ TIMER_NOT_VALID_LAYER

#define TIMER_NOT_VALID_LAYER   (0x54)

Typedef Documentation

◆ tBleStatus

typedef uint8_t tBleStatus
Generated on Mon Apr 15 2019 18:10:40 for BlueNRG-MS pack for STM32CubeMX by   doxygen 1.8.13