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
75 #define BLE_GAP_ADDR_TYPE_PUBLIC 0x00
76 #define BLE_GAP_ADDR_TYPE_RANDOM_STATIC 0x01
81 #define BLE_GAP_PHY_OPT_NO_CODING 0x00
82 #define BLE_GAP_PHY_OPT_S2_CODING 0x01
83 #define BLE_GAP_PHY_OPT_S8_CODING 0x02
RF path compensation values info.
Get broadcast address struct.
ble_gap_peer_info_t peer_info
@ BLE_GAP_OPCODE_LEPSM_UNREGISTER
Connection complete event for BLE_GAPC_EVT_CONNECTED.
ble_gap_peer_features_ind_t peer_features
ble_gap_disconn_reason_t
The specified reason for terminating a connection.
ble_gap_evt_phy_update_t phy_update
ble_gap_evt_disconnected_t disconnected
ble_gap_dev_rf_path_comp_ind_t dev_rf_path_comp
uint16_t suppted_max_rx_time
Disconnection event for BLE_GAPC_EVT_DISCONNECTED.
The Structure for BLE Connection Arrangement.
ble_gap_evt_peer_info_t peer_info
Get peer info event for BLE_GAPC_EVT_PEER_INFO_GOT.
ble_gap_psm_manager_op_id_t
Operation code used for LEPSM manager.
The struct of broadcast address with broadcast type.
PHY update event for BLE_GAPC_EVT_PHY_UPDATED.
@ BLE_GAP_HCI_PAIRING_WITH_UNIT_KEY_UNSUPPORTED
Number of available advertising sets info.
Name of peer device indication event for BLE_GAPC_EVT_PEER_NAME_GOT.
@ BLE_GAP_OPCODE_PRIVACY_MODE_SET
ble_gap_max_adv_data_len_ind_t max_adv_data_len
ble_gap_evt_peer_name_get_t peer_name
ble_gap_chnl_map_t chnl_map
uint16_t suggted_max_tx_octets
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.
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.
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.
Define the chip configuration.
@ BLE_GAP_GET_PEER_VERSION
ble_gap_evt_conn_param_updated_t conn_param_updated
ble_gap_param_set_op_id_t
Operation code used to set param(s).
@ BLE_GAP_HCI_REMOTE_DEV_TERMINATION_DUE_TO_POWER_OFF
ble_gap_dev_adv_tx_power_t adv_tx_power
@ BLE_GAP_GET_PEER_FEATURES
Get Connection info event for BLE_GAPC_EVT_CONN_INFO_GOT.
uint16_t suppted_max_tx_time
ble_gap_evt_connected_t connected
@ BLE_GAP_OPCODE_WHITELIST_SET
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.
@ BLE_GAP_HCI_CONN_INTERVAL_UNACCEPTABLE
ble_gap_dev_info_t dev_info
The parameter of connection.
@ BLE_GAP_OPCODE_LEPSM_REGISTER
File that contains error codes.
#define BLE_GAP_FEATS_LEN
The parameter of update connection.
@ BLE_GAP_HCI_REMOTE_DEV_TERMINATION_DUE_TO_LOW_RESOURCES
#define BLE_GAP_CHNL_MAP_LEN
@ BLE_GAP_HCI_AUTHENTICATION_FAILURE
ble_gap_dev_tx_power_t dev_tx_power
ble_gap_dev_version_ind_t dev_version
@ BLE_GAP_OPCODE_PER_ADV_LIST_SET
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.
The struct of device version.
Data Length Updated event for BLE_GAPC_EVT_DATA_LENGTH_UPDATED.
ble_gap_get_bd_addr_t get_bd_addr
ble_gap_ll_role_type_t ll_role
ble_gap_get_peer_info_op_t
The operation code used to get peer device info.
BLE GAPC event structure.
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_GET_CHAN_SEL_ALGO
ble_gap_ll_role_type_t
Device role of LL layer type.
@ BLE_GAP_HCI_REMOTE_USER_TERMINATED_CONNECTION
uint16_t suppted_max_tx_octets
Suggested default data length info.
@ BLE_GAP_GET_CON_CHANNEL_MAP
Connection parameter update request event for BLE_GAPC_EVT_CONN_PARAM_UPDATE_REQ.
Max data length info struct.
uint16_t ble_gap_disconnect(uint8_t conn_idx)
Terminate an existing connection.
ble_gap_peer_version_ind_t peer_version
uint16_t suppted_max_rx_octets
@ BLE_GAP_HCI_UNSUPPORTED_REMOTE_FEATURE
@ BLE_GAP_OPCODE_CHNL_MAP_SET
uint16_t ble_gap_conn_param_update_reply(uint8_t conn_idx, bool accept)
Connection param update reply to peer device.
ble_gap_get_conn_info_op_t
The operation code used to get connection info.
Get device info event for BLE_GAPC_EVT_DEV_INFO_GOT.
ble_gap_evt_data_length_t data_length
Maximum advertising data length info.
ble_gap_nb_adv_sets_t nb_adv_sets
uint16_t suggted_max_tx_time
ble_gap_sugg_dflt_data_len_t sugg_dflt_data_len
ble_gap_max_data_len_t max_data_len
ble_gap_evt_conn_info_t conn_info
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.