![]() |
S132 SoftDevice
v5.0.0
|
Choose documentation: | nRF5 SDK | S112 SoftDevice API | S132 SoftDevice API | S140 SoftDevice API | S212 SoftDevice API | S332 SoftDevice API |
Macros | |
#define | BLE_GAP_CONN_SEC_MODE_SET_NO_ACCESS(ptr) do {(ptr)->sm = 0; (ptr)->lv = 0;} while(0) |
Set sec_mode pointed to by ptr to have no access rights. | |
#define | BLE_GAP_CONN_SEC_MODE_SET_OPEN(ptr) do {(ptr)->sm = 1; (ptr)->lv = 1;} while(0) |
Set sec_mode pointed to by ptr to require no protection, open link. | |
#define | BLE_GAP_CONN_SEC_MODE_SET_ENC_NO_MITM(ptr) do {(ptr)->sm = 1; (ptr)->lv = 2;} while(0) |
Set sec_mode pointed to by ptr to require encryption, but no MITM protection. | |
#define | BLE_GAP_CONN_SEC_MODE_SET_ENC_WITH_MITM(ptr) do {(ptr)->sm = 1; (ptr)->lv = 3;} while(0) |
Set sec_mode pointed to by ptr to require encryption and MITM protection. | |
#define | BLE_GAP_CONN_SEC_MODE_SET_LESC_ENC_WITH_MITM(ptr) do {(ptr)->sm = 1; (ptr)->lv = 4;} while(0) |
Set sec_mode pointed to by ptr to require LESC encryption and MITM protection. | |
#define | BLE_GAP_CONN_SEC_MODE_SET_SIGNED_NO_MITM(ptr) do {(ptr)->sm = 2; (ptr)->lv = 1;} while(0) |
Set sec_mode pointed to by ptr to require signing or encryption, no MITM protection needed. | |
#define | BLE_GAP_CONN_SEC_MODE_SET_SIGNED_WITH_MITM(ptr) do {(ptr)->sm = 2; (ptr)->lv = 2;} while(0) |
Set sec_mode pointed to by ptr to require signing or encryption with MITM protection. | |