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
Le event notification reporting info event for BLE_GAPC_EVT_LE_EVT_NOTI_REPORT.
uint16_t ble_gap_latency_get(uint8_t conn_idx, uint16_t *latency)
Get connection's Latency.
ble_gap_get_conn_info_op_t
The operation code used to get connection info.
@ BLE_GAP_ADDR_TYPE_RANDOM_STATIC
Device information data struct.
ble_gap_peer_info_t peer_info
Sync established indication.
#define BLE_GAP_MAX_IQ_SAMPLE_NUM
Connection complete event for BLE_GAPC_EVT_CONNECTED.
ble_gap_peer_features_ind_t peer_features
ble_gapc_set_dev_info_t info
ble_gap_evt_phy_update_t phy_update
ble_gap_ll_role_type_t ll_role
ble_gap_evt_disconnected_t disconnected
@ BLE_GAP_CTE_TYPE_AOD_1US
@ BLE_GAP_GET_PEER_FEATURES
Default periodic advertising synchronization transfer parameters.
Disconnection event for BLE_GAPC_EVT_DISCONNECTED.
The Structure for BLE Connection Arrangement.
ble_gap_evt_peer_info_t peer_info
ble_gap_evt_conn_iq_report_t conn_iq_report
@ BLE_GAP_GET_PEER_VERSION
ble_gap_phy_bit_t
Bit field use to select the preferred TX or RX LE PHY.
Get peer info event for BLE_GAPC_EVT_PEER_INFO_GOT.
The struct of broadcast address with broadcast type.
ble_gap_dev_info_type_t info_type
PHY update event for BLE_GAPC_EVT_PHY_UPDATED.
ble_gap_switching_sampling_type_t
Type of switching and sampling slots.
ble_gap_phy_type_t
Phy for power control management.
@ BLE_GAP_PHY_LE_CODED
LE Coded PHY preferred for an active link.
Name of peer device indication event for BLE_GAPC_EVT_PEER_NAME_GOT.
ble_gap_psm_manager_op_id_t
Operation code used for LEPSM manager.
uint8_t ble_gap_conn_link_num_get(void)
Get connection link number.
ble_gap_cte_type_t
Type of constant tone extension.
@ BLE_GAP_PWR_REMOTE_TX_CHG
ble_gap_evt_peer_name_get_t peer_name
@ BLE_GAP_PHY_OPT_S8_CODING
ble_gap_chnl_map_t chnl_map
ble_gap_evt_dev_info_set_t dev_info_ind
Define the chip configuration.
@ BLE_GAP_HCI_REMOTE_DEV_TERMINATION_DUE_TO_LOW_RESOURCES
Supported data length size Indication.
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.
ble_gap_evt_le_event_noti_report_t le_evt_noti_report
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.
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.
Get peer info operation struct.
uint16_t ble_gap_latency_set(uint8_t conn_idx, uint16_t latency)
Set connection's Latency.
ble_gap_evt_conn_param_update_req_t conn_param_update_req
Set preference slave event duration.
ble_gap_evt_conn_param_updated_t conn_param_updated
@ BLE_GAP_OPCODE_CHNL_MAP_SET
@ BLE_GAP_HCI_PAIRING_WITH_UNIT_KEY_UNSUPPORTED
ble_gap_tx_pwr_change_report_reason_t
Transmit power change reporting reason.
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.
Get Connection info event for BLE_GAPC_EVT_CONN_INFO_GOT.
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.
Connection complete info.
ble_gap_evt_connected_t connected
@ BLE_GAP_HCI_REMOTE_DEV_TERMINATION_DUE_TO_POWER_OFF
@ BLE_GAP_PHY_OPT_S2_CODING
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 min_conn_evt_num
APP receives the extended advertising report indication info struct.
@ BLE_GAP_ADDR_TYPE_PUBLIC
ble_gap_phy_options_t
The phy options.
The parameter of connection.
@ BLE_GAP_PHY_LE_1MBPS
LE 1M PHY preferred for an active link.
File that contains error codes.
#define BLE_GAP_FEATS_LEN
The parameter of update connection.
ble_gap_addr_type_t
The identity address type.
@ BLE_GAP_OPCODE_LEPSM_REGISTER
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
@ BLE_GAP_HCI_UNSUPPORTED_REMOTE_FEATURE
Set connection CTE Request enable info.
@ BLE_GAP_OPCODE_LEPSM_UNREGISTER
Connection IQ Report info.
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.
ble_gapc_set_dev_info_t info
ble_gap_peer_info_t peer_info
@ BLE_GAP_OPCODE_PER_ADV_LIST_SET
@ BLE_GAP_OPCODE_WHITELIST_SET
uint16_t ble_gap_update_conn_param_method_set(uint8_t conn_idx, bool use_l2cap_flag)
Set the method for updating connection parameter.
GAP Device inforamtion write indication.
ble_gap_bdaddr_t broadcaster_addr
ble_gap_dev_info_type_t info_type
@ BLE_GAP_HCI_CONN_INTERVAL_UNACCEPTABLE
ble_gap_bdaddr_t direct_addr
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.
Set connection CTE receive parameters info.
Connection parameter used to update connection parameters.
The info of connecting operation.
Data Length Updated event for BLE_GAPC_EVT_DATA_LENGTH_UPDATED.
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.
Connectionless IQ Report info.
ble_gap_param_set_op_id_t
Operation code used to set param(s).
@ BLE_GAP_CTE_TYPE_AOD_2US
ble_gap_dev_name_ind_t dev_name
ble_gap_ll_role_type_t ll_role
BLE GAPC event structure.
ble_gap_evt_connless_iq_report_t connless_iq_report
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 ...
ble_gap_dev_info_type_t
GAP Device inforamtion write indication.
Device Information set event for BLE_GAPC_EVT_DEV_INFO_SET.
ble_gap_disconn_reason_t
The specified reason for terminating a connection.
uint16_t ble_gap_le_event_noti_report_enable_set(uint8_t conn_idx, bool enable_flag)
Enable or disable the reporting of LE event notification.
ble_gap_ll_role_type_t
Device role of LL layer type.
@ BLE_GAP_PHY_OPT_NO_CODING
@ BLE_GAP_PHY_LE_2MBPS
LE 2M PHY preferred for an active link.
@ BLE_GAPC_DEV_APPEARANCE
ble_gap_get_peer_info_op_t
The operation code used to get peer device info.
Set connection CTE transmit parameters info.
Connection parameter update request event for BLE_GAPC_EVT_CONN_PARAM_UPDATE_REQ.
@ BLE_GAP_PWR_LOCAL_TX_CHG
@ BLE_GAP_INSUFFI_RESOURCE
uint16_t ble_gap_disconnect(uint8_t conn_idx)
Terminate an existing connection.
ble_gap_peer_version_ind_t peer_version
uint16_t ble_gap_get_adv_addr_by_conidx(uint8_t conn_idx, uint8_t *p_adv_addr)
Get adv address by connection index, only used for slave role.
ble_gap_pwr_lvl_flag_t
Transmit Power level flag.
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.
uint16_t ble_gap_conn_param_update_reply(uint8_t conn_idx, bool accept)
Connection param update reply to peer device.
uint16_t cte_req_interval
@ BLE_GAP_HCI_AUTHENTICATION_FAILURE
ble_gap_evt_data_length_t data_length
ble_gap_iq_report_status_t
Status of IQ report packet.
ble_gap_path_loss_zone_t
Path Loss zones. HCI:7.8.118.
Set path loss reporting parameter info.
@ BLE_GAP_HCI_REMOTE_USER_TERMINATED_CONNECTION
uint16_t ble_gap_ignore_latency_set(uint8_t conn_idx, bool ignore_flag, uint8_t ignore_num)
Ignore latency with numbers indicated by ignore_num, after slave sending data.
@ BLE_GAP_PHY_ANY
No preferred PHY.
ble_gap_evt_conn_info_t conn_info
@ BLE_GAP_GET_CON_CHANNEL_MAP
@ BLE_GAP_OPCODE_PRIVACY_MODE_SET
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.
Connectionless IQ Report info event for BLE_GAPC_EVT_CONNECTLESS_IQ_REPORT.