ble_gapm.h
Go to the documentation of this file.
1
50 #ifndef __BLE_GAPM_H__
51 #define __BLE_GAPM_H__
52
53 /*
54 * INCLUDE FILES
55 ****************************************************************************************
56 */
57 #include "ble_error.h"
58 #include "ble_gapc.h"
59 #include <stdint.h> // standard definitions
60 #include <stddef.h> // standard definitions
61
62
72 #define CO_BIT(pos)(1UL<<(pos))
73 #define MAX_ADV_NUM 5
74 #define MAX_PER_SYNC_NUM 5
75 #define MAX_BOND_NUM 10
76 #define MAX_WL_NUM 10
78 #define MAX_PRD_ADV_NUM 4
79 #define MAX_KEY_LEN 16
80 #define INVALID_ADV_IDX 0xFF
81 #define BLE_GAP_DEVNAME_DEFAULT "GOODIX_BLE"
82 #define BLE_GAP_DEVNAME_MAX_LEN 248
84 #define BLE_APPEARANCE_UNKNOWN 0
85 #define BLE_APPEARANCE_GENERIC_PHONE 64
86 #define BLE_APPEARANCE_GENERIC_COMPUTER 128
87 #define BLE_APPEARANCE_GENERIC_WATCH 192
88 #define BLE_APPEARANCE_WATCH_SPORTS_WATCH 193
89 #define BLE_APPEARANCE_GENERIC_CLOCK 256
90 #define BLE_APPEARANCE_GENERIC_DISPLAY 320
91 #define BLE_APPEARANCE_GENERIC_REMOTE_CONTROL 384
92 #define BLE_APPEARANCE_GENERIC_EYE_GLASSES 448
93 #define BLE_APPEARANCE_GENERIC_TAG 512
94 #define BLE_APPEARANCE_GENERIC_KEYRING 576
95 #define BLE_APPEARANCE_GENERIC_MEDIA_PLAYER 640
96 #define BLE_APPEARANCE_GENERIC_BARCODE_SCANNER 704
97 #define BLE_APPEARANCE_GENERIC_THERMOMETER 768
98 #define BLE_APPEARANCE_THERMOMETER_EAR 769
99 #define BLE_APPEARANCE_GENERIC_HEART_RATE_SENSOR 832
100 #define BLE_APPEARANCE_HEART_RATE_SENSOR_HEART_RATE_BELT 833
101 #define BLE_APPEARANCE_GENERIC_BLOOD_PRESSURE 896
102 #define BLE_APPEARANCE_BLOOD_PRESSURE_ARM 897
103 #define BLE_APPEARANCE_BLOOD_PRESSURE_WRIST 898
104 #define BLE_APPEARANCE_GENERIC_HID 960
105 #define BLE_APPEARANCE_HID_KEYBOARD 961
106 #define BLE_APPEARANCE_HID_MOUSE 962
107 #define BLE_APPEARANCE_HID_JOYSTICK 963
108 #define BLE_APPEARANCE_HID_GAMEPAD 964
109 #define BLE_APPEARANCE_HID_DIGITIZERSUBTYPE 965
110 #define BLE_APPEARANCE_HID_CARD_READER 966
111 #define BLE_APPEARANCE_HID_DIGITAL_PEN 967
112 #define BLE_APPEARANCE_HID_BARCODE 968
113 #define BLE_APPEARANCE_GENERIC_GLUCOSE_METER 1024
114 #define BLE_APPEARANCE_GENERIC_RUNNING_WALKING_SENSOR 1088
115 #define BLE_APPEARANCE_RUNNING_WALKING_SENSOR_IN_SHOE 1089
116 #define BLE_APPEARANCE_RUNNING_WALKING_SENSOR_ON_SHOE 1090
117 #define BLE_APPEARANCE_RUNNING_WALKING_SENSOR_ON_HIP 1091
118 #define BLE_APPEARANCE_GENERIC_CYCLING 1152
119 #define BLE_APPEARANCE_CYCLING_CYCLING_COMPUTER 1153
120 #define BLE_APPEARANCE_CYCLING_SPEED_SENSOR 1154
121 #define BLE_APPEARANCE_CYCLING_CADENCE_SENSOR 1155
122 #define BLE_APPEARANCE_CYCLING_POWER_SENSOR 1156
123 #define BLE_APPEARANCE_CYCLING_SPEED_CADENCE_SENSOR 1157
124 #define BLE_APPEARANCE_GENERIC_PULSE_OXIMETER 3136
125 #define BLE_APPEARANCE_PULSE_OXIMETER_FINGERTIP 3137
126 #define BLE_APPEARANCE_PULSE_OXIMETER_WRIST_WORN 3138
127 #define BLE_APPEARANCE_GENERIC_WEIGHT_SCALE 3200
128 #define BLE_APPEARANCE_GENERIC_OUTDOOR_SPORTS_ACT 5184
129 #define BLE_APPEARANCE_OUTDOOR_SPORTS_ACT_LOC_DISP 5185
130 #define BLE_APPEARANCE_OUTDOOR_SPORTS_ACT_LOC_AND_NAV_DISP 5186
131 #define BLE_APPEARANCE_OUTDOOR_SPORTS_ACT_LOC_POD 5187
132 #define BLE_APPEARANCE_OUTDOOR_SPORTS_ACT_LOC_AND_NAV_POD 5188
136 #define BLE_GAP_PHY_ANY 0x00
137 #define BLE_GAP_PHY_LE_1MBPS (1 << 0)
138 #define BLE_GAP_PHY_LE_2MBPS (1 << 1)
139 #define BLE_GAP_PHY_LE_CODED (1 << 2)
145 #define GAP_ADV_CHANNEL_37 0x01
146 #define GAP_ADV_CHANNEL_38 0x02
147 #define GAP_ADV_CHANNEL_39 0x04
148 #define GAP_ADV_CHANNEL_37_38_39 0x07
157 typedef enum
158 {
159 BLE_GAP_ROLE_NONE = 0x00,
160 BLE_GAP_ROLE_OBSERVER = 0x01,
161 BLE_GAP_ROLE_BROADCASTER = 0x02,
162 BLE_GAP_ROLE_CENTRAL = (0x04 | BLE_GAP_ROLE_OBSERVER),
163 BLE_GAP_ROLE_PERIPHERAL = (0x08 | BLE_GAP_ROLE_BROADCASTER),
164 BLE_GAP_ROLE_ALL = (BLE_GAP_ROLE_CENTRAL | BLE_GAP_ROLE_PERIPHERAL),
165 } gap_role_t;
166
170 typedef enum
171 {
172 BLE_GAP_OWN_ADDR_STATIC = 0,
173 BLE_GAP_OWN_ADDR_GEN_RSLV,
174 BLE_GAP_OWN_ADDR_GEN_NON_RSLV,
175 } gap_own_addr_t;
176
180 typedef enum
181 {
182 BLE_GAP_WRITE_PERM_DISABLE = 0,
183 BLE_GAP_WRITE_PERM_NOAUTH,
184 BLE_GAP_WRITE_PERM_UNAUTH,
185 BLE_GAP_WRITE_PERM_AUTH,
186 BLE_GAP_WRITE_PERM_SEC_CON,
187 } gap_dev_name_write_perm_t;
188
192 typedef enum
193 {
194 BLE_GAP_ADV_DATA_TYPE_DATA = 0,
195 BLE_GAP_ADV_DATA_TYPE_SCAN_RSP,
196 BLE_GAP_ADV_DATA_TYPE_PER_DATA,
197 } gap_adv_data_type_t;
198
199
201 typedef enum
202 {
203 BLE_GAP_GET_DEV_VERSION = 0,
204 BLE_GAP_GET_DEV_BDADDR,
205 //BLE_GAP_GET_DEV_ADV_TX_POWER, /**< Get the transmit power level used for LE advertising channel packets. */
206 BLE_GAP_GET_SUGGESTED_DFLT_LE_DATA_LEN,
209 BLE_GAP_GET_MAX_LE_DATA_LEN,
212 BLE_GAP_GET_NB_ADV_SETS,
213 BLE_GAP_GET_MAX_LE_ADV_DATA_LEN,
214 BLE_GAP_GET_DEV_TX_POWER,
215 BLE_GAP_GET_DEV_RF_RF_PATH_COMP,
216 } gap_dev_info_get_type_t;
217
219 typedef enum
220 {
221 GAP_ADV_TYPE_ADV_IND = 0,
222 GAP_ADV_TYPE_ADV_NONCONN_IND,
223 GAP_ADV_TYPE_ADV_SCAN_IND,
224 GAP_ADV_TYPE_ADV_HIGH_DIRECT_IND,
225 GAP_ADV_TYPE_ADV_LOW_DIRECT_IND,
226 } gap_adv_mode_t;
227
229 typedef enum
230 {
231 GAP_DISC_MODE_NON_DISCOVERABLE = 0,
232 GAP_DISC_MODE_GEN_DISCOVERABLE,
233 GAP_DISC_MODE_LIM_DISCOVERABLE,
234 GAP_DISC_MODE_BROADCASTER,
235 } gap_disc_mode_t;
236
240 typedef enum
241 {
242 GAP_ADV_ALLOW_SCAN_ANY_CON_ANY = 0,
243 GAP_ADV_ALLOW_SCAN_WLST_CON_ANY,
244 GAP_ADV_ALLOW_SCAN_ANY_CON_WLST,
245 GAP_ADV_ALLOW_SCAN_WLST_CON_WLST,
246 } gap_adv_filter_policy_t;
247
251 typedef enum
252 {
253 GAP_PHY_UNDEF_VALUE = 0,
254 GAP_PHY_1MBPS_VALUE = 1,
255 GAP_PHY_2MBPS_VALUE = 2,
256 GAP_PHY_CODED_VALUE = 3,
257 } gap_le_phy_value_t;
258
262 typedef enum
263 {
264 GAP_ADV_TYPE_LEGACY = 0,
265 GAP_ADV_TYPE_EXTENDED,
266 GAP_ADV_TYPE_PERIODIC,
267 } gap_adv_type_t;
268
272 typedef enum
273 {
274 GAP_ADV_PROP_CONNECTABLE_POS = 0,
276 GAP_ADV_PROP_SCANNABLE_POS,
277 GAP_ADV_PROP_DIRECTED_POS,
280 GAP_ADV_PROP_HDC_POS,
282 GAP_ADV_PROP_USE_LEGACY_PDUS_POS,
283 GAP_ADV_PROP_ANONYMOUS_POS,
285 GAP_ADV_PROP_TX_PWR_POS,
287 GAP_ADV_PROP_PER_TX_PWR_POS,
289 GAP_ADV_PROP_SCAN_REQ_NTF_EN_POS,
290 } gap_adv_prop_pos_t;
291
295 typedef enum
296 {
297 GAP_ADV_PROP_CONNECTABLE_BIT = CO_BIT(GAP_ADV_PROP_CONNECTABLE_POS),
298 GAP_ADV_PROP_SCANNABLE_BIT = CO_BIT(GAP_ADV_PROP_SCANNABLE_POS),
299 GAP_ADV_PROP_DIRECTED_BIT = CO_BIT(GAP_ADV_PROP_DIRECTED_POS),
300 GAP_ADV_PROP_HDC_BIT = CO_BIT(GAP_ADV_PROP_HDC_POS),
301 GAP_ADV_PROP_USE_LEGACY_PDUS_BIT = CO_BIT(GAP_ADV_PROP_USE_LEGACY_PDUS_POS),
302 GAP_ADV_PROP_ANONYMOUS_BIT = CO_BIT(GAP_ADV_PROP_ANONYMOUS_POS),
303 GAP_ADV_PROP_TX_PWR_BIT = CO_BIT(GAP_ADV_PROP_TX_PWR_POS),
304 GAP_ADV_PROP_PER_TX_PWR_BIT = CO_BIT(GAP_ADV_PROP_PER_TX_PWR_POS),
305 GAP_ADV_PROP_SCAN_REQ_NTF_EN_BIT = CO_BIT(GAP_ADV_PROP_SCAN_REQ_NTF_EN_POS),
306 } gap_adv_prop_t;
307
311 typedef enum
312 {
313 GAP_SCAN_ACTIVE = 0,
314 GAP_SCAN_PASSIVE,
315 } gap_scan_type_t;
316
320 typedef enum
321 {
322 GAP_SCAN_GEN_DISC_MODE = 0,
323 GAP_SCAN_LIM_DISC_MODE,
324 GAP_SCAN_OBSERVER_MODE,
325 } gap_scan_mode_t;
326
330 typedef enum
331 {
332 GAP_SCAN_FILT_DUPLIC_DIS = 0,
333 GAP_SCAN_FILT_DUPLIC_EN,
334 } gap_scan_dup_filt_policy_t;
335
339 typedef enum
340 {
341 GAP_EXT_SCAN_TYPE_GEN_DISC = 0,
342 GAP_EXT_SCAN_TYPE_LIM_DISC,
343 GAP_EXT_SCAN_TYPE_OBSERVER,
344 GAP_EXT_SCAN_TYPE_SEL_OBSERVER,
345 GAP_EXT_SCAN_TYPE_CONN_DISC,
346 GAP_EXT_SCAN_TYPE_SEL_CONN_DISC,
347 } gap_ext_scan_type_t;
348
352 typedef enum
353 {
354 GAP_EXT_SCAN_PROP_PHY_1M_BIT = (1 << 0),
355 GAP_EXT_SCAN_PROP_PHY_CODED_BIT = (1 << 1),
356 GAP_EXT_SCAN_PROP_ACTIVE_1M_BIT = (1 << 2),
357 GAP_EXT_SCAN_PROP_ACTIVE_CODED_BIT = (1 << 3),
358 GAP_EXT_SCAN_PROP_ACCEPT_RPA_BIT = (1 << 4),
359 GAP_EXT_SCAN_PROP_FILT_TRUNC_BIT = (1 << 5),
360 } gap_scan_prop_t;
361
365 typedef enum
366 {
367 GAP_EXT_DUP_FILT_DIS = 0,
368 GAP_EXT_DUP_FILT_EN,
369 GAP_EXT_DUP_FILT_EN_PERIOD,
370 } gap_ext_scan_dup_filt_policy_t;
371
375 typedef enum
376 {
377 GAP_INIT_TYPE_DIRECT_CONN_EST = 0,
378 GAP_INIT_TYPE_AUTO_CONN_EST,
379 GAP_INIT_TYPE_NAME_DISC,
380 } gap_init_type_t;
381
385 typedef enum
386 {
387 GAP_INIT_PROP_1M_BIT = (1 << 0),
388 GAP_INIT_PROP_2M_BIT = (1 << 1),
389 GAP_INIT_PROP_CODED_BIT = (1 << 2),
390 } gap_init_prop_t;
391
395 enum gap_scan_prop
396 {
397 GAP_SCAN_PROP_PHY_1M_BIT = (1 << 0),
398 GAP_SCAN_PROP_PHY_CODED_BIT = (1 << 1),
399 GAP_SCAN_PROP_ACTIVE_1M_BIT = (1 << 2),
400 GAP_SCAN_PROP_ACTIVE_CODED_BIT = (1 << 3),
401 GAP_SCAN_PROP_ACCEPT_RPA_BIT = (1 << 4),
402 GAP_SCAN_PROP_FILT_TRUNC_BIT = (1 << 5),
403 };
404
408 enum gap_per_sync_type
409 {
410 GAP_PER_SYNC_TYPE_GENERAL = 0,
411 GAP_PER_SYNC_TYPE_SELECTIVE,
412 };
413
417 enum gap_sec_lvl_type
418 {
419 GAP_SEC_LVL_NO_SECURITY = 0,
420 GAP_SEC_LVL_ENC_NO_AUTH,
421 GAP_SEC_LVL_LE_ENC_AUTH,
422 GAP_SEC_LVL_SC_ENC_AUTH,
423 };
424
428 typedef enum
429 {
430 BLE_GAP_AD_TYPE_FLAGS = 0x01,
431 BLE_GAP_AD_TYPE_MORE_16_BIT_UUID = 0x02,
432 BLE_GAP_AD_TYPE_COMPLETE_LIST_16_BIT_UUID = 0x03,
433 BLE_GAP_AD_TYPE_MORE_32_BIT_UUID = 0x04,
434 BLE_GAP_AD_TYPE_COMPLETE_LIST_32_BIT_UUID = 0x05,
435 BLE_GAP_AD_TYPE_MORE_128_BIT_UUID = 0x06,
436 BLE_GAP_AD_TYPE_COMPLETE_LIST_128_BIT_UUID = 0x07,
437 BLE_GAP_AD_TYPE_SHORTENED_NAME = 0x08,
438 BLE_GAP_AD_TYPE_COMPLETE_NAME = 0x09,
439 BLE_GAP_AD_TYPE_TRANSMIT_POWER = 0x0A,
440 BLE_GAP_AD_TYPE_CLASS_OF_DEVICE = 0x0D,
441 BLE_GAP_AD_TYPE_SP_HASH_C = 0x0E,
442 BLE_GAP_AD_TYPE_SP_RANDOMIZER_R = 0x0F,
443 BLE_GAP_AD_TYPE_TK_VALUE = 0x10,
444 BLE_GAP_AD_TYPE_OOB_FLAGS = 0x11,
445 BLE_GAP_AD_TYPE_SLAVE_CONN_INT_RANGE = 0x12,
446 BLE_GAP_AD_TYPE_RQRD_16_BIT_SVC_UUID = 0x14,
447 BLE_GAP_AD_TYPE_RQRD_32_BIT_SVC_UUID = 0x1F,
448 BLE_GAP_AD_TYPE_RQRD_128_BIT_SVC_UUID = 0x15,
449 BLE_GAP_AD_TYPE_SERVICE_16_BIT_DATA = 0x16,
450 BLE_GAP_AD_TYPE_SERVICE_32_BIT_DATA = 0x20,
451 BLE_GAP_AD_TYPE_SERVICE_128_BIT_DATA = 0x21,
452 BLE_GAP_AD_TYPE_PUB_TGT_ADDR = 0x17,
453 BLE_GAP_AD_TYPE_RAND_TGT_ADDR = 0x18,
454 BLE_GAP_AD_TYPE_APPEARANCE = 0x19,
455 BLE_GAP_AD_TYPE_ADV_INTV = 0x1A,
456 BLE_GAP_AD_TYPE_LE_BT_ADDR = 0x1B,
457 BLE_GAP_AD_TYPE_LE_ROLE = 0x1C,
458 BLE_GAP_AD_TYPE_SPAIR_HASH = 0x1D,
459 BLE_GAP_AD_TYPE_SPAIR_RAND = 0x1E,
460 BLE_GAP_AD_TYPE_3D_INFO = 0x3D,
462 BLE_GAP_AD_TYPE_MANU_SPECIFIC_DATA = 0xFF,
463 }gap_ad_type_t;
464
468 typedef enum
469 {
470 GAP_ADV_FLAG_LE_LIMITED_DISC_MODE = 0x01,
471 GAP_ADV_FLAG_LE_GENERAL_DISC_MODE = 0x02,
472 GAP_ADV_FLAG_BR_EDR_NOT_SUPPORTED = 0x04,
473 GAP_ADV_FLAG_SIMUL_BR_EDR_LE_CONTROLLER = 0x08,
474 GAP_ADV_FLAG_SIMUL_BR_EDR_LE_HOST = 0x10,
475 } gap_adv_flags_t;
476
481 typedef enum
482 {
483 PRIVACY_MODE_NETWORK= 0x00,
484 PRIVACY_MODE_DEVICE = 0x01,
485 } privacy_mode_t;
486
490 typedef enum
491 {
492 GAP_ACTIVITY_ROLE_ADV = 0,
493 GAP_ACTIVITY_ROLE_CON = 1,
494 GAP_ACTIVITY_ROLE_SCAN_INIT = 2,
495 GAP_ACTIVITY_ROLE_UNKNOWN = 0xf,
496 } gap_activity_role_t;
497
501 typedef enum
502 {
503 TYPE_ADV = 0,
504 TYPE_SCAN,
505 TYPE_INIT,
506 TYPE_PER_SYNC,
507 } ble_actv_type_t;
508
517 typedef struct
518 {
519 uint8_t adv_mode;
520 uint8_t disc_mode;
521 uint8_t filter_pol;
522 gap_bdaddr_t peer_addr;
523 uint16_t adv_intv_min;
524 uint16_t adv_intv_max;
525 uint8_t chnl_map;
526 bool scan_req_ind_en;
527 int8_t max_tx_pwr;
529 } gap_adv_param_t;
530
534 typedef struct
535 {
536 uint32_t adv_intv_min;
537 uint32_t adv_intv_max;
538 uint8_t chnl_map;
539 gap_le_phy_value_t phy;
541 } gap_adv_prim_cfg_t;
542
546 typedef struct
547 {
548 uint8_t max_skip;
550 gap_le_phy_value_t phy;
551 uint8_t adv_sid;
552 } gap_adv_second_cfg_t;
553
557 typedef struct
558 {
559 uint16_t adv_intv_min;
560 uint16_t adv_intv_max;
561 } gap_adv_period_cfg_t;
562
566 typedef struct
567 {
568 uint8_t type;
569 uint8_t disc_mode;
570 uint16_t prop;
571 int8_t max_tx_pwr;
572 uint8_t filter_pol;
573 gap_bdaddr_t peer_addr;
574 gap_adv_prim_cfg_t prim_cfg;
575 gap_adv_second_cfg_t second_cfg;
576 gap_adv_period_cfg_t period_cfg;
577 } gap_ext_adv_param_t;
578
582 typedef struct
583 {
584 uint16_t duration;
588 uint8_t max_adv_evt;
590 } gap_adv_time_param_t;
591
595 typedef struct
596 {
597 uint8_t key[MAX_KEY_LEN];
598 } gap_sec_key_t;
599
603 typedef struct
604 {
605 gap_scan_type_t scan_type;
606 gap_scan_mode_t scan_mode;
607 gap_scan_dup_filt_policy_t scan_dup_filt;
608 bool use_whitelist;
609 uint16_t interval;
610 uint16_t window;
611 uint16_t timeout;
612 } gap_scan_param_t;
613
617 typedef struct
618 {
619 uint16_t scan_intv;
620 uint16_t scan_wd;
621 } gap_scan_wd_op_param_t;
622
626 typedef struct
627 {
628 uint8_t type;
629 uint8_t prop;
630 uint8_t dup_filt_pol;
631 uint8_t rsvd;
632 gap_scan_wd_op_param_t scan_param_1m;
633 gap_scan_wd_op_param_t scan_param_coded;
634 uint16_t duration;
636 uint16_t period;
638 } gap_ext_scan_param_t;
639
643 typedef struct
644 {
645 gap_bdaddr_t bd_addr;
646 uint8_t adv_sid;
647 } gap_period_adv_addr_cfg_t;
648
652 typedef struct
653 {
654 uint16_t skip;
656 uint16_t sync_to;
657 uint8_t type;
658 uint8_t rsvd;
659 gap_period_adv_addr_cfg_t adv_addr;
660 } gap_per_sync_param_t;
661
665 typedef struct
666 {
667 uint8_t type;
668 gap_bdaddr_t peer_addr;
669 uint16_t interval_min;
671 uint16_t interval_max;
673 uint16_t slave_latency;
674 uint16_t sup_timeout;
675 uint16_t conn_timeout;
678 } gap_init_param_t;
679
680
684 typedef struct
685 {
686 uint16_t conn_intv_min;
688 uint16_t conn_intv_max;
690 uint16_t conn_latency;
691 uint16_t supervision_to;
692 uint16_t ce_len;
693 } gap_ext_conn_param_t;
694
698 typedef struct
699 {
700 uint8_t type;
701 uint8_t prop;
702 uint16_t conn_to;
705 gap_scan_wd_op_param_t scan_param_1m;
706 gap_scan_wd_op_param_t scan_param_coded;
707 gap_ext_conn_param_t conn_param_1m;
708 gap_ext_conn_param_t conn_param_2m;
709 gap_ext_conn_param_t conn_param_coded;
710 gap_bdaddr_t peer_addr;
711 } gap_ext_init_param_t;
712
716 typedef struct
717 {
718 uint16_t le_psm;
719 uint8_t sec_lvl;
720 bool mks_flag;
721 } gap_lepsm_register_t;
722
726 typedef struct
727 {
728 uint8_t num;
729 gap_bdaddr_t items[MAX_BOND_NUM];
730 } bond_dev_list_t;
731
735 typedef struct
736 {
737 uint8_t num;
738 gap_bdaddr_t items[MAX_WL_NUM];
739 } white_list_t;
740
744 typedef struct
745 {
746 uint8_t num;
747 gap_period_adv_addr_cfg_t items[MAX_PRD_ADV_NUM];
748 } period_adv_list_t;
749
753 typedef struct
754 {
755 gap_bdaddr_t bd_addr;
756 uint8_t priv_mode;
757 uint8_t peer_irk[MAX_KEY_LEN];
758 uint8_t local_irk[MAX_KEY_LEN];
759 } gap_ral_dev_info_t;
760
764 typedef struct
765 {
766 uint8_t num;
767 gap_ral_dev_info_t items[MAX_BOND_NUM];
768 } ral_dev_list_t;
769
773 typedef void (*reslv_rpa_addr_callback_t) (uint8_t status, gap_bdaddr_t *iden_addr, uint8_t src_info);
774
778 typedef void (*rpa_addr_report_callback_t) (ble_actv_type_t type, uint8_t index, const uint8_t *rpa_addr);
779
793 void ble_gap_pair_enable(bool enable);
794
807 uint16_t ble_gap_addr_set(gap_bdaddr_t const *p_addr);
808
819 uint16_t ble_gap_addr_get(gap_bdaddr_t *p_addr);
820
838 uint16_t ble_gap_tx_power_set(gap_activity_role_t role, uint8_t index, int8_t txpwr_dbm);
839
857 uint16_t ble_gap_tx_power_get(gap_activity_role_t role, uint8_t index, int8_t *txpwr_dbm);
858
870 uint16_t ble_gap_default_tx_power_set(int8_t txpwr_dbm);
871
881 uint16_t ble_gap_default_tx_power_get(int8_t *txpwr_dbm);
882
883
894 uint16_t ble_gap_irk_set(gap_sec_key_t* p_irk);
895
907 uint16_t ble_gap_privacy_params_set(uint16_t renew_dur, bool enable_flag);
908
920 uint16_t ble_gap_data_length_set(uint16_t sugg_max_tx_octet,uint16_t sugg_max_tx_time);
921
937 uint16_t ble_gap_l2cap_params_set(uint16_t max_mtu,uint16_t max_mps,uint8_t max_nb_lecb);
938
947 void ble_gap_pref_phy_set(uint8_t tx_pref_phy, uint8_t rx_pref_phy);
948
960 uint16_t ble_gap_path_compensation_set(int16_t tx_path_comp, int16_t rx_path_comp);
961
977 uint16_t ble_gap_chnl_map_set(gap_chnl_map_t* p_chnl_map);
978
991 uint16_t ble_gap_bond_devs_get(bond_dev_list_t *p_bond_list);
992
1005 uint16_t ble_gap_bond_dev_addr_get(uint8_t conn_idx, gap_bdaddr_t *p_peer_addr);
1006
1018 uint16_t ble_gap_bond_devs_clear(void);
1019
1034 uint16_t ble_gap_bond_dev_del(const gap_bdaddr_t *p_peer_addr);
1035
1046 uint16_t ble_gap_whitelist_get(white_list_t *p_whitelist);
1047
1066 uint16_t ble_gap_whitelist_add(const white_list_t *p_whitelist);
1067
1086 uint16_t ble_gap_whitelist_del(const white_list_t *p_whitelist);
1087
1101 uint16_t ble_gap_whitelist_clear(void);
1102
1113 uint16_t ble_gap_per_adv_list_get(period_adv_list_t *p_pal_list);
1114
1134 uint16_t ble_gap_per_adv_list_add(const period_adv_list_t *p_pal_list);
1135
1154 uint16_t ble_gap_per_adv_list_del(const period_adv_list_t *p_pal_list);
1155
1168 uint16_t ble_gap_per_adv_list_clear(void);
1169
1179 uint16_t ble_gap_rpa_list_get(ral_dev_list_t *p_rpa_list);
1180
1196 uint16_t ble_gap_dev_info_get(gap_dev_info_get_type_t type);
1197
1216 uint16_t ble_gap_adv_param_set(uint8_t adv_idx, gap_own_addr_t own_addr_type, gap_adv_param_t* p_adv_param);
1217
1234 uint16_t ble_gap_ext_adv_param_set(uint8_t adv_idx, gap_own_addr_t own_addr_type, gap_ext_adv_param_t* p_adv_param);
1235
1255 uint16_t ble_gap_adv_data_set(uint8_t adv_idx, gap_adv_data_type_t type, const uint8_t* p_data, uint16_t length);
1256
1276 uint16_t ble_gap_update_adv_data(uint8_t adv_idx, gap_adv_data_type_t type, const uint8_t* p_data, uint16_t length);
1277
1299 uint16_t ble_gap_adv_start(uint8_t adv_idx, gap_adv_time_param_t* p_timeout);
1300
1314 uint16_t ble_gap_adv_stop(uint8_t adv_idx);
1315
1330 uint16_t ble_gap_scan_param_set(gap_own_addr_t own_addr_type, gap_scan_param_t* p_scan_param);
1331
1348 uint16_t ble_gap_ext_scan_param_set(gap_own_addr_t own_addr_type, gap_ext_scan_param_t* p_scan_param);
1349
1364 uint16_t ble_gap_scan_start(void);
1365
1377 uint16_t ble_gap_scan_stop(void);
1378
1391 uint16_t ble_gap_per_sync_param_set(uint8_t per_sync_idx, gap_per_sync_param_t* p_per_sync_param);
1392
1407 uint16_t ble_gap_per_sync_start(uint8_t per_sync_idx);
1408
1422 uint16_t ble_gap_per_sync_stop(uint8_t per_sync_idx);
1423
1443 uint16_t ble_gap_connect(gap_own_addr_t own_addr_type, gap_init_param_t* p_init_param);
1444
1462 uint16_t ble_gap_ext_connect(gap_own_addr_t own_addr_type, gap_ext_init_param_t* p_init_param);
1463
1475 uint16_t ble_gap_connect_cancel(void);
1476
1483 void ble_gap_appearance_set(uint16_t appearance);
1484
1494 uint16_t ble_gap_appearance_get(uint16_t *p_appearance);
1495
1503 void ble_gap_ppcp_present_set(bool present_flag);
1504
1514 uint16_t ble_gap_ppcp_set(gap_conn_param_t const *p_conn_params);
1515
1525 uint16_t ble_gap_ppcp_get(gap_conn_param_t *p_conn_params);
1526
1538 uint16_t ble_gap_device_name_set(gap_dev_name_write_perm_t write_perm, uint8_t const *p_dev_name, uint16_t length);
1539
1556 uint16_t ble_gap_device_name_get(uint8_t *p_dev_name, uint16_t *p_length);
1557
1573 uint16_t ble_gap_lepsm_register(gap_lepsm_register_t* p_lepsm);
1574
1589 uint16_t ble_gap_lepsm_unregister(uint16_t le_psm);
1590
1604 uint16_t ble_gap_privacy_mode_set(gap_bdaddr_t peer_addr, privacy_mode_t mode);
1605
1617 uint16_t ble_gap_rslv_addr_read(gap_rslv_addr_read_op_id_t op_code, gap_bdaddr_t peer_iden_addr);
1618
1631 uint16_t ble_gap_reslv_rpa_addr(uint8_t *reslv_addr, uint8_t src_info, reslv_rpa_addr_callback_t cb);
1632
1644 uint16_t ble_gap_update_conn_param_method_set(uint8_t conn_idx, bool use_l2cap_flag);
1645
1654 void ble_gap_rpa_addr_report_cb_register(rpa_addr_report_callback_t cb);
1655
1658 #endif
1659
BLE_GAP_AD_TYPE_SP_RANDOMIZER_R
@ BLE_GAP_AD_TYPE_SP_RANDOMIZER_R
Definition: ble_gapm.h:442
BLE_GAP_AD_TYPE_COMPLETE_LIST_16_BIT_UUID
@ BLE_GAP_AD_TYPE_COMPLETE_LIST_16_BIT_UUID
Definition: ble_gapm.h:432
gap_ext_scan_param_t::duration
uint16_t duration
Definition: ble_gapm.h:634
BLE_GAP_AD_TYPE_SERVICE_32_BIT_DATA
@ BLE_GAP_AD_TYPE_SERVICE_32_BIT_DATA
Definition: ble_gapm.h:450
BLE_GAP_GET_MAX_LE_DATA_LEN
@ BLE_GAP_GET_MAX_LE_DATA_LEN
Definition: ble_gapm.h:209
ble_gap_pref_phy_set
void ble_gap_pref_phy_set(uint8_t tx_pref_phy, uint8_t rx_pref_phy)
Set the preferred values for the transmitter PHY and receiver PHY.
gap_adv_second_cfg_t
Configuration for advertising on secondary channel.
Definition: ble_gapm.h:547
gap_adv_time_param_t::duration
uint16_t duration
Definition: ble_gapm.h:584
ble_gap_addr_get
uint16_t ble_gap_addr_get(gap_bdaddr_t *p_addr)
Get the device identity address (public or random static).
gap_period_adv_addr_cfg_t
Periodic advertising information.
Definition: ble_gapm.h:644
gap_init_param_t::sup_timeout
uint16_t sup_timeout
Definition: ble_gapm.h:674
BLE_GAP_WRITE_PERM_DISABLE
@ BLE_GAP_WRITE_PERM_DISABLE
Definition: ble_gapm.h:182
GAP_DISC_MODE_LIM_DISCOVERABLE
@ GAP_DISC_MODE_LIM_DISCOVERABLE
Definition: ble_gapm.h:233
BLE_GAP_AD_TYPE_FLAGS
@ BLE_GAP_AD_TYPE_FLAGS
Definition: ble_gapm.h:430
BLE_GAP_AD_TYPE_SERVICE_16_BIT_DATA
@ BLE_GAP_AD_TYPE_SERVICE_16_BIT_DATA
Definition: ble_gapm.h:449
gap_ext_conn_param_t::supervision_to
uint16_t supervision_to
Definition: ble_gapm.h:691
GAP_EXT_SCAN_PROP_ACTIVE_1M_BIT
@ GAP_EXT_SCAN_PROP_ACTIVE_1M_BIT
Definition: ble_gapm.h:356
gap_ext_adv_param_t::peer_addr
gap_bdaddr_t peer_addr
Definition: ble_gapm.h:573
PRIVACY_MODE_DEVICE
@ PRIVACY_MODE_DEVICE
Definition: ble_gapm.h:484
gap_ext_adv_param_t::disc_mode
uint8_t disc_mode
Definition: ble_gapm.h:569
BLE_GAP_AD_TYPE_LE_ROLE
@ BLE_GAP_AD_TYPE_LE_ROLE
Definition: ble_gapm.h:457
GAP_PHY_CODED_VALUE
@ GAP_PHY_CODED_VALUE
Definition: ble_gapm.h:256
gap_ext_init_param_t::conn_param_1m
gap_ext_conn_param_t conn_param_1m
Definition: ble_gapm.h:707
BLE_GAP_AD_TYPE_ADV_INTV
@ BLE_GAP_AD_TYPE_ADV_INTV
Definition: ble_gapm.h:455
GAP_SCAN_LIM_DISC_MODE
@ GAP_SCAN_LIM_DISC_MODE
Definition: ble_gapm.h:323
ble_gap_scan_start
uint16_t ble_gap_scan_start(void)
Start scanning.
PRIVACY_MODE_NETWORK
@ PRIVACY_MODE_NETWORK
Definition: ble_gapm.h:483
gap_ext_conn_param_t::conn_intv_max
uint16_t conn_intv_max
Definition: ble_gapm.h:688
GAP_INIT_PROP_1M_BIT
@ GAP_INIT_PROP_1M_BIT
Definition: ble_gapm.h:387
GAP_INIT_PROP_CODED_BIT
@ GAP_INIT_PROP_CODED_BIT
Definition: ble_gapm.h:389
ble_gap_irk_set
uint16_t ble_gap_irk_set(gap_sec_key_t *p_irk)
Set IRK used for resolvable random BD address generation (LSB first).
ble_gap_dev_info_get
uint16_t ble_gap_dev_info_get(gap_dev_info_get_type_t type)
Get the device information according to param type.
GAP_ADV_PROP_SCAN_REQ_NTF_EN_POS
@ GAP_ADV_PROP_SCAN_REQ_NTF_EN_POS
Definition: ble_gapm.h:289
GAP_SCAN_ACTIVE
@ GAP_SCAN_ACTIVE
Definition: ble_gapm.h:313
gap_adv_param_t::disc_mode
uint8_t disc_mode
Definition: ble_gapm.h:520
period_adv_list_t::num
uint8_t num
Definition: ble_gapm.h:746
BLE_GAP_AD_TYPE_COMPLETE_NAME
@ BLE_GAP_AD_TYPE_COMPLETE_NAME
Definition: ble_gapm.h:438
GAP_SCAN_OBSERVER_MODE
@ GAP_SCAN_OBSERVER_MODE
Definition: ble_gapm.h:324
gap_scan_param_t::scan_mode
gap_scan_mode_t scan_mode
Definition: ble_gapm.h:606
gap_init_param_t::type
uint8_t type
Definition: ble_gapm.h:667
ble_gap_privacy_mode_set
uint16_t ble_gap_privacy_mode_set(gap_bdaddr_t peer_addr, privacy_mode_t mode)
Set privacy mode for peer device.
GAP_INIT_PROP_2M_BIT
@ GAP_INIT_PROP_2M_BIT
Definition: ble_gapm.h:388
gap_scan_param_t
Parameters for legacy scanning.
Definition: ble_gapm.h:604
gap_own_addr_t
gap_own_addr_t
Own BD address source of the device.
Definition: ble_gapm.h:171
gap_adv_mode_t
gap_adv_mode_t
GAP advertising modes.
Definition: ble_gapm.h:220
BLE_GAP_AD_TYPE_SHORTENED_NAME
@ BLE_GAP_AD_TYPE_SHORTENED_NAME
Definition: ble_gapm.h:437
GAP_EXT_SCAN_TYPE_SEL_OBSERVER
@ GAP_EXT_SCAN_TYPE_SEL_OBSERVER
Definition: ble_gapm.h:344
BLE_GAP_GET_SUGGESTED_DFLT_LE_DATA_LEN
@ BLE_GAP_GET_SUGGESTED_DFLT_LE_DATA_LEN
Definition: ble_gapm.h:206
gap_adv_param_t::scan_req_ind_en
bool scan_req_ind_en
Definition: ble_gapm.h:526
gap_adv_second_cfg_t::adv_sid
uint8_t adv_sid
Definition: ble_gapm.h:551
GAP_SEC_LVL_SC_ENC_AUTH
@ GAP_SEC_LVL_SC_ENC_AUTH
Definition: ble_gapm.h:422
ble_gap_connect_cancel
uint16_t ble_gap_connect_cancel(void)
Cancel an initiated connection.
ble_gap_connect
uint16_t ble_gap_connect(gap_own_addr_t own_addr_type, gap_init_param_t *p_init_param)
Start a legacy connection to a device.
BLE_GAP_AD_TYPE_MORE_128_BIT_UUID
@ BLE_GAP_AD_TYPE_MORE_128_BIT_UUID
Definition: ble_gapm.h:435
ble_gap_chnl_map_set
uint16_t ble_gap_chnl_map_set(gap_chnl_map_t *p_chnl_map)
Set advertising channel map before advertising starts.
BLE_GAP_AD_TYPE_SPAIR_RAND
@ BLE_GAP_AD_TYPE_SPAIR_RAND
Definition: ble_gapm.h:459
GAP_INIT_TYPE_DIRECT_CONN_EST
@ GAP_INIT_TYPE_DIRECT_CONN_EST
Definition: ble_gapm.h:377
gap_period_adv_addr_cfg_t::adv_sid
uint8_t adv_sid
Definition: ble_gapm.h:646
ble_gap_pair_enable
void ble_gap_pair_enable(bool enable)
Decide whether to support the pair feature.
GAP_SCAN_FILT_DUPLIC_EN
@ GAP_SCAN_FILT_DUPLIC_EN
Definition: ble_gapm.h:333
gap_ext_scan_param_t::rsvd
uint8_t rsvd
Definition: ble_gapm.h:631
BLE_GAP_ROLE_CENTRAL
@ BLE_GAP_ROLE_CENTRAL
Definition: ble_gapm.h:162
gap_ext_init_param_t::peer_addr
gap_bdaddr_t peer_addr
Definition: ble_gapm.h:710
gap_ext_init_param_t::scan_param_coded
gap_scan_wd_op_param_t scan_param_coded
Definition: ble_gapm.h:706
ble_gap_rslv_addr_read
uint16_t ble_gap_rslv_addr_read(gap_rslv_addr_read_op_id_t op_code, gap_bdaddr_t peer_iden_addr)
Read peer or local resolvable address.
BLE_GAP_OWN_ADDR_GEN_RSLV
@ BLE_GAP_OWN_ADDR_GEN_RSLV
Definition: ble_gapm.h:173
gap_ext_scan_param_t::dup_filt_pol
uint8_t dup_filt_pol
Definition: ble_gapm.h:630
gap_adv_prop_t
gap_adv_prop_t
Advertising properties bit field bit value.
Definition: ble_gapm.h:296
ble_gap_whitelist_add
uint16_t ble_gap_whitelist_add(const white_list_t *p_whitelist)
Add the devices into current white list. If white list is full or there are duplicated entries,...
GAP_EXT_SCAN_TYPE_SEL_CONN_DISC
@ GAP_EXT_SCAN_TYPE_SEL_CONN_DISC
Definition: ble_gapm.h:346
BLE_GAP_ROLE_PERIPHERAL
@ BLE_GAP_ROLE_PERIPHERAL
Definition: ble_gapm.h:163
GAP_SCAN_GEN_DISC_MODE
@ GAP_SCAN_GEN_DISC_MODE
Definition: ble_gapm.h:322
GAP_DISC_MODE_GEN_DISCOVERABLE
@ GAP_DISC_MODE_GEN_DISCOVERABLE
Definition: ble_gapm.h:232
ble_gap_scan_param_set
uint16_t ble_gap_scan_param_set(gap_own_addr_t own_addr_type, gap_scan_param_t *p_scan_param)
Set parameters for scanning. Note that this function must be called prior to scanning started.
ble_gap_bond_devs_clear
uint16_t ble_gap_bond_devs_clear(void)
Clear all bonded devices.
GAP_EXT_DUP_FILT_DIS
@ GAP_EXT_DUP_FILT_DIS
Definition: ble_gapm.h:367
bond_dev_list_t::num
uint8_t num
Definition: ble_gapm.h:728
gap_ext_conn_param_t
Connection parameters.
Definition: ble_gapm.h:685
BLE_GAP_ADV_DATA_TYPE_SCAN_RSP
@ BLE_GAP_ADV_DATA_TYPE_SCAN_RSP
Definition: ble_gapm.h:195
ble_gap_data_length_set
uint16_t ble_gap_data_length_set(uint16_t sugg_max_tx_octet, uint16_t sugg_max_tx_time)
Set suggested default LE data length.
BLE_GAP_AD_TYPE_COMPLETE_LIST_128_BIT_UUID
@ BLE_GAP_AD_TYPE_COMPLETE_LIST_128_BIT_UUID
Definition: ble_gapm.h:436
gap_scan_type_t
gap_scan_type_t
Scanning types.
Definition: ble_gapm.h:312
BLE_GAP_AD_TYPE_COMPLETE_LIST_32_BIT_UUID
@ BLE_GAP_AD_TYPE_COMPLETE_LIST_32_BIT_UUID
Definition: ble_gapm.h:434
gap_chnl_map_t
Channel map structure.
Definition: ble_gapc.h:392
gap_init_type_t
gap_init_type_t
Initiating types.
Definition: ble_gapm.h:376
GAP_ADV_FLAG_LE_GENERAL_DISC_MODE
@ GAP_ADV_FLAG_LE_GENERAL_DISC_MODE
Definition: ble_gapm.h:471
gap_scan_dup_filt_policy_t
gap_scan_dup_filt_policy_t
Duplicate filter policy.
Definition: ble_gapm.h:331
gap_adv_param_t::adv_intv_max
uint16_t adv_intv_max
Definition: ble_gapm.h:524
ble_gap_default_tx_power_get
uint16_t ble_gap_default_tx_power_get(int8_t *txpwr_dbm)
Get the default tx power for all roles.
GAP_ADV_FLAG_LE_LIMITED_DISC_MODE
@ GAP_ADV_FLAG_LE_LIMITED_DISC_MODE
Definition: ble_gapm.h:470
reslv_rpa_addr_callback_t
void(* reslv_rpa_addr_callback_t)(uint8_t status, gap_bdaddr_t *iden_addr, uint8_t src_info)
The BLE reslove rpa address callback.
Definition: ble_gapm.h:773
GAP_INIT_TYPE_NAME_DISC
@ GAP_INIT_TYPE_NAME_DISC
Definition: ble_gapm.h:379
gap_init_param_t::conn_timeout
uint16_t conn_timeout
Definition: ble_gapm.h:675
BLE_GAP_GET_DEV_VERSION
@ BLE_GAP_GET_DEV_VERSION
Definition: ble_gapm.h:203
gap_ext_init_param_t::prop
uint8_t prop
Definition: ble_gapm.h:701
gap_ext_scan_param_t::scan_param_coded
gap_scan_wd_op_param_t scan_param_coded
Definition: ble_gapm.h:633
gap_disc_mode_t
gap_disc_mode_t
GAP discoverability modes.
Definition: ble_gapm.h:230
GAP_INIT_TYPE_AUTO_CONN_EST
@ GAP_INIT_TYPE_AUTO_CONN_EST
Definition: ble_gapm.h:378
GAP_SCAN_PASSIVE
@ GAP_SCAN_PASSIVE
Definition: ble_gapm.h:314
GAP_SEC_LVL_LE_ENC_AUTH
@ GAP_SEC_LVL_LE_ENC_AUTH
Definition: ble_gapm.h:421
ble_gap_bond_devs_get
uint16_t ble_gap_bond_devs_get(bond_dev_list_t *p_bond_list)
Get all bonded devices.
GAP_ADV_PROP_TX_PWR_POS
@ GAP_ADV_PROP_TX_PWR_POS
Definition: ble_gapm.h:285
gap_adv_period_cfg_t::adv_intv_max
uint16_t adv_intv_max
Definition: ble_gapm.h:560
gap_ext_conn_param_t::conn_latency
uint16_t conn_latency
Definition: ble_gapm.h:690
GAP_PER_SYNC_TYPE_GENERAL
@ GAP_PER_SYNC_TYPE_GENERAL
Definition: ble_gapm.h:410
gap_adv_param_t::max_tx_pwr
int8_t max_tx_pwr
Definition: ble_gapm.h:527
GAP_SEC_LVL_NO_SECURITY
@ GAP_SEC_LVL_NO_SECURITY
Definition: ble_gapm.h:419
gap_sec_lvl_type
gap_sec_lvl_type
Security level types.
Definition: ble_gapm.h:418
white_list_t
White list.
Definition: ble_gapm.h:736
ble_gap_ext_scan_param_set
uint16_t ble_gap_ext_scan_param_set(gap_own_addr_t own_addr_type, gap_ext_scan_param_t *p_scan_param)
Set extended parameters for scanning. Note that this function must be called prior to scanning starte...
BLE_GAP_WRITE_PERM_NOAUTH
@ BLE_GAP_WRITE_PERM_NOAUTH
Definition: ble_gapm.h:183
GAP_DISC_MODE_NON_DISCOVERABLE
@ GAP_DISC_MODE_NON_DISCOVERABLE
Definition: ble_gapm.h:231
gap_ext_conn_param_t::conn_intv_min
uint16_t conn_intv_min
Definition: ble_gapm.h:686
ble_gap_per_sync_start
uint16_t ble_gap_per_sync_start(uint8_t per_sync_idx)
Start to synchronize with periodic advertising from an advertiser and begin receiving periodic advert...
BLE_GAP_GET_DEV_RF_RF_PATH_COMP
@ BLE_GAP_GET_DEV_RF_RF_PATH_COMP
Definition: ble_gapm.h:215
gap_ext_adv_param_t::prop
uint16_t prop
Definition: ble_gapm.h:570
gap_adv_prim_cfg_t::adv_intv_min
uint32_t adv_intv_min
Definition: ble_gapm.h:536
gap_adv_type_t
gap_adv_type_t
Advertising type.
Definition: ble_gapm.h:263
gap_ext_scan_param_t::prop
uint8_t prop
Definition: ble_gapm.h:629
gap_bdaddr_t
The struct of broadcast address with broadcast type.
Definition: ble_gapc.h:212
BLE_GAP_AD_TYPE_MORE_32_BIT_UUID
@ BLE_GAP_AD_TYPE_MORE_32_BIT_UUID
Definition: ble_gapm.h:433
gap_activity_role_t
gap_activity_role_t
Possible roles of the activity.
Definition: ble_gapm.h:491
gap_scan_prop
gap_scan_prop
Scanning properties bit field bit value.
Definition: ble_gapm.h:396
period_adv_list_t
Periodic advertising list.
Definition: ble_gapm.h:745
gap_init_param_t::interval_min
uint16_t interval_min
Definition: ble_gapm.h:669
gap_per_sync_param_t::type
uint8_t type
Definition: ble_gapm.h:657
BLE_GAP_ADV_DATA_TYPE_DATA
@ BLE_GAP_ADV_DATA_TYPE_DATA
Definition: ble_gapm.h:194
ble_gap_tx_power_get
uint16_t ble_gap_tx_power_get(gap_activity_role_t role, uint8_t index, int8_t *txpwr_dbm)
Get the tx power.
ble_gap_reslv_rpa_addr
uint16_t ble_gap_reslv_rpa_addr(uint8_t *reslv_addr, uint8_t src_info, reslv_rpa_addr_callback_t cb)
Resolve the rpa address.
BLE_GAP_AD_TYPE_TRANSMIT_POWER
@ BLE_GAP_AD_TYPE_TRANSMIT_POWER
Definition: ble_gapm.h:439
gap_ext_adv_param_t::type
uint8_t type
Definition: ble_gapm.h:568
GAP_ADV_PROP_PER_TX_PWR_POS
@ GAP_ADV_PROP_PER_TX_PWR_POS
Definition: ble_gapm.h:287
GAP_SEC_LVL_ENC_NO_AUTH
@ GAP_SEC_LVL_ENC_NO_AUTH
Definition: ble_gapm.h:420
gap_scan_wd_op_param_t
Scan Window operation parameters.
Definition: ble_gapm.h:618
GAP_ACTIVITY_ROLE_ADV
@ GAP_ACTIVITY_ROLE_ADV
Definition: ble_gapm.h:492
gap_adv_prop_pos_t
gap_adv_prop_pos_t
Advertising properties bit field and bit positions.
Definition: ble_gapm.h:273
gap_lepsm_register_t::sec_lvl
uint8_t sec_lvl
Definition: ble_gapm.h:719
CO_BIT
#define CO_BIT(pos)
Definition: ble_gapm.h:72
BLE_GAP_AD_TYPE_APPEARANCE
@ BLE_GAP_AD_TYPE_APPEARANCE
Definition: ble_gapm.h:454
gap_dev_name_write_perm_t
gap_dev_name_write_perm_t
Write permissions of the device name characteristic.
Definition: ble_gapm.h:181
gap_adv_param_t
Advertising parameters for legacy advertising.
Definition: ble_gapm.h:518
ble_gap_per_sync_param_set
uint16_t ble_gap_per_sync_param_set(uint8_t per_sync_idx, gap_per_sync_param_t *p_per_sync_param)
Set the parameters used for periodic sync.
ble_gap_addr_set
uint16_t ble_gap_addr_set(gap_bdaddr_t const *p_addr)
Set the device identity address (public or random static).
GAP_SCAN_PROP_ACTIVE_1M_BIT
@ GAP_SCAN_PROP_ACTIVE_1M_BIT
Definition: ble_gapm.h:399
gap_adv_second_cfg_t::max_skip
uint8_t max_skip
Definition: ble_gapm.h:548
BLE_GAP_GET_DEV_BDADDR
@ BLE_GAP_GET_DEV_BDADDR
Definition: ble_gapm.h:204
ble_gap_per_sync_stop
uint16_t ble_gap_per_sync_stop(uint8_t per_sync_idx)
Stop periodic synchronization.
MAX_PRD_ADV_NUM
#define MAX_PRD_ADV_NUM
Definition: ble_gapm.h:78
ble_gap_path_compensation_set
uint16_t ble_gap_path_compensation_set(int16_t tx_path_comp, int16_t rx_path_comp)
Set the RF path gain or loss between the RF transceiver and the antenna contributed by intermediate c...
gap_adv_time_param_t::max_adv_evt
uint8_t max_adv_evt
Definition: ble_gapm.h:588
GAP_EXT_DUP_FILT_EN
@ GAP_EXT_DUP_FILT_EN
Definition: ble_gapm.h:368
BLE_GAP_OWN_ADDR_GEN_NON_RSLV
@ BLE_GAP_OWN_ADDR_GEN_NON_RSLV
Definition: ble_gapm.h:174
ble_gap_whitelist_get
uint16_t ble_gap_whitelist_get(white_list_t *p_whitelist)
Get the content of the whole white list.
gap_role_t
gap_role_t
GAP role options.
Definition: ble_gapm.h:158
ble_error.h
File that contains error codes.
ble_gapc.h
BLE GAPC API.
gap_scan_param_t::interval
uint16_t interval
Definition: ble_gapm.h:609
gap_ext_scan_param_t::period
uint16_t period
Definition: ble_gapm.h:636
gap_adv_second_cfg_t::phy
gap_le_phy_value_t phy
Definition: ble_gapm.h:550
BLE_GAP_WRITE_PERM_AUTH
@ BLE_GAP_WRITE_PERM_AUTH
Definition: ble_gapm.h:185
GAP_SCAN_FILT_DUPLIC_DIS
@ GAP_SCAN_FILT_DUPLIC_DIS
Definition: ble_gapm.h:332
BLE_GAP_WRITE_PERM_SEC_CON
@ BLE_GAP_WRITE_PERM_SEC_CON
Definition: ble_gapm.h:186
BLE_GAP_GET_NB_ADV_SETS
@ BLE_GAP_GET_NB_ADV_SETS
Definition: ble_gapm.h:212
gap_le_phy_value_t
gap_le_phy_value_t
Specify what PHY the Controller has changed for TX/RX. HCI:7.7.65.12.
Definition: ble_gapm.h:252
GAP_PHY_UNDEF_VALUE
@ GAP_PHY_UNDEF_VALUE
Definition: ble_gapm.h:253
BLE_GAP_AD_TYPE_SLAVE_CONN_INT_RANGE
@ BLE_GAP_AD_TYPE_SLAVE_CONN_INT_RANGE
Definition: ble_gapm.h:445
GAP_EXT_SCAN_PROP_PHY_CODED_BIT
@ GAP_EXT_SCAN_PROP_PHY_CODED_BIT
Definition: ble_gapm.h:355
gap_adv_data_type_t
gap_adv_data_type_t
Advertising data type.
Definition: ble_gapm.h:193
BLE_GAP_AD_TYPE_LE_BT_ADDR
@ BLE_GAP_AD_TYPE_LE_BT_ADDR
Definition: ble_gapm.h:456
ble_gap_rpa_addr_report_cb_register
void ble_gap_rpa_addr_report_cb_register(rpa_addr_report_callback_t cb)
Set the cb for rpa address report.
gap_ext_adv_param_t::second_cfg
gap_adv_second_cfg_t second_cfg
Definition: ble_gapm.h:575
GAP_ADV_TYPE_EXTENDED
@ GAP_ADV_TYPE_EXTENDED
Definition: ble_gapm.h:265
GAP_ADV_FLAG_SIMUL_BR_EDR_LE_CONTROLLER
@ GAP_ADV_FLAG_SIMUL_BR_EDR_LE_CONTROLLER
Definition: ble_gapm.h:473
gap_adv_prim_cfg_t::adv_intv_max
uint32_t adv_intv_max
Definition: ble_gapm.h:537
gap_adv_filter_policy_t
gap_adv_filter_policy_t
Advertising filter policy.
Definition: ble_gapm.h:241
gap_adv_param_t::adv_intv_min
uint16_t adv_intv_min
Definition: ble_gapm.h:523
gap_adv_time_param_t
Advertising timing parameter.
Definition: ble_gapm.h:583
gap_scan_param_t::window
uint16_t window
Definition: ble_gapm.h:610
ble_gap_scan_stop
uint16_t ble_gap_scan_stop(void)
Stop scanning.
BLE_GAP_AD_TYPE_SERVICE_128_BIT_DATA
@ BLE_GAP_AD_TYPE_SERVICE_128_BIT_DATA
Definition: ble_gapm.h:451
gap_init_param_t
Legacy initiating parameters.
Definition: ble_gapm.h:666
gap_per_sync_param_t::skip
uint16_t skip
Definition: ble_gapm.h:654
ble_gap_ppcp_present_set
void ble_gap_ppcp_present_set(bool present_flag)
Set GAP Peripheral Preferred Connection Parameters present flag.
GAP_EXT_SCAN_TYPE_CONN_DISC
@ GAP_EXT_SCAN_TYPE_CONN_DISC
Definition: ble_gapm.h:345
BLE_GAP_ROLE_OBSERVER
@ BLE_GAP_ROLE_OBSERVER
Definition: ble_gapm.h:160
GAP_EXT_SCAN_PROP_PHY_1M_BIT
@ GAP_EXT_SCAN_PROP_PHY_1M_BIT
Definition: ble_gapm.h:354
gap_init_prop_t
gap_init_prop_t
Initiating properties.
Definition: ble_gapm.h:386
BLE_GAP_ROLE_ALL
@ BLE_GAP_ROLE_ALL
Definition: ble_gapm.h:164
ral_dev_list_t::num
uint8_t num
Definition: ble_gapm.h:766
GAP_EXT_SCAN_PROP_ACTIVE_CODED_BIT
@ GAP_EXT_SCAN_PROP_ACTIVE_CODED_BIT
Definition: ble_gapm.h:357
GAP_SCAN_PROP_ACTIVE_CODED_BIT
@ GAP_SCAN_PROP_ACTIVE_CODED_BIT
Definition: ble_gapm.h:400
ble_actv_type_t
ble_actv_type_t
Activity type.
Definition: ble_gapm.h:502
GAP_SCAN_PROP_ACCEPT_RPA_BIT
@ GAP_SCAN_PROP_ACCEPT_RPA_BIT
Definition: ble_gapm.h:401
gap_adv_prim_cfg_t::chnl_map
uint8_t chnl_map
Definition: ble_gapm.h:538
gap_per_sync_param_t::adv_addr
gap_period_adv_addr_cfg_t adv_addr
Definition: ble_gapm.h:659
ble_gap_l2cap_params_set
uint16_t ble_gap_l2cap_params_set(uint16_t max_mtu, uint16_t max_mps, uint8_t max_nb_lecb)
Set L2CAP related parameters.
gap_per_sync_param_t::sync_to
uint16_t sync_to
Definition: ble_gapm.h:656
ble_gap_per_adv_list_get
uint16_t ble_gap_per_adv_list_get(period_adv_list_t *p_pal_list)
Get the content of the whole periodic advertising list.
BLE_GAP_AD_TYPE_TK_VALUE
@ BLE_GAP_AD_TYPE_TK_VALUE
Definition: ble_gapm.h:443
BLE_GAP_AD_TYPE_RAND_TGT_ADDR
@ BLE_GAP_AD_TYPE_RAND_TGT_ADDR
Definition: ble_gapm.h:453
GAP_ADV_PROP_DIRECTED_POS
@ GAP_ADV_PROP_DIRECTED_POS
Definition: ble_gapm.h:277
gap_adv_period_cfg_t
Configuration for periodic advertising.
Definition: ble_gapm.h:558
gap_ext_adv_param_t::filter_pol
uint8_t filter_pol
Definition: ble_gapm.h:572
GAP_SCAN_PROP_PHY_1M_BIT
@ GAP_SCAN_PROP_PHY_1M_BIT
Definition: ble_gapm.h:397
GAP_ADV_PROP_ANONYMOUS_POS
@ GAP_ADV_PROP_ANONYMOUS_POS
Definition: ble_gapm.h:283
GAP_ADV_TYPE_ADV_NONCONN_IND
@ GAP_ADV_TYPE_ADV_NONCONN_IND
Definition: ble_gapm.h:222
gap_ext_init_param_t::conn_to
uint16_t conn_to
Definition: ble_gapm.h:702
GAP_ADV_FLAG_SIMUL_BR_EDR_LE_HOST
@ GAP_ADV_FLAG_SIMUL_BR_EDR_LE_HOST
Definition: ble_gapm.h:474
white_list_t::num
uint8_t num
Definition: ble_gapm.h:737
ble_gap_ppcp_get
uint16_t ble_gap_ppcp_get(gap_conn_param_t *p_conn_params)
Get GAP Peripheral Preferred Connection Parameters.
GAP_ADV_TYPE_ADV_SCAN_IND
@ GAP_ADV_TYPE_ADV_SCAN_IND
Definition: ble_gapm.h:223
ble_gap_per_adv_list_del
uint16_t ble_gap_per_adv_list_del(const period_adv_list_t *p_pal_list)
Delete the devices out of periodic advertising list. If the entries do not exist in the current list,...
GAP_ADV_FLAG_BR_EDR_NOT_SUPPORTED
@ GAP_ADV_FLAG_BR_EDR_NOT_SUPPORTED
Definition: ble_gapm.h:472
GAP_ADV_TYPE_ADV_IND
@ GAP_ADV_TYPE_ADV_IND
Definition: ble_gapm.h:221
gap_ad_type_t
gap_ad_type_t
GAP advertising types.
Definition: ble_gapm.h:429
gap_ext_scan_param_t
Parameters for extended scanning.
Definition: ble_gapm.h:627
GAP_ADV_ALLOW_SCAN_WLST_CON_WLST
@ GAP_ADV_ALLOW_SCAN_WLST_CON_WLST
Definition: ble_gapm.h:245
ble_gap_adv_data_set
uint16_t ble_gap_adv_data_set(uint8_t adv_idx, gap_adv_data_type_t type, const uint8_t *p_data, uint16_t length)
Set Advertising Data, Scan Response Data and Periodic Advertising Data. See ENUM gap_ad_type_t for AD...
gap_adv_prim_cfg_t::phy
gap_le_phy_value_t phy
Definition: ble_gapm.h:539
BLE_GAP_ROLE_NONE
@ BLE_GAP_ROLE_NONE
Definition: ble_gapm.h:159
MAX_BOND_NUM
#define MAX_BOND_NUM
Definition: ble_gapm.h:75
gap_init_param_t::peer_addr
gap_bdaddr_t peer_addr
Definition: ble_gapm.h:668
MAX_WL_NUM
#define MAX_WL_NUM
Definition: ble_gapm.h:76
BLE_GAP_AD_TYPE_MANU_SPECIFIC_DATA
@ BLE_GAP_AD_TYPE_MANU_SPECIFIC_DATA
Definition: ble_gapm.h:462
gap_per_sync_param_t::rsvd
uint8_t rsvd
Definition: ble_gapm.h:658
GAP_PHY_2MBPS_VALUE
@ GAP_PHY_2MBPS_VALUE
Definition: ble_gapm.h:255
GAP_ADV_ALLOW_SCAN_ANY_CON_ANY
@ GAP_ADV_ALLOW_SCAN_ANY_CON_ANY
Definition: ble_gapm.h:242
ble_gap_per_adv_list_clear
uint16_t ble_gap_per_adv_list_clear(void)
Clear all the entries in the current periodic advertising list.
GAP_SCAN_PROP_FILT_TRUNC_BIT
@ GAP_SCAN_PROP_FILT_TRUNC_BIT
Definition: ble_gapm.h:402
gap_ext_conn_param_t::ce_len
uint16_t ce_len
Definition: ble_gapm.h:692
GAP_ADV_PROP_HDC_POS
@ GAP_ADV_PROP_HDC_POS
Definition: ble_gapm.h:280
ble_gap_adv_param_set
uint16_t ble_gap_adv_param_set(uint8_t adv_idx, gap_own_addr_t own_addr_type, gap_adv_param_t *p_adv_param)
Set parameters for advertising. Note that this function must be called prior to advertising started.
BLE_GAP_GET_MAX_LE_ADV_DATA_LEN
@ BLE_GAP_GET_MAX_LE_ADV_DATA_LEN
Definition: ble_gapm.h:213
GAP_SCAN_PROP_PHY_CODED_BIT
@ GAP_SCAN_PROP_PHY_CODED_BIT
Definition: ble_gapm.h:398
GAP_ACTIVITY_ROLE_UNKNOWN
@ GAP_ACTIVITY_ROLE_UNKNOWN
Definition: ble_gapm.h:495
ble_gap_adv_stop
uint16_t ble_gap_adv_stop(uint8_t adv_idx)
Stop advertising.
GAP_ADV_TYPE_ADV_LOW_DIRECT_IND
@ GAP_ADV_TYPE_ADV_LOW_DIRECT_IND
Definition: ble_gapm.h:225
BLE_GAP_OWN_ADDR_STATIC
@ BLE_GAP_OWN_ADDR_STATIC
Definition: ble_gapm.h:172
ble_gap_lepsm_unregister
uint16_t ble_gap_lepsm_unregister(uint16_t le_psm)
Unregister a LE Protocol/Service Multiplexer.
ble_gap_appearance_set
void ble_gap_appearance_set(uint16_t appearance)
Set GAP appearance value.
gap_ext_scan_dup_filt_policy_t
gap_ext_scan_dup_filt_policy_t
Filtering policy for duplicated packets.
Definition: ble_gapm.h:366
ble_gap_ext_adv_param_set
uint16_t ble_gap_ext_adv_param_set(uint8_t adv_idx, gap_own_addr_t own_addr_type, gap_ext_adv_param_t *p_adv_param)
Set extended parameters for advertising. Note that this function must be called prior to advertising.
GAP_ADV_PROP_CONNECTABLE_POS
@ GAP_ADV_PROP_CONNECTABLE_POS
Definition: ble_gapm.h:274
gap_adv_flags_t
gap_adv_flags_t
AD Type Flag - Bit mask.
Definition: ble_gapm.h:469
gap_scan_wd_op_param_t::scan_wd
uint16_t scan_wd
Definition: ble_gapm.h:620
BLE_GAP_ADV_DATA_TYPE_PER_DATA
@ BLE_GAP_ADV_DATA_TYPE_PER_DATA
Definition: ble_gapm.h:196
gap_rslv_addr_read_op_id_t
gap_rslv_addr_read_op_id_t
Operation code used to read resolvable address.
Definition: ble_gapc.h:157
gap_scan_param_t::use_whitelist
bool use_whitelist
Definition: ble_gapm.h:608
GAP_ADV_PROP_SCANNABLE_POS
@ GAP_ADV_PROP_SCANNABLE_POS
Definition: ble_gapm.h:276
ble_gap_update_conn_param_method_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_init_param_t::interval_max
uint16_t interval_max
Definition: ble_gapm.h:671
GAP_ADV_TYPE_LEGACY
@ GAP_ADV_TYPE_LEGACY
Definition: ble_gapm.h:264
gap_ext_init_param_t::conn_param_coded
gap_ext_conn_param_t conn_param_coded
Definition: ble_gapm.h:709
ble_gap_rpa_list_get
uint16_t ble_gap_rpa_list_get(ral_dev_list_t *p_rpa_list)
Get the RPA list info.
GAP_ADV_TYPE_PERIODIC
@ GAP_ADV_TYPE_PERIODIC
Definition: ble_gapm.h:266
gap_lepsm_register_t::le_psm
uint16_t le_psm
Definition: ble_gapm.h:718
ble_gap_adv_start
uint16_t ble_gap_adv_start(uint8_t adv_idx, gap_adv_time_param_t *p_timeout)
Start advertising.
BLE_GAP_WRITE_PERM_UNAUTH
@ BLE_GAP_WRITE_PERM_UNAUTH
Definition: ble_gapm.h:184
ble_gap_update_adv_data
uint16_t ble_gap_update_adv_data(uint8_t adv_idx, gap_adv_data_type_t type, const uint8_t *p_data, uint16_t length)
Update Advertising Data, Scan Response Data and Periodic Advertising Data. See ENUM gap_ad_type_t for...
gap_scan_param_t::timeout
uint16_t timeout
Definition: ble_gapm.h:611
BLE_GAP_AD_TYPE_RQRD_128_BIT_SVC_UUID
@ BLE_GAP_AD_TYPE_RQRD_128_BIT_SVC_UUID
Definition: ble_gapm.h:448
gap_ext_scan_type_t
gap_ext_scan_type_t
Extended scanning types.
Definition: ble_gapm.h:340
gap_adv_param_t::chnl_map
uint8_t chnl_map
Definition: ble_gapm.h:525
gap_lepsm_register_t::mks_flag
bool mks_flag
Definition: ble_gapm.h:720
gap_ral_dev_info_t::priv_mode
uint8_t priv_mode
Definition: ble_gapm.h:756
gap_period_adv_addr_cfg_t::bd_addr
gap_bdaddr_t bd_addr
Definition: ble_gapm.h:645
GAP_EXT_SCAN_PROP_ACCEPT_RPA_BIT
@ GAP_EXT_SCAN_PROP_ACCEPT_RPA_BIT
Definition: ble_gapm.h:358
bond_dev_list_t
Bonded device list.
Definition: ble_gapm.h:727
GAP_ADV_TYPE_ADV_HIGH_DIRECT_IND
@ GAP_ADV_TYPE_ADV_HIGH_DIRECT_IND
Definition: ble_gapm.h:224
gap_per_sync_param_t
Periodic advertising synchronization parameters.
Definition: ble_gapm.h:653
ble_gap_ext_connect
uint16_t ble_gap_ext_connect(gap_own_addr_t own_addr_type, gap_ext_init_param_t *p_init_param)
Start an extended connection to a device.
ble_gap_bond_dev_addr_get
uint16_t ble_gap_bond_dev_addr_get(uint8_t conn_idx, gap_bdaddr_t *p_peer_addr)
Get BD address of the bonded device.
ble_gap_appearance_get
uint16_t ble_gap_appearance_get(uint16_t *p_appearance)
Get GAP appearance value.
gap_ext_adv_param_t::prim_cfg
gap_adv_prim_cfg_t prim_cfg
Definition: ble_gapm.h:574
gap_ext_adv_param_t::period_cfg
gap_adv_period_cfg_t period_cfg
Definition: ble_gapm.h:576
gap_ral_dev_info_t
RPA list item info.
Definition: ble_gapm.h:754
gap_conn_param_t
The parameter of connection.
Definition: ble_gapc.h:354
ble_gap_ppcp_set
uint16_t ble_gap_ppcp_set(gap_conn_param_t const *p_conn_params)
Set GAP Peripheral Preferred Connection Parameters.
gap_ext_scan_param_t::scan_param_1m
gap_scan_wd_op_param_t scan_param_1m
Definition: ble_gapm.h:632
gap_scan_mode_t
gap_scan_mode_t
Scanning modes.
Definition: ble_gapm.h:321
BLE_GAP_AD_TYPE_MORE_16_BIT_UUID
@ BLE_GAP_AD_TYPE_MORE_16_BIT_UUID
Definition: ble_gapm.h:431
gap_ext_init_param_t::scan_param_1m
gap_scan_wd_op_param_t scan_param_1m
Definition: ble_gapm.h:705
ble_gap_device_name_get
uint16_t ble_gap_device_name_get(uint8_t *p_dev_name, uint16_t *p_length)
Get GAP device name.
BLE_GAP_AD_TYPE_3D_INFO
@ BLE_GAP_AD_TYPE_3D_INFO
Definition: ble_gapm.h:460
gap_adv_param_t::adv_mode
uint8_t adv_mode
Definition: ble_gapm.h:519
gap_scan_param_t::scan_type
gap_scan_type_t scan_type
Definition: ble_gapm.h:605
GAP_ADV_ALLOW_SCAN_WLST_CON_ANY
@ GAP_ADV_ALLOW_SCAN_WLST_CON_ANY
Definition: ble_gapm.h:243
ble_gap_tx_power_set
uint16_t ble_gap_tx_power_set(gap_activity_role_t role, uint8_t index, int8_t txpwr_dbm)
Set the tx power.
gap_ext_adv_param_t::max_tx_pwr
int8_t max_tx_pwr
Definition: ble_gapm.h:571
ble_gap_lepsm_register
uint16_t ble_gap_lepsm_register(gap_lepsm_register_t *p_lepsm)
Register a LE Protocol/Service Multiplexer.
gap_adv_prim_cfg_t
Configuration for advertising on primary channel.
Definition: ble_gapm.h:535
gap_ext_init_param_t::type
uint8_t type
Definition: ble_gapm.h:700
GAP_EXT_SCAN_TYPE_LIM_DISC
@ GAP_EXT_SCAN_TYPE_LIM_DISC
Definition: ble_gapm.h:342
gap_scan_param_t::scan_dup_filt
gap_scan_dup_filt_policy_t scan_dup_filt
Definition: ble_gapm.h:607
gap_ext_adv_param_t
Advertising parameters for extended advertising and periodic advertising.
Definition: ble_gapm.h:567
GAP_DISC_MODE_BROADCASTER
@ GAP_DISC_MODE_BROADCASTER
Definition: ble_gapm.h:234
BLE_GAP_AD_TYPE_SP_HASH_C
@ BLE_GAP_AD_TYPE_SP_HASH_C
Definition: ble_gapm.h:441
gap_ral_dev_info_t::bd_addr
gap_bdaddr_t bd_addr
Definition: ble_gapm.h:755
GAP_ACTIVITY_ROLE_SCAN_INIT
@ GAP_ACTIVITY_ROLE_SCAN_INIT
Definition: ble_gapm.h:494
BLE_GAP_AD_TYPE_PUB_TGT_ADDR
@ BLE_GAP_AD_TYPE_PUB_TGT_ADDR
Definition: ble_gapm.h:452
rpa_addr_report_callback_t
void(* rpa_addr_report_callback_t)(ble_actv_type_t type, uint8_t index, const uint8_t *rpa_addr)
The BLE rpa address report callback.
Definition: ble_gapm.h:778
GAP_ADV_ALLOW_SCAN_ANY_CON_WLST
@ GAP_ADV_ALLOW_SCAN_ANY_CON_WLST
Definition: ble_gapm.h:244
GAP_ADV_PROP_USE_LEGACY_PDUS_POS
@ GAP_ADV_PROP_USE_LEGACY_PDUS_POS
Definition: ble_gapm.h:282
ble_gap_privacy_params_set
uint16_t ble_gap_privacy_params_set(uint16_t renew_dur, bool enable_flag)
Set privacy related parameters.
ble_gap_bond_dev_del
uint16_t ble_gap_bond_dev_del(const gap_bdaddr_t *p_peer_addr)
Delete a bond device with the specified BD address.
gap_per_sync_type
gap_per_sync_type
Periodic synchronization types.
Definition: ble_gapm.h:409
gap_adv_period_cfg_t::adv_intv_min
uint16_t adv_intv_min
Definition: ble_gapm.h:559
BLE_GAP_AD_TYPE_RQRD_32_BIT_SVC_UUID
@ BLE_GAP_AD_TYPE_RQRD_32_BIT_SVC_UUID
Definition: ble_gapm.h:447
gap_dev_info_get_type_t
gap_dev_info_get_type_t
Get device parameters operation code.
Definition: ble_gapm.h:202
BLE_GAP_AD_TYPE_OOB_FLAGS
@ BLE_GAP_AD_TYPE_OOB_FLAGS
Definition: ble_gapm.h:444
gap_sec_key_t
Security key.
Definition: ble_gapm.h:596
GAP_PHY_1MBPS_VALUE
@ GAP_PHY_1MBPS_VALUE
Definition: ble_gapm.h:254
GAP_ACTIVITY_ROLE_CON
@ GAP_ACTIVITY_ROLE_CON
Definition: ble_gapm.h:493
MAX_KEY_LEN
#define MAX_KEY_LEN
Definition: ble_gapm.h:79
gap_adv_param_t::peer_addr
gap_bdaddr_t peer_addr
Definition: ble_gapm.h:522
ble_gap_whitelist_clear
uint16_t ble_gap_whitelist_clear(void)
Clear all the entries in the current white list.
BLE_GAP_AD_TYPE_CLASS_OF_DEVICE
@ BLE_GAP_AD_TYPE_CLASS_OF_DEVICE
Definition: ble_gapm.h:440
GAP_EXT_DUP_FILT_EN_PERIOD
@ GAP_EXT_DUP_FILT_EN_PERIOD
Definition: ble_gapm.h:369
gap_init_param_t::slave_latency
uint16_t slave_latency
Definition: ble_gapm.h:673
gap_scan_wd_op_param_t::scan_intv
uint16_t scan_intv
Definition: ble_gapm.h:619
gap_ext_init_param_t::conn_param_2m
gap_ext_conn_param_t conn_param_2m
Definition: ble_gapm.h:708
GAP_EXT_SCAN_TYPE_GEN_DISC
@ GAP_EXT_SCAN_TYPE_GEN_DISC
Definition: ble_gapm.h:341
ble_gap_device_name_set
uint16_t ble_gap_device_name_set(gap_dev_name_write_perm_t write_perm, uint8_t const *p_dev_name, uint16_t length)
Set GAP device name.
GAP_EXT_SCAN_PROP_FILT_TRUNC_BIT
@ GAP_EXT_SCAN_PROP_FILT_TRUNC_BIT
Definition: ble_gapm.h:359
ble_gap_per_adv_list_add
uint16_t ble_gap_per_adv_list_add(const period_adv_list_t *p_pal_list)
Add the devices into current periodic advertising list. If periodic advertising list is full or there...
ble_gap_whitelist_del
uint16_t ble_gap_whitelist_del(const white_list_t *p_whitelist)
Delete the devices out of current white list. If the entries do not exist in the current white list,...
BLE_GAP_ROLE_BROADCASTER
@ BLE_GAP_ROLE_BROADCASTER
Definition: ble_gapm.h:161
gap_ext_scan_param_t::type
uint8_t type
Definition: ble_gapm.h:628
BLE_GAP_AD_TYPE_RQRD_16_BIT_SVC_UUID
@ BLE_GAP_AD_TYPE_RQRD_16_BIT_SVC_UUID
Definition: ble_gapm.h:446
GAP_EXT_SCAN_TYPE_OBSERVER
@ GAP_EXT_SCAN_TYPE_OBSERVER
Definition: ble_gapm.h:343
BLE_GAP_GET_DEV_TX_POWER
@ BLE_GAP_GET_DEV_TX_POWER
Definition: ble_gapm.h:214
ral_dev_list_t
RPA list info.
Definition: ble_gapm.h:765
gap_adv_param_t::filter_pol
uint8_t filter_pol
Definition: ble_gapm.h:521
gap_lepsm_register_t
LE Protocol/Service Multiplexer information.
Definition: ble_gapm.h:717
BLE_GAP_AD_TYPE_SPAIR_HASH
@ BLE_GAP_AD_TYPE_SPAIR_HASH
Definition: ble_gapm.h:458
gap_ext_init_param_t
Extended initiating parameters.
Definition: ble_gapm.h:699
ble_gap_default_tx_power_set
uint16_t ble_gap_default_tx_power_set(int8_t txpwr_dbm)
Set the default tx power for all roles.
GAP_PER_SYNC_TYPE_SELECTIVE
@ GAP_PER_SYNC_TYPE_SELECTIVE
Definition: ble_gapm.h:411
privacy_mode_t
privacy_mode_t
Privacy mode.
Definition: ble_gapm.h:482
gap_scan_prop_t
gap_scan_prop_t
Scanning properties bit field bit value.
Definition: ble_gapm.h:353