15 BLE_GAP_STATUS_ADV = 0,
16 BLE_GAP_STATUS_EXT_ADV,
19 BLE_GAP_STATUS_PAIRED,
21 BLE_GAP_STATUS_HOST_PRIVACY,
22 BLE_GAP_STATUS_PERIODIC,
25typedef enum gap_status gap_status_t;
27#define BLE_DUPLICATE_SCAN_EXCEPTIONAL_INFO_ADV_ADDR 0
28#define BLE_DUPLICATE_SCAN_EXCEPTIONAL_INFO_MESH_LINK_ID 1
29#define BLE_DUPLICATE_SCAN_EXCEPTIONAL_INFO_MESH_BEACON_TYPE 2
30#define BLE_DUPLICATE_SCAN_EXCEPTIONAL_INFO_MESH_PROV_SRV_ADV 3
31#define BLE_DUPLICATE_SCAN_EXCEPTIONAL_INFO_MESH_PROXY_SRV_ADV 4
47int ble_hs_hci_util_set_data_len(uint16_t conn_handle, uint16_t tx_octets,
64int ble_hs_hci_util_read_sugg_def_data_len(uint16_t *out_sugg_max_tx_octets,
65 uint16_t *out_sugg_max_tx_time);
80int ble_hs_hci_util_write_sugg_def_data_len(uint16_t sugg_max_tx_octets, uint16_t sugg_max_tx_time);
89int ble_gap_wl_tx_rmv(
const ble_addr_t *addrs);
96int ble_gap_wl_tx_clear(
void);
105int ble_gap_wl_read_size(uint8_t *size);
113int ble_gap_host_check_status(
void);
122int ble_gap_get_local_used_addr(ble_addr_t *addr);
135uint8_t* ble_resolve_adv_data(
const uint8_t *adv_data, uint8_t adv_type, uint8_t adv_data_len , uint8_t * length);
137#if MYNEWT_VAL(BLE_HCI_VS)
138#if MYNEWT_VAL(BLE_POWER_CONTROL)
140#define ESP_1M_LOW (-70)
141#define ESP_1M_HIGH (-60)
142#define ESP_2M_LOW (-68)
143#define ESP_2M_HIGH (-58)
144#define ESP_S2_LOW (-75)
145#define ESP_S2_HIGH (-65)
146#define ESP_S8_LOW (-80)
147#define ESP_S8_HIGH (-70)
148#define ESP_MIN_TIME (15)
156struct ble_gap_set_auto_pcl_params {
162 int8_t m1_lower_limit;
165 int8_t m1_upper_limit;
167#if MYNEWT_VAL(BLE_LL_CFG_FEAT_LE_2M_PHY)
169 int8_t m2_lower_limit;
172 int8_t m2_upper_limit;
175#if MYNEWT_VAL(BLE_LL_CFG_FEAT_LE_CODED_PHY)
177 int8_t s2_lower_limit;
180 int8_t s2_upper_limit;
183 int8_t s8_lower_limit;
186 int8_t s8_upper_limit;
191 uint8_t min_time_spent;
209int ble_gap_set_auto_pcl_param(
struct ble_gap_set_auto_pcl_params *params);
225int ble_gap_duplicate_exception_list(uint8_t subcode, uint8_t type, uint8_t *value,
void *cb);
232int ble_gap_clear_legacy_adv(
void);
239int ble_gap_set_chan_select(uint8_t select);
258ble_gap_dev_authorization(uint16_t conn_handle,
bool authorized);
260void ble_gap_rx_test_evt(
const void *buf, uint8_t len);
261void ble_gap_tx_test_evt(
const void *buf, uint8_t len);
262void ble_gap_end_test_evt(
const void *buf, uint8_t len);