nRF51 SDK: ble_gap_scan_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_scan_params_t Struct Reference
Generic Access Profile (GAP) | Structures | Generic Access Profile (GAP)

GAP scanning parameters. More...

`#include <ble_gap.h>`

## Data Fields

uint8_t | filter
uint8_t | active: 1
uint8_t | selective: 1
uint16_t | interval
uint16_t | window
uint16_t | timeout
ble_gap_whitelist_t * | p_whitelist

## Detailed Description

GAP scanning parameters.

## Field Documentation

uint8_t ble_gap_scan_params_t::active

If 1, perform active scanning (scan requests).

uint8_t ble_gap_scan_params_t::filter

Filter based on discovery mode, see BLE_GAP_DISC_MODES.

uint16_t ble_gap_scan_params_t::interval

Scan interval between 0x0020 and 0x4000 in 0.625ms units (20ms to 10.24s).

Scan interval between 0x0004 and 0x4000 in 0.625ms units (2.5ms to 10.24s).

ble_gap_whitelist_t* ble_gap_scan_params_t::p_whitelist

Pointer to whitelist, NULL if none is given.

uint8_t ble_gap_scan_params_t::selective

If 1, ignore unknown devices (non whitelisted).

uint16_t ble_gap_scan_params_t::timeout

Scan timeout between 0x0001 and 0x3FFF in seconds, 0x0000 disables timeout.

Scan timeout between 0x0001 and 0xFFFF in seconds, 0x0000 disables timeout.

uint16_t ble_gap_scan_params_t::window

Scan window between 0x0004 and 0x4000 in 0.625ms units (2.5ms to 10.24s).