S132 SoftDevice v5.0.0-1.alpha
Macros
GAP attribute security requirement setters

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.
 

Detailed Description

See ble_gap_conn_sec_mode_t.


Documentation feedback | Developer Zone | Subscribe | Updated