ble_gap_slave_state struct
The state of the in-progress slave connection. If no slave connection is currently in progress, then the op field is set to BLE_GAP_OP_NULL.
Syntax
struct ble_gap_slave_state
{
uint8_t op;
unsigned int our_addr_type:2;
unsigned int preempted:1;
unsigned int connectable:1;
#if MYNEWT_VAL(BLE_EXT_ADV)
unsigned int configured:1;
unsigned int scannable:1;
unsigned int directed:1;
unsigned int high_duty_directed:1;
unsigned int legacy_pdu:1;
unsigned int rnd_addr_set:1;
#if MYNEWT_VAL(BLE_PERIODIC_ADV)
unsigned int periodic_configured:1;
uint8_t periodic_op;
#endif
uint8_t rnd_addr[6];
#else
unsigned int exp_set:1;
ble_npl_time_t exp_os_ticks;
#endif
ble_gap_event_fn *cb;
void *cb_arg;
};
Fields
Set to 1 if advertising was preempted.