nRF51 SDK: ble_gap_sec_params_t Struct Reference

| nRF51 SDK

- Home
- Related Pages
- API Reference
- Data Structures

- Data Structures
- Data Structure Index
- Data Fields

All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Data Fields
ble_gap_sec_params_t Struct Reference
Generic Access Profile (GAP) | Structures | Generic Access Profile (GAP)

GAP security parameters. More...

`#include <ble_gap.h>`

## Data Fields

uint16_t | timeout
uint8_t | bond: 1
uint8_t | mitm: 1
uint8_t | io_caps: 3
uint8_t | oob: 1
uint8_t | min_key_size
uint8_t | max_key_size
ble_gap_sec_kdist_t | kdist_periph
ble_gap_sec_kdist_t | kdist_central

## Detailed Description

GAP security parameters.

## Field Documentation

uint8_t ble_gap_sec_params_t::bond

Perform bonding.

uint8_t ble_gap_sec_params_t::io_caps

IO capabilities, see BLE_GAP_IO_CAPS.

ble_gap_sec_kdist_t ble_gap_sec_params_t::kdist_central

Key distribution bitmap: keys that the central device will distribute.

ble_gap_sec_kdist_t ble_gap_sec_params_t::kdist_periph

Key distribution bitmap: keys that the peripheral device will distribute.

uint8_t ble_gap_sec_params_t::max_key_size

Maximum encryption key size in octets between min_key_size and 16.

uint8_t ble_gap_sec_params_t::min_key_size

Minimum encryption key size in octets between 7 and 16.

Minimum encryption key size in octets between 7 and 16. If 0 then not applicable in this instance.

uint8_t ble_gap_sec_params_t::mitm

Man In The Middle protection required.

uint8_t ble_gap_sec_params_t::oob

Out Of Band data available.

uint16_t ble_gap_sec_params_t::timeout

Timeout for SMP transactions or Security Request in seconds, see sd_ble_gap_authenticate and sd_ble_gap_sec_params_reply for more information.