|
| #define | PBL_BT_ERRNO_WITH_INTERNAL_ERROR(e) ((int)PBL_BT_ERRNO_INTERNAL_ERROR_BEGIN - e) |
| | Map a legacy stack error to enum pbl_bt_errno.
|
| |
| #define | PBL_BT_ERRNO_WITH_HCI_ERROR(e) ((int)PBL_BT_ERRNO_HCI_ERROR_BEGIN + e) |
| | Map an HCI error to enum pbl_bt_errno.
|
| |
| #define | PBL_BT_SERVICE_INVALID ((pbl_bt_service_t)0) |
| | Invalid service reference.
|
| |
| #define | PBL_BT_CHARACTERISTIC_INVALID ((pbl_bt_characteristic_t)0) |
| | Invalid characteristic reference.
|
| |
| #define | PBL_BT_DESCRIPTOR_INVALID ((pbl_bt_descriptor_t)0) |
| | Invalid descriptor reference.
|
| |
| #define | PBL_BT_BONDING_ID_INVALID (0xFFU) |
| | Invalid bonding identifier.
|
| |
| #define | PBL_BT_CCCD_ID_INVALID (0xFFU) |
| | Invalid CCCD entry identifier.
|
| |
| #define | PBL_BT_ADDR_SIZE (sizeof(struct pbl_bt_addr)) |
| | Size of a struct pbl_bt_addr in bytes.
|
| |
| #define | PBL_BT_ADDR_FMT "%02X:%02X:%02X:%02X:%02X:%02X" |
| | printf() format of an address, as XX:XX:XX:XX:XX:XX.
|
| |
| #define | PBL_BT_ADDR_FMT_BUFFER_SIZE (18) |
| | Buffer size for an address printed with PBL_BT_ADDR_FMT, including the terminator.
|
| |
| #define | PBL_BT_BD_ADDR_FMT "0x%02X%02X%02X%02X%02X%02X" |
| | printf() format of an address, as 0xXXXXXXXXXXXX.
|
| |
| #define | PBL_BT_BD_ADDR_FMT_BUFFER_SIZE (15) |
| | Buffer size for an address printed with PBL_BT_BD_ADDR_FMT, including the terminator.
|
| |
| #define | PBL_BT_DEVICE_NAME_BUFFER_SIZE (20) |
| | Buffer size of a device name, including the terminator.
|
| |
| #define | PBL_BT_ADDR_XPLODE(a) (a).octets[5], (a).octets[4], (a).octets[3], (a).octets[2], (a).octets[1], (a).octets[0] |
| | Expand an address into the printf() arguments of PBL_BT_ADDR_FMT, most significant octet first.
|
| |
| #define | PBL_BT_ADDR_XPLODE_PTR(a) (a)->octets[5], (a)->octets[4], (a)->octets[3], (a)->octets[2], (a)->octets[1], (a)->octets[0] |
| | PBL_BT_ADDR_XPLODE() taking a pointer.
|
| |
| #define | PBL_BT_DEVICE_INVALID ((const struct pbl_bt_device){}) |
| | Invalid (all zero) struct pbl_bt_device.
|
| |
| #define | PBL_BT_DEVICE_INTERNAL_INVALID ((const struct pbl_bt_device_internal){}) |
| | Invalid (all zero) struct pbl_bt_device_internal.
|
| |
| #define | PBL_BT_AD_REPORT_DATA_MAX_LENGTH (31) |
| | Maximum size in bytes of advertising data or scan response data.
|
| |
| #define | PBL_BT_LL_CONN_INTV_MIN_SLOTS (6) |
| | Minimum connection interval, in 1.25 ms slots.
|
| |
| #define | PBL_BT_LL_CONN_INTV_MAX_SLOTS (3200) |
| | Maximum connection interval, in 1.25 ms slots.
|
| |
| #define | PBL_BT_LL_SUPERVISION_TIMEOUT_MIN_MS (100) |
| | Minimum supervision timeout in milliseconds.
|
| |
| #define | PBL_BT_SIG_UUID_EXPAND(u) |
| | Compile-time version of bt_uuid_expand_32bit() and bt_uuid_expand_16bit().
|
| |
|
Bits of the Flags AD type, see Supplement to the Bluetooth Core Specification, Part A, 1.3.
|
| #define | PBL_BT_AD_FLAGS_LIM_DISCOVERABLE_MASK (1 << 0) |
| | LE Limited Discoverable Mode.
|
| |
| #define | PBL_BT_AD_FLAGS_GEN_DISCOVERABLE_MASK (1 << 1) |
| | LE General Discoverable Mode.
|
| |
| #define | PBL_BT_AD_FLAGS_BR_EDR_NOT_SUPPORTED_MASK (1 << 2) |
| | BR/EDR Not Supported.
|
| |
| #define | PBL_BT_AD_FLAGS_LE_BR_EDR_SIMULT_CONTROLLER_MASK (1 << 3) |
| | Simultaneous LE and BR/EDR to Same Device Capable (Controller).
|
| |
| #define | PBL_BT_AD_FLAGS_LE_BR_EDR_SIMULT_HOST_MASK (1 << 4) |
| | Simultaneous LE and BR/EDR to Same Device Capable (Host).
|
| |