Go to the documentation of this file.
55 #ifndef __BLE_GAPC_H__
56 #define __BLE_GAPC_H__
68 #define BLE_GAP_CHNL_MAP_LEN 0x05
69 #define BLE_GAP_FEATS_LEN 0x08
70 #define BLE_GAP_ADDR_LEN 0x06
71 #define BLE_GAP_INVALID_CONN_INDEX 0xFF
74 #define BLE_GAP_MIN_CTE_LEN 0x02
75 #define BLE_GAP_MAX_CTE_LEN 0x14
78 #define BLE_GAP_MIN_CTE_CNT 0x01
79 #define BLE_GAP_MAX_CTE_CNT 0x10
81 #define BLE_GAP_MIN_IQ_SAMPLE_NUM 0x09
82 #define BLE_GAP_MAX_IQ_SAMPLE_NUM 0x52
84 #define BLE_GAP_MAX_GDX_RANGING_CH 20
@ BLE_GAP_PWR_REMOTE_TX_CHG
Remote transmit power changed.
int16_t rssi
RSSI units: 0.1 dBm, range -1270 to +200.
uint16_t sync_hdl
Sync handle.
uint8_t zone_entered
Zone entered, see ble_gap_path_loss_zone_t.
uint8_t max_switching_pattern_len
Max length of switching pattern (number of antenna IDs in the pattern), range 0x02 to 0x4B.
@ BLE_GAP_LL_ROLE_SLAVE
Slave role.
uint8_t slot_dur
Slot durations (1: GAP_SLOT_1US | 2: GAP_SLOT_2US), see ble_gap_switching_sampling_type_t.
ble_gap_dev_info_type_t info_type
Device info type.
uint8_t cte_type
Type of Constant Tone Extension device should sync on (.
uint8_t index
Advertsing index.
ble_gap_addr_type_t
The identity address type.
Default Subrate command param.
uint8_t cte_type
CTE type (0: GAP_CET_AOA | 1: GAP_CET_AOD_1US | 2: GAP_CET_AOD_2US),.
uint8_t adv_sid
Advertising SID , valid only for periodic advertising report.
ble_gap_pwr_lvl_flag_t
Transmit Power level flag.
Path loss threshold reporting info event for BLE_GAPC_EVT_PATH_LOSS_THRESHOLD_REPORT.
uint16_t ble_gap_latency_get(uint8_t conn_idx, uint16_t *latency)
Get connection's Latency.
@ BLE_GAP_PATH_LOSS_HIGH
Entered High zone.
uint16_t appearance
Device appearance.
uint16_t ble_gap_path_loss_report_enable_set(uint8_t conn_idx, bool enable_flag)
Enable or disable path loss reporting for the connection identified by the conn_idx.
uint16_t continuation_number
Connection continuation number value.
RF path compensation values info.
Get broadcast address struct.
Device information data struct.
ble_gap_peer_info_t peer_info
Peer info.
Sync established indication.
uint16_t con_latency
Connection latency value.
int8_t max_tx_pwr_lvl
Max transmit power level (dBm).
#define BLE_GAP_MAX_IQ_SAMPLE_NUM
The maximum IQ sample number.
@ BLE_GAP_ADDR_TYPE_PUBLIC
Public (identity) address.
Connection complete event for BLE_GAPC_EVT_CONNECTED.
ble_gap_peer_features_ind_t peer_features
Features info.
ble_gap_addr_t peer_addr
Peer device bd address.
uint16_t con_evt_cnt
Connection event counter.
uint8_t nb_samples
Number of samples.
@ BLE_GAP_PHY_1M
LE 1M PHY.
@ GAP_PHY_LE_CODED
LE Coded PHY preferred for an active link.
ble_gapc_set_dev_info_t info
Device info data.
ble_gap_evt_phy_update_t phy_update
PHY update parameters.
Ranging sample report event for BLE_GAPC_EVT_RANGING_SAMPLE_REPORT.
ble_gap_evt_disconnected_t disconnected
Disconnection parameters.
uint16_t tx_path_comp
RF TX path compensation.
uint8_t per_sync_idx
Periodic syncronization index, valid only for periodic advertising report.
uint16_t length
Maximum advertising data length supported by controller.
uint16_t subrate_factor
subrate factor value.
uint16_t subrate_max
Maximum subrate factor allowed in requests by a Peripheral(Range: 0x0001 - 0x01F4,...
uint8_t rssi_antenna_id
RSSI antenna ID.
int32_t iq_sample_addr
sample address
uint8_t phy_second
Secondary PHY on which advertising report has been received.
uint16_t interval_max
Maximum value for the connection interval.
ble_gap_antenna_inf_t dev_antenna_inf
Device antenna information.
@ BLE_GAP_LL_ROLE_MASTER
Master role.
uint8_t phy
Phy see ble_gap_phy_type_t.
uint16_t slave_latency
Slave latency for the connection in number of connection events.
ble_gap_dev_rf_path_comp_ind_t dev_rf_path_comp
RF path compensation values.
uint8_t lmp_vers
LMP version.
uint8_t slot_dur
Slot durations (1: GAP_SLOT_1US | 2: GAP_SLOT_2US), see ble_gap_switching_sampling_type_t.
uint16_t suppted_max_rx_time
Maximum time, in microseconds, that the local Controller supports for reception of a single Link Laye...
uint16_t sup_timeout
Supervision timeout for the LE link.
uint16_t sup_timeout
Connection supervision timeout.
Default periodic advertising synchronization transfer parameters.
Disconnection event for BLE_GAPC_EVT_DISCONNECTED.
The Structure for BLE Connection Arrangement.
uint8_t adv_type
Advertising type.
uint8_t high_thr
High threshold for the path loss (dB).
ble_gap_evt_peer_info_t peer_info
Peer info indication parameters.
@ BLE_GAP_PHY_CODED_S8
LE Coded PHY with S=8 data coding.
uint8_t slot_dur
Slot durations (1: GAP_SLOT_1US | 2: GAP_SLOT_2US), see ble_gap_switching_sampling_type_t.
ble_gap_evt_conn_iq_report_t conn_iq_report
Connection IQ Report info parameters.
Get peer info event for BLE_GAPC_EVT_PEER_INFO_GOT.
uint8_t cte_req_type
The type for requested cte, see ble_gap_cte_type_t.
uint16_t max_rx_time
The maximum time that the local Controller will take to RX.
@ BLE_GAP_OPCODE_LEPSM_REGISTER
LEPSM register operation.
The struct of broadcast address with broadcast type.
ble_gap_dev_info_type_t info_type
Device info type.
ble_gap_phy_type_t
Phy for power control management.
ble_gap_evt_ranging_cmp_ind_t ranging_cmp_ind
Remote transmit power read indication info.
uint16_t ble_gap_per_adv_sync_trans(uint8_t conn_idx, uint8_t per_sync_idx, uint16_t service_data)
Send synchronization information about the periodic advertising identified by the sync_hdl parameter ...
uint16_t subrate_min
Minimum subrate factor allowed in requests by a Peripheral(Range: 0x0001 - 0x01F4,...
uint16_t hci_subver
HCI subversion.
Local transmit power read indication info event for BLE_GAPC_EVT_LOCAL_TX_POWER_READ.
uint8_t rx_phy
LE PHY for data reception.
uint16_t serv_data
Service data.
@ BLE_GAP_PWR_MID_LVL
Transmit power level is between minimum and max level.
ble_gap_evt_path_loss_threshold_report_t path_loss_threshold_reoprt
Path loss threshold reporting info parameters.
PHY update event for BLE_GAPC_EVT_PHY_UPDATED.
uint16_t rx_path_comp
RF RX path compensation.
uint8_t hci_ver
HCI version.
int8_t delta
Change in transmit power level (dBm).
uint16_t interval_min
Minimum value for the connection interval.
@ BLE_GAP_CTE_TYPE_AOD_1US
Allow AoD Constant Tone Extension Response with 1us slots.
GAP Device inforamtion write indication.
uint16_t ble_subrate_set_host_feature(bool supp_flag)
Set Subrate feature.
uint8_t nb_samples
Number of samples.
@ BLE_GAP_CTE_TYPE_AOA
Allow AoA Constant Tone Extension Response.
uint8_t reason
Reason see ble_gap_tx_pwr_change_report_reason_t.
uint16_t ble_gap_subrate_request(uint8_t conn_idx, const ble_gap_subrate_req_t *p_subrate_req)
Subrate Request command.
uint16_t superv_timeout
Maximum supervision timeout allowed in requests by a Peripheral.
Number of available advertising sets info.
ble_gap_tx_pwr_change_report_reason_t
Transmit power change reporting reason.
uint16_t max_latency
Maximum Peripheral latency allowed in requests by a Peripheral.
uint16_t continuation_num
Minimum number of underlying connection events to remain active.
uint8_t * antenna_id
List of Antenna IDs in the pattern.
uint16_t length
Report length.
uint16_t ble_gap_remote_tx_pwr_level_read(uint8_t conn_idx, ble_gap_phy_type_t phy)
Read the remote transmit power levels for the connection identified by the conn_idx.
Name of peer device indication event for BLE_GAPC_EVT_PEER_NAME_GOT.
uint8_t channel_idx
The index of the channel on which the packet was received, range 0x00 to 0x24.
uint16_t lmp_subvers
LMP subversion.
@ BLE_GAP_SLOT_1US
Switching and sampling slots are 1us each.
Ranging complete indication event for BLE_GAPC_EVT_RANGING_CMP_IND.
uint32_t interval
Connection Interval (in 312.5 us).
uint8_t pkt_status
Packet status,.
int8_t curr_tx_pwr_lvl
Current transmit power level (dBm).
@ BLE_GAP_PATH_LOSS_LOW
Entered Low zone.
uint8_t rssi_antenna_id
RSSI antenna ID.
ble_gap_evt_tx_pwr_change_report_t tx_pwr_change_report
Transmit power change reporting info parameters.
ble_gap_max_adv_data_len_ind_t max_adv_data_len
Maximum advertising data length info.
ble_gap_evt_peer_name_get_t peer_name
Peer device name indication parameters.
ble_gap_chnl_map_t chnl_map
channel map.
ble_gap_prefer_phy_t
The prefer phy type.
uint8_t * antenna_id
List of Antenna IDs in the pattern.
uint8_t max_cte_len
Max CTE length, range 0x02 to 0x14.
ble_gap_evt_dev_info_set_t dev_info_ind
Device info parameters.
uint8_t rx_phy
Rx PHY (0x01: 1M | 0x02: 2M), see ble_gap_phy_type_t.
uint16_t suggted_max_tx_octets
The Host's suggested value for the Controller's maximum transmitted number of payload octets to be us...
uint16_t ble_gap_conn_info_get(uint8_t conn_idx, ble_gap_get_conn_info_op_t opcode)
Get the information of the connection.
uint8_t status
ranging status.
uint16_t ble_gap_disconnect_with_reason(uint8_t conn_idx, ble_gap_disconn_reason_t reason)
Terminate an existing connection with a specified reason.
@ BLE_GAP_GET_PEER_FEATURES
Get peer device features info.
uint16_t ble_gap_peer_info_get(uint8_t conn_idx, ble_gap_get_peer_info_op_t opcode)
Get the information of the peer device.
uint8_t num_antenna
The number of Antenna IDs in the pattern, range 0x02 to 0x4B.
uint16_t ble_gap_latency_set(uint8_t conn_idx, uint16_t latency)
Set connection's Latency.
ble_gap_disconn_reason_t
The specified reason for terminating a connection.
uint32_t duration
Connection Duration (in 312.5 us).
ble_gap_path_loss_zone_t
Path Loss zones. HCI:7.8.118.
uint16_t max_latency
Maximum Peripheral latency allowed in requests by a Peripheral.
ble_gap_evt_conn_param_update_req_t conn_param_update_req
Connection parameter update request parameters.
Set preference slave event duration.
@ GAP_PHY_ANY
No preferred PHY.
uint16_t conn_idx
Connection Index.
uint8_t peer_addr_type
Peer address type(0x00: Public Device Address, 0x01 : Random Device Address, others: reserved for fut...
Define the chip configuration.
@ BLE_GAP_PATH_LOSS_MID
Entered Middle zone.
uint8_t nb_samples
Number of samples.
uint8_t curr_path_loss
Current path loss (dB).
int8_t max_tx_pwr
MAX of TX power.
ble_gap_evt_conn_param_updated_t conn_param_updated
Connection parameter updated parameters.
@ BLE_GAP_CRC_OK
CRC was correct.
@ BLE_GAP_GET_PEER_VERSION
Get peer device version info.
ble_gap_bdaddr_t bd_addr
Advertiser address.
uint16_t ble_gap_local_tx_pwr_level_read(uint8_t conn_idx, ble_gap_phy_type_t phy)
Read the local current and maximum transmit power levels for the connection identified by the conn_id...
@ BLE_GAP_CTE_TYPE_AOD_2US
Allow AoD Constant Tone Extension Response with 2us slots.
int8_t tx_pwr
Transmit Power level (dBm).
@ GAP_PHY_LE_2MBPS
LE 2M PHY preferred for an active link.
uint16_t conn_interval
Connection interval.
uint8_t status
indicate ranging complete status
ble_gap_phy_options_t
The phy options.
uint8_t host_ver
Host version.
uint16_t ble_gap_conn_cte_trans_param_set(uint8_t conn_idx, ble_gap_set_conn_cte_trans_param_t *param)
Set connection CTE transmit parameters.
ble_gap_dev_adv_tx_power_t adv_tx_power
Advertising TX power info.
uint16_t interval_min
Minimum value for the connection interval.
uint8_t cte_type
CTE type (0: GAP_CET_AOA | 1: GAP_CET_AOD_1US | 2: GAP_CET_AOD_2US),.
int16_t rssi
RSSI units: 0.1 dBm, range -1270 to +200.
Get Connection info event for BLE_GAPC_EVT_CONN_INFO_GOT.
@ BLE_GAP_ADDR_TYPE_RANDOM_STATIC
Random static (identity) address.
int ble_gap_ranging_start(uint8_t con_idx, ble_gap_ranging_param_t *param)
start ranging procedure.
int16_t rssi
RSSI units: 0.1 dBm, range -1270 to +200.
uint8_t rssi_antenna_id
RSSI antenna ID.
uint16_t suppted_max_tx_time
Maximum time, in microseconds, that the local Controller supports for transmission of a single Link L...
uint16_t ble_gap_conn_cte_req_enable_set(uint8_t conn_idx, bool enable_flag, ble_gap_set_conn_cte_req_enable_t *param)
Set connection CTE request enable.
ble_gap_evt_connected_t connected
Connection parameters.
uint16_t max_tx_octets
The maximum number of payload octets in TX.
uint8_t flags
Transmit Power level flags, see ble_gap_pwr_lvl_flag_t.
@ BLE_GAP_OPCODE_CHNL_MAP_SET
Set Channel Map.
uint8_t cte_req_len
Minimum length of the cte being requested in 8us units, range 0x02 to 0x14.
uint16_t ble_gap_phy_update(uint8_t conn_idx, uint8_t tx_phys, uint8_t rx_phys, uint8_t phy_opt)
Set the PHY preferences for the connection identified by the connection index.
Connection parameter updated event for BLE_GAPC_EVT_CONN_PARAM_UPDATED.
uint16_t skip
Number of periodic advertising that can be skipped after a successful receive.
uint16_t max_rx_octets
The maximum number of payload octets in RX.
Path loss threshold reporting info.
uint16_t subrate_factor
subrate factor value.
uint16_t min_conn_evt_num
Minimum time in number of connection events to be observed.
uint8_t ranging_status
ranging status.
@ BLE_GAP_PHY_OPT_S2_CODING
The Host prefers that S=2 coding be used when transmitting on the LE Coded PHY.
APP receives the extended advertising report indication info struct.
uint16_t interval_max
Maximum value for the connection interval.
uint16_t con_evt_cnt
Connection event counter.
uint16_t slave_latency
Slave latency for the connection in number of connection events.
uint16_t nb_sample
sample number
uint16_t slave_latency
Latency for the connection in number of connection events.
uint8_t rssi_antenna_id
RSSI antenna ID.
uint8_t channel_idx
The index of the channel on which the packet was received, range 0x00 to 0x24.
ble_gap_switching_sampling_type_t
Type of switching and sampling slots.
@ BLE_GAP_SLOT_2US
Switching and sampling slots are 2us each.
uint8_t addr_type
Address type of the device: 0=public/1=random.
uint16_t supervision_timeout
Connection supervision timeout value.
The parameter of connection.
int8_t rssi
RSSI (between -127 and +20 dBm).
uint16_t con_latency
Connection latency value.
uint8_t phy
PHY on which synchronization has been established.
uint8_t num_antenna
The number of Antenna IDs in the pattern, range 0x02 to 0x4B.
@ BLE_GAP_OPCODE_PER_ADV_LIST_SET
Set periodic advertising list.
File that contains error codes.
uint16_t continuation_number
Connection continuation number value.
#define BLE_GAP_FEATS_LEN
The length of features.
uint8_t pkt_status
Packet status,.
@ BLE_GAP_PHY_OPT_NO_CODING
The Host has no preferred coding when transmitting on the LE Coded PHY.
@ BLE_GAP_CRC_ERR2
CRC was incorrect but the Controller has determined the position and length of the Constant Tone Exte...
uint8_t curr_path_loss
Current path loss (dB).
uint8_t rx_phy
Rx PHY (0x01: 1M | 0x02: 2M), see GAP PHYs (bitmask).
@ BLE_GAP_HCI_PAIRING_WITH_UNIT_KEY_UNSUPPORTED
Pairing With Unit Key Not Supported.
Ranging indication event for BLE_GAPC_EVT_RANGING_IND.
The parameter of update connection.
@ BLE_GAP_GET_CON_CHANNEL_MAP
Get connection channel map.
Subrate change indication.
int32_t iq_sample_addr
I/Q sample address.
uint8_t nb_samples
Number of samples.
ble_gap_psm_manager_op_id_t
Operation code used for LEPSM manager.
ble_gap_evt_local_tx_pwr_read_ind_t local_tx_pwr_read
Local transmit power read indication info parameters.
uint16_t ble_gap_bond_dev_addr_get(uint8_t conn_idx, ble_gap_bdaddr_t *p_peer_addr)
Get BD address of the bonded device.
#define BLE_GAP_CHNL_MAP_LEN
The length of channel map.
Remote transmit power read indication info event for BLE_GAPC_EVT_REMOTE_TX_POWER_READ.
uint8_t reason
Hci error code.
ble_gap_addr_t peer_addr
Peer BT address.
uint8_t clk_accuracy
Clock accuracy (0x00: 500 ppm, 0x01: 250 ppm, 0x02: 150 ppm, 0x03: 100 ppm, 0x04: 75 ppm,...
uint8_t opcode
Operation code.
Set connection CTE Request enable info.
@ BLE_GAP_GET_CON_RSSI
Get connection RSSI info.
uint16_t sup_timeout
Supervision timeout for the LE link.
uint16_t sup_timeout
Supervision timeout for the LE link.
Connection IQ Report info.
Transmit power change reporting info.
ble_gap_dev_tx_power_t dev_tx_power
Device TX power info.
@ BLE_GAP_HCI_REMOTE_DEV_TERMINATION_DUE_TO_POWER_OFF
Remote Device Terminated Connection due to Power Off.
ble_gap_dev_version_ind_t dev_version
Version info.
@ BLE_GAP_PWR_MIN_LVL
Transmit power level is at minimum level.
uint8_t cte_type
CTE type (0: GAP_CET_AOA | 1: GAP_CET_AOD_1US | 2: GAP_CET_AOD_2US),.
uint8_t low_thr
Low threshold for the path loss (dB).
uint16_t ble_gap_conn_cte_recv_param_set(uint8_t conn_idx, ble_gap_set_conn_cte_rcv_param_t *param)
Set connection CTE receive parameters.
uint16_t manuf_name
Manufacturer name.
@ BLE_GAP_PWR_LOCAL_TX_CHG
Local transmit power changed.
Transmit power change reporting info event for BLE_GAPC_EVT_TX_POWER_CHANGE_REPORT.
@ BLE_GAP_PHY_CODED_S2
LE Coded PHY with S=2 data coding.
uint8_t flags
Transmit Power level flags, see ble_gap_pwr_lvl_flag_t.
uint8_t chan_sel_algo
Chanel Selection algorithm, 0x00: LE Channel Selection Algorithm #1 is used.
uint16_t ble_gap_update_conn_param_method_set(uint8_t conn_idx, bool use_l2cap_flag)
Set the method for updating connection parameter.
ble_gap_iq_report_status_t
Status of IQ report packet.
uint8_t supp_switching_sampl_rates
Supported switching sampling rates bit field (.
ble_gapc_set_dev_info_t info
Device info data.
uint16_t subrate_min
Minimum subrate factor allowed in requests by a Peripheral(Range: 0x0001 - 0x01F4,...
int8_t max_tx_pwr_lvl
Max transmit power level (dBm).
ble_gap_bdaddr_t broadcaster_addr
Broadcaster device address.
ble_gap_get_peer_info_op_t
The operation code used to get peer device info.
uint16_t nb_sample
Sample number.
uint16_t conn_interval
Connection interval.
@ BLE_GAP_OPCODE_PRIVACY_MODE_SET
Set privacy mode for peer device.
@ BLE_GAP_GET_PHY
Get connection PHY.
uint8_t low_hyst
Hysteresis value for the low threshold (dB).
#define BLE_GAP_MAX_GDX_RANGING_CH
The maximum GDX Ranging Channel.
uint8_t zone_entered
Zone entered, see ble_gap_path_loss_zone_t.
uint8_t phy
Phy see ble_gap_phy_type_t.
#define BLE_GAP_ADDR_LEN
The length of address.
ble_gap_bdaddr_t direct_addr
Target address (in case of a directed advertising report).
ble_gap_param_set_op_id_t
Operation code used to set param(s).
uint16_t pa_evt_cnt
Periodic advertising event counter.
int8_t tx_pwr
Transmit Power level (dBm).
uint8_t phy
Phy see ble_gap_phy_type_t.
int8_t curr_tx_pwr_lvl
Current transmit power level (dBm).
uint16_t ble_gap_conn_param_update(uint8_t conn_idx, const ble_gap_conn_update_param_t *p_conn_param)
Change the Link Layer connection parameters of a connection.
@ BLE_GAP_OPCODE_WHITELIST_SET
Set white list.
The struct of device version.
Set connection CTE receive parameters info.
uint8_t channel_num
Number of channel to be collected.
uint16_t supervision_timeout
Connection supervision timeout value.
Data Length Updated event for BLE_GAPC_EVT_DATA_LENGTH_UPDATED.
ble_gap_bdaddr_t bd_addr
BD address.
uint16_t slave_latency
Slave latency for the connection in number of connection events.
uint16_t ble_gap_conn_cte_rsp_enable_set(uint8_t conn_idx, bool enable_flag)
Set connection CTE response enable.
Connection IQ Report info event for BLE_GAPC_EVT_CONNECT_IQ_REPORT.
ble_gap_evt_ranging_sample_report_ind_t ranging_sample_report
Connectionless IQ Report info.
uint16_t ble_gap_path_loss_report_parameter_set(uint8_t conn_idx, ble_gap_set_path_loss_report_param_t *param)
Set the path loss threshold reporting parameters for the connection identified by the conn_idx.
ble_gap_le_phy_ind_t phy
PHY indicaiton.
uint8_t ranging_status
ranging complete status.
ble_gap_get_bd_addr_t get_bd_addr
Device BD address info.
ble_gap_dev_name_ind_t dev_name
Device name.
uint8_t flags
Transmit Power level flags, see ble_gap_pwr_lvl_flag_t.
ble_gap_ll_role_type_t ll_role
Device Role of LL Layer.
ble_gap_dev_info_type_t
GAP Device inforamtion write indication.
@ BLE_GAP_HCI_REMOTE_DEV_TERMINATION_DUE_TO_LOW_RESOURCES
Remote Device Terminated Connection due to Low Resources.
uint16_t ble_gap_per_sync_trans_param_set(uint8_t conn_idx, uint8_t per_sync_idx, ble_gap_per_sync_trans_param_t *p_per_sync_trans_param)
Set the parameters used for periodic sync transfer.
BLE GAPC event structure.
ble_gap_evt_connless_iq_report_t connless_iq_report
Connectionless IQ Report info parameters.
uint8_t tx_phy
LE PHY for data transmission.
uint16_t ble_gap_data_length_update(uint8_t conn_idx, uint16_t tx_octects, uint16_t tx_time)
The suggested maximum transmission packet size and maximum packet transmission time to be used for a ...
uint16_t length
Device name length.
ble_gap_evt_ranging_ind_t ranging_ind
uint16_t compid
Manufacturer name.
@ BLE_GAP_CRC_ERR1
CRC was incorrect and the Length and CTETime fields of the packet were used to determine sampling poi...
uint8_t slot_dur
Slot durations (1: GAP_SLOT_1US | 2: GAP_SLOT_2US), see ble_gap_switching_sampling_type_t.
int8_t tx_pwr
Transmit Power level (dBm).
ble_gap_evt_remote_tx_pwr_read_ind_t remote_tx_pwr_read
Remote transmit power read indication info parameters.
Device Information set event for BLE_GAPC_EVT_DEV_INFO_SET.
@ BLE_GAP_PHY_2M
LE 2M PHY.
uint32_t offset
Connection Offset (in 312.5 us).
uint16_t subrate_max
Maximum subrate factor allowed in requests by a Peripheral(Range: 0x0001 - 0x01F4,...
uint16_t superv_timeout
Maximum supervision timeout allowed in requests by a Peripheral.
uint8_t data_channel_idx
Data channel index, range 0x00 to 0x24.
int8_t min_tx_pwr
MIN of TX power.
uint8_t clk_acc
Advertiser clock accuracy.
@ BLE_GAP_GET_CHAN_SEL_ALGO
Get selection algorithm for connection channel.
uint8_t * name
Peer device name.
uint8_t reason
Reason see ble_gap_tx_pwr_change_report_reason_t.
uint8_t lmp_ver
LMP version.
uint16_t slave_latency
Latency for the connection in number of connection events.
uint16_t max_tx_time
The maximum time that the local Controller will take to TX.
uint8_t adv_info
Bit field providing information about the received report.
uint16_t host_subver
Host subversion.
uint8_t opcode
Operation code.
ble_gap_get_conn_info_op_t
The operation code used to get connection info.
@ BLE_GAPC_DEV_APPEARANCE
uint16_t sync_to
Synchronization timeout for the periodic advertising (in unit of 10 ms between 100 ms and 163....
uint16_t ble_gap_per_adv_set_info_trans(uint8_t conn_idx, uint8_t per_adv_idx, uint16_t service_data)
Send synchronization information about the periodic advertising in an advertising set to a connected ...
uint16_t suppted_max_tx_octets
Maximum number of payload octets that the local Controller supports for transmission of a single Link...
uint16_t interval_max
Maximum value for the connection interval.
uint8_t nb_adv_sets
Number of available advertising sets.
Suggested default data length info.
Set connection CTE transmit parameters info.
Local transmit power read indication info.
uint8_t pkt_status
Packet status,.
uint16_t interval_min
Minimum value for the connection interval.
Connection parameter update request event for BLE_GAPC_EVT_CONN_PARAM_UPDATE_REQ.
uint16_t period_adv_intv
Periodic advertising interval (in unit of 1.25ms, min is 7.5ms), valid only for periodic advertising ...
int8_t delta
Change in transmit power level (dBm).
ranging sample report info.
uint8_t phy
Phy see ble_gap_phy_type_t.
uint8_t tx_phy
LE PHY for data transmission.
Max data length info struct.
uint16_t ble_gap_tx_pwr_change_report_enable_set(uint8_t conn_idx, bool local_enable_flag, bool remote_enable_flag)
Enable or disable the reporting of transmit power level changes in the local and remote for the conne...
uint16_t ble_gap_disconnect(uint8_t conn_idx)
Terminate an existing connection.
uint16_t sup_timeout
Supervision timeout for the LE link.
ble_gap_peer_version_ind_t peer_version
Version info.
@ BLE_GAP_HCI_CONN_INTERVAL_UNACCEPTABLE
Unacceptable Connection Parameters.
ble_gap_cte_type_t
Type of constant tone extension.
@ BLE_GAP_PWR_MAX_LVL
Transmit power level is at maximum level.
uint16_t suppted_max_rx_octets
Maximum number of payload octets that the local Controller supports for reception of a single Link La...
uint8_t single_tx
Slave transmits a single packet per connection event (False/True).
uint8_t slot_durations
The slot for sample IQ from the CTE, see ble_gap_switching_sampling_type_t.
ble_gap_ll_role_type_t
Device role of LL layer type.
uint8_t data_channel_idx
Data channel index, range 0x00 to 0x24.
ble_gap_conn_info_t info
Connection info.
uint8_t flags
Transmit Power level flags, see ble_gap_pwr_lvl_flag_t.
void ble_gap_get_local_addr_by_conidx(uint8_t conidx, uint8_t *p_addr)
Get BD address of the local device by the conidx.
int16_t rssi
RSSI units: 0.1 dBm, range -1270 to +200.
ble_gap_addr_t gap_addr
Device BD Address.
uint16_t ble_gap_conn_param_update_reply(uint8_t conn_idx, bool accept)
Connection param update reply to peer device.
uint8_t antennae_num
Number of antennae, range 0x01 to 0x4B.
uint8_t cte_type
CTE type (0: GAP_CET_AOA | 1: GAP_CET_AOD_1US | 2: GAP_CET_AOD_2US),.
uint16_t cte_req_interval
Defines whether the cte request procedure is initiated only once or periodically.
@ BLE_GAP_PHY_OPT_S8_CODING
The Host prefers that S=8 coding be used when transmitting on the LE Coded PHY.
bool sampling_enable
Wheter to sample IQ from the CTE.
@ BLE_GAP_HCI_REMOTE_USER_TERMINATED_CONNECTION
Remote User Terminated Connection.
uint16_t ble_gap_default_subrate_param_set(const ble_gap_dft_subrate_param_t *p_subrate_param)
Set Default Subrate command.
@ BLE_GAP_INSUFFI_RESOURCE
Insufficient resources to sample (data_channel_idx, cte_type, and slot_dur invalid).
int8_t power_lvl
Advertising channel TX power level.
@ BLE_GAP_HCI_UNSUPPORTED_REMOTE_FEATURE
Unsupported Remote Feature.
@ GAP_PHY_LE_1MBPS
LE 1M PHY preferred for an active link.
@ BLE_GAP_HCI_AUTHENTICATION_FAILURE
Authentication Failure.
Subrate change indication event for BLE_GAPC_EVT_SUBRATE_CHANGE_IND.
uint8_t phy
Phy see ble_gap_phy_type_t.
ble_gap_evt_data_length_t data_length
Data Length Update parameter.
uint8_t phy
Phy see ble_gap_phy_type_t.
uint8_t pkt_status
Packet status,.
Maximum advertising data length info.
uint8_t addr_type
Peer device address type.
ble_gap_nb_adv_sets_t nb_adv_sets
Number of available advertising sets.
uint8_t index
Index of connection.
uint16_t suggted_max_tx_time
The Host's suggested value for the Controller's maximum packet transmission time to be used for new c...
uint8_t status
Status of ranging sample proc.
uint16_t ce_len
The length of connection event needed for this LE connection.
uint8_t adv_sid
Advertising SID.
uint8_t cte_type
The type of cte, see ble_gap_cte_type_t.
Set path loss reporting parameter info.
uint8_t phy_prim
Primary PHY on which advertising report has been received.
ble_gap_sugg_dflt_data_len_t sugg_dflt_data_len
Suggested default data length info.
ble_gap_evt_subrate_chg_ind_t subrate_chg_ind
uint16_t duration
Preferred event duration.
uint8_t rx_phy
LE PHY for data reception.
int8_t tx_pwr
TX power (in dBm).
Subrate Request command param.
@ BLE_GAP_OPCODE_LEPSM_UNREGISTER
LEPSM unregister operation.
uint8_t high_hyst
Hysteresis value for the high threshold (dB).
ble_gap_max_data_len_t max_data_len
Suggested MAX data length info.
uint16_t conn_handle
Connection_Handle.
ble_gap_evt_conn_info_t conn_info
Connection info parameters.
uint16_t ble_gap_con_plan_consult(uint8_t *p_act_num, ble_gap_con_plan_tag_t **p_conn_plan_arr)
Consult BLE connection activity plan situation function.
uint16_t pa_evt_cnt
Periodic advertising event counter.
int8_t tx_pwr
Transmit Power level (dBm).
Connectionless IQ Report info event for BLE_GAPC_EVT_CONNECTLESS_IQ_REPORT.
uint8_t name_len
Peer device name length.
bool report_flag
Report Flag.
uint16_t continuation_num
Minimum number of underlying connection events to remain active.
uint16_t lmp_subver
LMP subversion.
uint16_t intv
Periodic advertising interval (in unit of 1.25ms, min is 7.5ms).