NimBLE-Arduino 2.1.2
Loading...
Searching...
No Matches
Bluetooth Host Error Code

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

Detailed Description

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.

Macro Definition Documentation

◆ BLE_HS_ATT_ERR

#define BLE_HS_ATT_ERR (   x)    ((x) ? BLE_HS_ERR_ATT_BASE + (x) : 0)

Converts error to ATT base

◆ BLE_HS_ERR_ATT_BASE

#define BLE_HS_ERR_ATT_BASE   0x100

Error base for ATT errors

◆ BLE_HS_ERR_HCI_BASE

#define BLE_HS_ERR_HCI_BASE   0x200

Error base for HCI errors

◆ BLE_HS_ERR_HW_BASE

#define BLE_HS_ERR_HW_BASE   0x600

Error base for hardware errors

◆ BLE_HS_ERR_L2C_BASE

#define BLE_HS_ERR_L2C_BASE   0x300

Error base for L2CAP errors

◆ BLE_HS_ERR_SM_PEER_BASE

#define BLE_HS_ERR_SM_PEER_BASE   0x500

Error base for remote (peer) Security Manager errors

◆ BLE_HS_ERR_SM_US_BASE

#define BLE_HS_ERR_SM_US_BASE   0x400

Error base for local Security Manager errors

◆ BLE_HS_HCI_ERR

#define BLE_HS_HCI_ERR (   x)    ((x) ? BLE_HS_ERR_HCI_BASE + (x) : 0)

Converts error to HCI base

◆ BLE_HS_HW_ERR

#define BLE_HS_HW_ERR (   x)    (BLE_HS_ERR_HW_BASE + (x))

Converts error to hardware error base

◆ BLE_HS_L2C_ERR

#define BLE_HS_L2C_ERR (   x)    ((x) ? BLE_HS_ERR_L2C_BASE + (x) : 0)

Converts error to L2CAP base

◆ BLE_HS_SM_PEER_ERR

#define BLE_HS_SM_PEER_ERR (   x)    ((x) ? BLE_HS_ERR_SM_PEER_BASE + (x) : 0)

Converts error to remote (peer) Security Manager base

◆ BLE_HS_SM_US_ERR

#define BLE_HS_SM_US_ERR (   x)    ((x) ? BLE_HS_ERR_SM_US_BASE + (x) : 0)

Converts error to local Security Manager base