R1 code for micro:bit based train controller code, requires second micro:bit running rx code to operate - see https://meanderingpi.wordpress.com/ for more information
Fork of nrf51-sdk by
ble_gap_adv_params_t Struct Reference
[Structures]
GAP advertising parameters. More...
#include <ble_gap.h>
Data Fields | |
uint8_t | type |
See GAP Advertising types. | |
ble_gap_addr_t * | p_peer_addr |
For BLE_GAP_ADV_TYPE_ADV_DIRECT_IND mode only, known peer address. | |
uint8_t | fp |
Filter Policy, see GAP Advertising filter policies. | |
ble_gap_whitelist_t * | p_whitelist |
Pointer to whitelist, NULL if no whitelist or the current active whitelist is to be used. | |
uint16_t | interval |
Advertising interval between 0x0020 and 0x4000 in 0.625 ms units (20ms to 10.24s), see GAP Advertising interval max and min. | |
uint16_t | timeout |
Advertising timeout between 0x0001 and 0x3FFF in seconds, 0x0000 disables timeout. | |
ble_gap_adv_ch_mask_t | channel_mask |
Advertising channel mask. |
Detailed Description
GAP advertising parameters.
Definition at line 472 of file ble_gap.h.
Field Documentation
uint8_t fp |
Filter Policy, see GAP Advertising filter policies.
uint16_t interval |
Advertising interval between 0x0020 and 0x4000 in 0.625 ms units (20ms to 10.24s), see GAP Advertising interval max and min.
- If type equals BLE_GAP_ADV_TYPE_ADV_DIRECT_IND, this parameter must be set to 0 for high duty cycle directed advertising.
- If type equals BLE_GAP_ADV_TYPE_ADV_DIRECT_IND, set BLE_GAP_ADV_INTERVAL_MIN <= interval <= BLE_GAP_ADV_INTERVAL_MAX for low duty cycle advertising.
uint16_t timeout |
Advertising timeout between 0x0001 and 0x3FFF in seconds, 0x0000 disables timeout.
See also GAP Advertising timeout values. If type equals BLE_GAP_ADV_TYPE_ADV_DIRECT_IND, this parameter must be set to 0 for High duty cycle directed advertising.
uint8_t type |
Generated on Tue Jul 12 2022 19:00:14 by 1.7.2