NimBLE-Arduino 2.1.2
|
Bluetooth Host Error Code. More...
Macros | |
#define | BLE_HS_ERR_ATT_BASE 0x100 |
#define | BLE_HS_ATT_ERR(x) ((x) ? BLE_HS_ERR_ATT_BASE + (x) : 0) |
#define | BLE_HS_ERR_HCI_BASE 0x200 |
#define | BLE_HS_HCI_ERR(x) ((x) ? BLE_HS_ERR_HCI_BASE + (x) : 0) |
#define | BLE_HS_ERR_L2C_BASE 0x300 |
#define | BLE_HS_L2C_ERR(x) ((x) ? BLE_HS_ERR_L2C_BASE + (x) : 0) |
#define | BLE_HS_ERR_SM_US_BASE 0x400 |
#define | BLE_HS_SM_US_ERR(x) ((x) ? BLE_HS_ERR_SM_US_BASE + (x) : 0) |
#define | BLE_HS_ERR_SM_PEER_BASE 0x500 |
#define | BLE_HS_SM_PEER_ERR(x) ((x) ? BLE_HS_ERR_SM_PEER_BASE + (x) : 0) |
#define | BLE_HS_ERR_HW_BASE 0x600 |
#define | BLE_HS_HW_ERR(x) (BLE_HS_ERR_HW_BASE + (x)) |
Bluetooth Host Error Code.
Defines error codes returned by Bluetooth host. If error comes from specific component (eg L2CAP or Security Manager) it is shifted by base allowing to identify component.
#define BLE_HS_ATT_ERR | ( | x | ) | ((x) ? BLE_HS_ERR_ATT_BASE + (x) : 0) |
Converts error to ATT base
#define BLE_HS_ERR_ATT_BASE 0x100 |
Error base for ATT errors
#define BLE_HS_ERR_HCI_BASE 0x200 |
Error base for HCI errors
#define BLE_HS_ERR_HW_BASE 0x600 |
Error base for hardware errors
#define BLE_HS_ERR_L2C_BASE 0x300 |
Error base for L2CAP errors
#define BLE_HS_ERR_SM_PEER_BASE 0x500 |
Error base for remote (peer) Security Manager errors
#define BLE_HS_ERR_SM_US_BASE 0x400 |
Error base for local Security Manager errors
#define BLE_HS_HCI_ERR | ( | x | ) | ((x) ? BLE_HS_ERR_HCI_BASE + (x) : 0) |
Converts error to HCI base
#define BLE_HS_HW_ERR | ( | x | ) | (BLE_HS_ERR_HW_BASE + (x)) |
Converts error to hardware error base
#define BLE_HS_L2C_ERR | ( | x | ) | ((x) ? BLE_HS_ERR_L2C_BASE + (x) : 0) |
Converts error to L2CAP base
#define BLE_HS_SM_PEER_ERR | ( | x | ) | ((x) ? BLE_HS_ERR_SM_PEER_BASE + (x) : 0) |
Converts error to remote (peer) Security Manager base
#define BLE_HS_SM_US_ERR | ( | x | ) | ((x) ? BLE_HS_ERR_SM_US_BASE + (x) : 0) |
Converts error to local Security Manager base