| S130 SoftDevice v2.0.1 |

Choose documentation: | nRF5 SDK | S130 SoftDevice API | S132 SoftDevice API | S212 SoftDevice API | S332 SoftDevice API

All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Macros
GAP attribute security requirement setters
Defines

## 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.