![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
Definitions of common macros and helper functions. More...
Macros | |
| #define | ATT_OPCODE_LEN sizeof(uint8_t) |
| Length of the Attribute Opcode parameter in an Attribute PDU. | |
| #define | ATT_HANDLE_LEN sizeof(uint16_t) |
| Length of the Attribute Handle parameter in an Attribute PDU. | |
| #define | BYTES_TO_WORDS(n_bytes) |
| Calculate how many 32-bit words are needed to hold n_bytes. | |
| #define | BLE_GAP_CONN_SEC_MODE_NO_ACCESS |
| Set sec_mode to have no access rights. | |
| #define | BLE_GAP_CONN_SEC_MODE_OPEN |
| Set sec_mode to require no protection, open link. | |
| #define | BLE_GAP_CONN_SEC_MODE_ENC_NO_MITM |
| Set sec_mode to require encryption, but no MITM protection. | |
| #define | BLE_GAP_CONN_SEC_MODE_ENC_WITH_MITM |
| Set sec_mode to require encryption and MITM protection. | |
| #define | BLE_GAP_CONN_SEC_MODE_LESC_ENC_WITH_MITM |
| Set sec_mode to require LESC encryption and MITM protection. | |
Functions | |
| static bool | is_notification_enabled (const uint8_t *gatts_value) |
| Read CCCD value from data and check if notifications are enabled. | |
| static bool | is_indication_enabled (const uint8_t *gatts_value) |
| Read CCCD value from data and check if indications are enabled. | |
| static bool | ble_gap_conn_sec_mode_equal (const ble_gap_conn_sec_mode_t *a, const ble_gap_conn_sec_mode_t *b) |
| Compare GAP connection security mode. | |
Definitions of common macros and helper functions.