nRF51 SDK - S130 SoftDevice
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
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_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.