GAP Callback Msg Exported Types
- group Gap_CB_Msg_Exported_Types
-
Enums
-
enum T_LE_BOND_MODIFY_TYPE
-
Bond information modify type.
Values:
-
enumerator LE_BOND_DELETE
-
Delete bond information.
-
enumerator LE_BOND_ADD
-
Add bond information.
-
enumerator LE_BOND_CLEAR
-
Clear bond information.
-
enumerator LE_BOND_FULL
-
Key storage space is full.
-
enumerator LE_BOND_KEY_MISSING
-
Key missing.
-
enumerator LE_BOND_DELETE
-
struct T_LE_MODIFY_WHITE_LIST_RSP
-
Response of LE modify white list request.
-
struct T_LE_SET_RAND_ADDR_RSP
-
Response of LE set random address request.
Public Members
-
uint16_t cause
-
uint16_t cause
-
struct T_LE_SET_HOST_CHANN_CLASSIF_RSP
-
Response of LE set channel classification request.
Public Members
-
uint16_t cause
-
uint16_t cause
-
struct T_LE_READ_RSSI_RSP
-
Response for read RSSI.
-
struct T_LE_READ_CHANN_MAP_RSP
-
Response for read channel map.
-
struct T_LE_DISABLE_SLAVE_LATENCY_RSP
-
Response for disable slave latency.
Public Members
-
uint16_t cause
-
uint16_t cause
-
struct T_LE_SET_DATA_LEN_RSP
-
Response for set data length, which is used for BT4.2 data length extension.
-
struct T_LE_DATA_LEN_CHANGE_INFO
-
Notification for data length change info, which is used for BT4.2 data length extension.
-
struct T_LE_CONN_UPDATE_IND
-
Indication for connection parameter update.
-
struct T_LE_CREATE_CONN_IND
-
Indication of LE connection.
Public Members
-
uint8_t bd_addr[6]
-
Bluetooth address of remote device.
-
T_GAP_REMOTE_ADDR_TYPE remote_addr_type
-
Address type of remote device.
-
uint8_t bd_addr[6]
-
struct T_LE_PHY_UPDATE_INFO
-
Notification information when phy changed.
Public Members
-
uint8_t conn_id
-
uint16_t cause
-
T_GAP_PHYS_TYPE tx_phy
-
T_GAP_PHYS_TYPE rx_phy
-
bool read_phy_rsp
-
uint8_t conn_id
-
struct T_LE_UPDATE_PASSED_CHANN_MAP_RSP
-
Response for update passed channel map.
Public Members
-
uint16_t cause
-
uint16_t cause
-
struct T_LE_REMOTE_FEATS_INFO
-
Information for remote device features.
-
struct T_LE_READ_REMOTE_VERSION_RSP
-
Response for reading remote version information.
-
struct T_LE_BOND_MODIFY_INFO
-
Structure for modify bonding information.
-
struct T_LE_KEYPRESS_NOTIFY_RSP
-
Structure for notify keypress result.
-
struct T_LE_KEYPRESS_NOTIFY_INFO
-
Structure for notify keypress information.
-
struct T_LE_GATT_SIGNED_STATUS_INFO
-
Structure for LE signed information.
-
struct T_LE_BOND_KEY_REQ
-
Structure for bond key request information.
Public Members
-
uint8_t bd_addr[6]
-
T_GAP_REMOTE_ADDR_TYPE remote_addr_type
-
T_GAP_KEY_TYPE key_type
-
Key type.
-
uint8_t key_len
-
Provided by APP.
-
uint8_t link_key[28]
-
Provided by APP.
-
uint8_t bd_addr[6]
-
struct T_LE_DTM_TEST_END_RSP
-
Response of LE receiver test request.
-
struct T_LE_SCAN_INFO
-
Information of LE scan information.
Public Members
-
uint8_t bd_addr[6]
-
Bluetooth address of remote device.
-
T_GAP_REMOTE_ADDR_TYPE remote_addr_type
-
Address type of remote device.
-
T_GAP_ADV_EVT_TYPE adv_type
-
Advertising event type.
-
int8_t rssi
-
RSSI.
-
uint8_t data_len
-
uint8_t data[31]
-
uint8_t bd_addr[6]
-
struct T_LE_DIRECT_ADV_INFO
-
Information of LE direct advertising.
Public Members
-
uint8_t bd_addr[6]
-
T_GAP_REMOTE_ADDR_TYPE remote_addr_type
-
uint8_t direct_bd_addr[6]
-
T_GAP_DIRECT_ADDR_TYPE direct_addr_type
-
T_GAP_ADV_EVT_TYPE direct_adv_type
-
int8_t rssi
-
uint8_t bd_addr[6]
-
struct T_LE_ADV_UPDATE_PARAM_RSP
-
LE advertising parameter update result.
Public Members
-
uint16_t cause
-
uint16_t cause
-
struct T_LE_ADV_READ_TX_POWER_RSP
-
Response of LE read advertising transmitter power request.
-
struct T_LE_EXT_ADV_REPORT_INFO
-
Information of LE extended advertising report.
Public Members
-
uint16_t event_type
-
T_GAP_EXT_ADV_EVT_DATA_STATUS data_status
-
T_GAP_REMOTE_ADDR_TYPE addr_type
-
uint8_t bd_addr[6]
-
T_GAP_PHYS_PRIM_ADV_TYPE primary_phy
-
uint8_t secondary_phy
-
uint8_t adv_sid
-
int8_t tx_power
-
int8_t rssi
-
uint16_t peri_adv_interval
-
T_GAP_DIRECT_ADDR_TYPE direct_addr_type
-
uint8_t direct_addr[6]
-
uint8_t data_len
-
uint8_t *p_data
-
uint16_t event_type
-
struct T_LE_EXT_SCAN_STATE_CHANGE_INFO
-
Notification of extended scanning state. The struct will only be used after APP calls le_ext_scan_gap_msg_info_way(false).
-
struct T_LE_EXT_ADV_START_SETTING_RSP
-
struct T_LE_EXT_ADV_REMOVE_SET_RSP
-
struct T_LE_SCAN_REQ_RECEIVED_INFO
-
Information of LE scan request received.
-
struct T_LE_EXT_ADV_STATE_CHANGE_INFO
-
Notification of extended advertising state. The struct will only be used after APP calls le_ext_adv_gap_msg_info_way(false).
Public Members
-
uint16_t cause
-
uint8_t adv_handle
-
Identify an advertising set.
-
uint8_t state
-
GAP extended advertising state. T_GAP_EXT_ADV_STATE.
-
uint16_t cause
-
struct T_LE_PA_ADV_START_SETTING_RSP
-
struct T_LE_PA_ADV_SET_PERIODIC_ADV_ENABLE_RSP
-
struct T_LE_PA_ADV_STATE_CHANGE_INFO
-
Notification of PA periodic advertising state.
Public Members
-
uint16_t cause
-
uint8_t adv_handle
-
Identify an advertising set.
-
uint8_t state
-
PA periodic advertising state. T_GAP_PA_ADV_STATE.
-
uint16_t cause
-
struct T_LE_PA_SYNC_MODIFY_PERIODIC_ADV_LIST_RSP
-
struct T_LE_PERIODIC_ADV_REPORT_INFO
-
Information of LE periodic advertising report.
Public Members
-
uint8_t sync_id
-
Identify the periodic advertising train.
-
uint16_t sync_handle
-
Sync_Handle identifying the periodic advertising train.
-
int8_t tx_power
-
Range: -127 to +20, Units: dBm. 0x7F: Tx Power information not available.
-
int8_t rssi
-
Range: -127 to +20, Units: dBm. 0x7F: RSSI is not available.
-
T_GAP_PERIODIC_ADV_REPORT_CTE_TYPE cte_type
-
T_GAP_PERIODIC_ADV_REPORT_DATA_STATUS data_status
-
uint8_t data_len
-
Length of the Data field.
-
uint8_t *p_data
-
Data received from a Periodic Advertising packet.
-
bool v2_event
-
Flag indicating HCI event version. true: v2 event. false: v1 event.
-
uint16_t periodic_event_counter
-
The value of paEventCounter. Valid if v2_event is true, otherwise invalid. Range: 0x0000 to 0xFFFF.
-
uint8_t subevent
-
The subevent number. Valid if v2_event is true, otherwise invalid. Range: 0x00 to 0x7F. 0xFF: No subevents.
-
uint8_t sync_id
-
struct T_GAP_PA_SYNC_DEV_STATE
-
Definition of synchronization device state of periodic advertising trains.
-
struct T_LE_PA_SYNC_DEV_STATE_CHANGE_INFO
-
Notification of synchronization device state of periodic advertising trains.
-
struct T_LE_PA_SYNC_STATE_CHANGE_INFO
-
Notification of synchronization state of periodic advertising trains.
-
struct T_LE_PA_SET_PERIODIC_ADV_RECEIVE_ENABLE_RSP
-
struct T_LE_PAST_SENDER_PERIODIC_ADV_SET_INFO_TRANSFER_RSP
-
struct T_LE_PAST_SENDER_PERIODIC_ADV_SYNC_TRANSFER_RSP
-
struct T_LE_PAST_RECIPIENT_SET_DEFAULT_PERIODIC_ADV_SYNC_TRANSFER_PARAMS_RSP
-
Public Members
-
uint16_t cause
-
uint16_t cause
-
struct T_LE_PAST_RECIPIENT_SET_PERIODIC_ADV_SYNC_TRANSFER_PARAMS_RSP
-
struct T_LE_PAST_RECIPIENT_PERIODIC_ADV_SYNC_TRANSFER_RECEIVED_INFO
-
Public Members
-
uint16_t cause
-
uint8_t conn_id
-
Used to identify a connection.
-
uint8_t sync_id
-
Identify the periodic advertising train.
-
uint16_t sync_handle
-
Sync_Handle identifying the periodic advertising train.
-
uint16_t service_data
-
A value provided by peer device.
-
uint8_t adv_sid
-
Value of the Advertising SID used to advertise the periodic advertising.
-
T_GAP_PA_SYNC_ADV_ADDR_TYPE adv_addr_type
-
Advertiser address type. T_GAP_PA_SYNC_ADV_ADDR_TYPE for reception of info.
-
uint8_t adv_addr[GAP_BD_ADDR_LEN]
-
Public Device Address, Random Device Address, Public Identity Address, or Random (static) Identity Address of the advertiser.
-
T_GAP_PHYS_TYPE adv_phy
-
Advertiser_PHY specifies the PHY used for the periodic advertising.
-
uint16_t periodic_adv_interval
-
Periodic advertising interval.
Range: 0x0006 to 0xFFFF.
Time = N * 1.25 ms.
Time Range: 7.5 ms to 81.91875 s.
-
uint8_t adv_clock_accuracy
-
Advertiser_Clock_Accuracy specifies the accuracy of the periodic advertiser’s clock.
0x00: 500 ppm.
0x01: 250 ppm.
0x02: 150 ppm.
0x03: 100 ppm.
0x04: 75 ppm.
0x05: 50 ppm.
0x06: 30 ppm.
0x07: 20 ppm.
-
bool v2_event
-
Flag indicating HCI event version.
true: v2 event.
false: v1 event.
-
uint8_t num_subevents
-
Number of events. Valid if v2_event is true, otherwise invalid.
Range: 0x01 to 0x80.
0x00: No subevents.
-
uint8_t subevent_interval
-
Subevent interval. Valid if v2_event is true and num_subevents is not equal to 0x00, otherwise invalid.
Range: 0x06 to 0xFF.
Time = N * 1.25ms.
Time Range: 7.5 ms to 318.75 ms.
-
uint8_t rsp_slot_delay
-
Response slot delay. Valid if v2_event is true and num_subevents is not equal to 0x00, otherwise invalid.
Range: 0x01 to 0xFE.
Time = N * 1.25 ms.
Time Range: 1.25 ms to 317.5 ms.
-
uint8_t rsp_slot_spacing
-
Response slot spacing. Valid if v2_event is true and num_subevents is not equal to 0x00, otherwise invalid.
Range: 0x02 to 0xFF.
Time = N * 0.125 ms.
Time Range: 0.25 ms to 31.875.
-
uint16_t cause
-
struct T_LE_PA_SET_PERIODIC_ADV_SUBEVENT_DATA_RSP
-
struct T_LE_PERIODIC_ADV_SUBEVENT_DATA_REQUEST_INFO
-
struct T_LE_PERIODIC_ADV_RESPONSE_REPORT_INFO
-
Public Members
-
uint8_t adv_handle
-
Used to identify a periodic advertising train. Range: 0x00 to 0xEF
-
uint8_t subevent
-
The subevent number. Range: 0x00 to 0x7F
-
T_GAP_PERIODIC_ADV_RSP_REPORT_TX_STATUS tx_status
-
uint8_t tx_power
-
Range: -127 to +20 dBm 0x7F: Tx Power information not available
-
uint8_t rssi
-
Range: -127 to +20 dBm 0x7F: RSSI is not available
-
T_GAP_PERIODIC_ADV_REPORT_CTE_TYPE cte_type
-
uint8_t response_slot
-
The response slot the data was received in. Range: 0x00 to 0xFF
-
T_GAP_PERIODIC_ADV_RSP_REPORT_DATA_STATUS data_status
-
uint8_t data_len
-
Length of the Data field.
-
uint8_t *p_data
-
Periodic advertising response data.
-
uint8_t adv_handle
-
struct T_LE_PA_SET_PERIODIC_ADV_RESPONSE_DATA_RSP
-
struct T_LE_PA_SET_PERIODIC_SYNC_SUBEVENT_RSP
-
struct T_LE_BIGINFO_ADV_REPORT_INFO
-
Public Members
-
uint8_t sync_id
-
Identify the periodic advertising train.
-
uint16_t sync_handle
-
Sync_Handle identifying the periodic advertising train.
-
uint8_t num_bis
-
The number of BISes in the BIG.
-
uint8_t nse
-
The number of subevents per BIS in each BIG event.
-
uint16_t iso_interval
-
Value of the ISO_Interval subfield of the BIGInfo field. Time between two adjacent BIG anchor points, in units of 1.25 ms. The value shall be between 4 and 3200 (i.e. 5 ms to 4 s).
-
uint8_t bn
-
Value of the BN subfield of the BIGInfo field. Burst Number contains the number of new payloads for each BIS in a BIS event.
-
uint8_t pto
-
Value of the PTO subfield of the BIGInfo field. Pre_Transmission_Offset contains the offset in number of ISO_Intervals for pre transmissions of data packets.
-
uint8_t irc
-
Value of the IRC subfield of the BIGInfo field. Immediate Repetition Count contains the number of times the scheduled data packet is transmitted.
-
uint16_t max_pdu
-
The maximum number of data octets (excluding the MIC, if any) that can be carried in each BIS Data PDU in the BIG.
-
uint32_t sdu_interval
-
Value of the SDU_Interval subfield of the BIGInfo field. The time interval, in microseconds, of the periodic SDUs.
-
uint16_t max_sdu
-
The maximum size, in octets, of an SDU.
-
T_GAP_PHYS_TYPE phy
-
Indicate the PHY used by the BIG. T_GAP_PHYS_TYPE.
-
uint8_t framing
-
Indicate whether the BIG carries framed or unframed data.
0x00: Unframed.
0x01: Framed.
-
uint8_t encryption
-
Indicate whether the BIG is encrypted or not.
0x00: BIG carries unencrypted data.
0x01: BIG carries encrypted data.
-
uint8_t sync_id
-
union T_LE_CB_DATA
-
GAP LE Callback Data.
Public Members
-
T_LE_CAUSE le_cause
-
T_LE_MODIFY_WHITE_LIST_RSP *p_le_modify_white_list_rsp
-
T_LE_SET_RAND_ADDR_RSP *p_le_set_rand_addr_rsp
-
T_LE_SET_HOST_CHANN_CLASSIF_RSP *p_le_set_host_chann_classif_rsp
-
T_LE_READ_RSSI_RSP *p_le_read_rssi_rsp
-
T_LE_READ_CHANN_MAP_RSP *p_le_read_chann_map_rsp
-
T_LE_DISABLE_SLAVE_LATENCY_RSP *p_le_disable_slave_latency_rsp
-
T_LE_SET_DATA_LEN_RSP *p_le_set_data_len_rsp
-
T_LE_DATA_LEN_CHANGE_INFO *p_le_data_len_change_info
-
T_LE_CONN_UPDATE_IND *p_le_conn_update_ind
-
T_LE_CREATE_CONN_IND *p_le_create_conn_ind
-
T_LE_PHY_UPDATE_INFO *p_le_phy_update_info
-
T_LE_UPDATE_PASSED_CHANN_MAP_RSP *p_le_update_passed_chann_map_rsp
-
T_LE_REMOTE_FEATS_INFO *p_le_remote_feats_info
-
T_LE_READ_REMOTE_VERSION_RSP *p_le_read_remote_version_rsp
-
T_LE_BOND_MODIFY_INFO *p_le_bond_modify_info
-
T_LE_KEYPRESS_NOTIFY_RSP *p_le_keypress_notify_rsp
-
T_LE_KEYPRESS_NOTIFY_INFO *p_le_keypress_notify_info
-
T_LE_GATT_SIGNED_STATUS_INFO *p_le_gatt_signed_status_info
-
T_LE_BOND_KEY_REQ *p_le_bond_key_req
-
T_LE_SCAN_INFO *p_le_scan_info
-
T_LE_DIRECT_ADV_INFO *p_le_direct_adv_info
-
T_LE_ADV_UPDATE_PARAM_RSP *p_le_adv_update_param_rsp
-
T_LE_ADV_READ_TX_POWER_RSP *p_le_adv_read_tx_power_rsp
-
T_LE_DTM_TEST_END_RSP *p_le_dtm_test_end_rsp
-
T_LE_EXT_ADV_REPORT_INFO *p_le_ext_adv_report_info
-
T_LE_EXT_SCAN_STATE_CHANGE_INFO *p_le_ext_scan_state_change_info
-
T_LE_EXT_ADV_START_SETTING_RSP *p_le_ext_adv_start_setting_rsp
-
T_LE_EXT_ADV_REMOVE_SET_RSP *p_le_ext_adv_remove_set_rsp
-
T_LE_EXT_ADV_CLEAR_SET_RSP *p_le_ext_adv_clear_set_rsp
-
T_LE_SCAN_REQ_RECEIVED_INFO *p_le_scan_req_received_info
-
T_LE_EXT_ADV_STATE_CHANGE_INFO *p_le_ext_adv_state_change_info
-
T_LE_PA_ADV_START_SETTING_RSP *p_le_pa_adv_start_setting_rsp
-
T_LE_PA_ADV_SET_PERIODIC_ADV_ENABLE_RSP *p_le_pa_adv_set_periodic_adv_enable_rsp
-
T_LE_PA_ADV_STATE_CHANGE_INFO *p_le_pa_adv_state_change_info
-
T_LE_PA_SYNC_MODIFY_PERIODIC_ADV_LIST_RSP *p_le_pa_sync_modify_periodic_adv_list_rsp
-
T_LE_PERIODIC_ADV_REPORT_INFO *p_le_periodic_adv_report_info
-
T_LE_PA_SYNC_DEV_STATE_CHANGE_INFO *p_le_pa_sync_dev_state_change_info
-
T_LE_PA_SYNC_STATE_CHANGE_INFO *p_le_pa_sync_state_change_info
-
T_LE_PA_SET_PERIODIC_ADV_RECEIVE_ENABLE_RSP *p_le_pa_set_periodic_adv_receive_enable_rsp
-
T_LE_PAST_SENDER_PERIODIC_ADV_SET_INFO_TRANSFER_RSP *p_le_past_sender_periodic_adv_set_info_transfer_rsp
-
T_LE_PAST_SENDER_PERIODIC_ADV_SYNC_TRANSFER_RSP *p_le_past_sender_periodic_adv_sync_transfer_rsp
-
T_LE_PAST_RECIPIENT_SET_DEFAULT_PERIODIC_ADV_SYNC_TRANSFER_PARAMS_RSP *p_le_past_recipient_set_default_periodic_adv_sync_transfer_params_rsp
-
T_LE_PAST_RECIPIENT_SET_PERIODIC_ADV_SYNC_TRANSFER_PARAMS_RSP *p_le_past_recipient_set_periodic_adv_sync_transfer_params_rsp
-
T_LE_PAST_RECIPIENT_PERIODIC_ADV_SYNC_TRANSFER_RECEIVED_INFO *p_le_past_recipient_periodic_adv_sync_transfer_received_info
-
T_LE_BIGINFO_ADV_REPORT_INFO *p_le_biginfo_adv_report_info
-
T_LE_PA_SET_PERIODIC_ADV_SUBEVENT_DATA_RSP *p_le_pa_set_periodic_adv_subevent_data_rsp
-
T_LE_PERIODIC_ADV_SUBEVENT_DATA_REQUEST_INFO *p_le_periodic_adv_subevent_data_request_info
-
T_LE_PERIODIC_ADV_RESPONSE_REPORT_INFO *p_le_periodic_adv_response_report_info
-
T_LE_PA_SET_PERIODIC_ADV_RESPONSE_DATA_RSP *p_le_pa_set_periodic_adv_response_data_rsp
-
T_LE_PA_SET_PERIODIC_SYNC_SUBEVENT_RSP *p_le_pa_set_periodic_sync_subevent_rsp
-
void *p_gap_state_msg
-
void *p_le_cb_data
-
T_LE_CAUSE le_cause
-
enum T_LE_BOND_MODIFY_TYPE