/AliOS-Things-master/components/ble_host/bt_host/include/bluetooth/ |
A D | addr.h | 41 } bt_addr_le_t; typedef 46 #define BT_ADDR_LE_ANY ((bt_addr_le_t[]) { { 0, { { 0, 0, 0, 0, 0, 0 } } } }) 47 #define BT_ADDR_LE_NONE ((bt_addr_le_t[]) { { 0, \ 55 static inline int bt_addr_le_cmp(const bt_addr_le_t *a, const bt_addr_le_t *b) in bt_addr_le_cmp() 65 static inline void bt_addr_le_copy(bt_addr_le_t *dst, const bt_addr_le_t *src) in bt_addr_le_copy() 78 int bt_addr_le_create_nrpa(bt_addr_le_t *addr); 79 int bt_addr_le_create_static(bt_addr_le_t *addr); 81 static inline bool bt_addr_le_is_rpa(const bt_addr_le_t *addr) in bt_addr_le_is_rpa() 90 static inline bool bt_addr_le_is_identity(const bt_addr_le_t *addr) in bt_addr_le_is_identity()
|
A D | bluetooth.h | 66 bt_addr_le_t *addr; 157 int bt_set_id_addr(const bt_addr_le_t *addr); 174 void bt_id_get(bt_addr_le_t *addrs, size_t *count); 213 int bt_id_create(bt_addr_le_t *addr, u8_t *irk); 500 const bt_addr_le_t *peer; 858 const bt_addr_le_t *addr; 1002 int bt_le_whitelist_add(const bt_addr_le_t *addr); 1017 int bt_le_whitelist_rem(const bt_addr_le_t *addr); 1074 bt_addr_le_t addr; 1351 int bt_unpair(u8_t id, const bt_addr_le_t *addr); [all …]
|
A D | conn.h | 249 const bt_addr_le_t *bt_conn_get_dst(const struct bt_conn *conn); 278 const bt_addr_le_t *src; 282 const bt_addr_le_t *dst; 284 const bt_addr_le_t *local; 286 const bt_addr_le_t *remote; 554 int bt_conn_le_create(const bt_addr_le_t *peer, 560 struct bt_conn *bt_conn_create_le(const bt_addr_le_t *peer, in bt_conn_create_le() 626 int bt_le_set_auto_conn(const bt_addr_le_t *addr, 652 struct bt_conn *bt_conn_create_slave_le(const bt_addr_le_t *peer, in bt_conn_create_slave_le() 868 const bt_addr_le_t *rpa, [all …]
|
A D | hci.h | 735 bt_addr_le_t addr; 740 bt_addr_le_t addr; 1198 bt_addr_le_t addr; 1213 bt_addr_le_t addr; 1219 bt_addr_le_t addr; 1256 bt_addr_le_t id_addr; 1510 bt_addr_le_t addr; 1589 bt_addr_le_t addr; 1590 bt_addr_le_t dir_addr; 1621 bt_addr_le_t addr; [all …]
|
A D | hci_vs.h | 229 bt_addr_le_t addr; 363 bt_addr_le_t addr;
|
/AliOS-Things-master/hardware/chip/rtl872xd/hal/ |
A D | ble_port.c | 22 bt_addr_le_t local_mac; 24 bt_addr_le_t remote_dev[MAX_REMOTE_DEV_SIZE]; 33 static ssize_t storage_read(const bt_addr_le_t *addr, u16_t key, void *data, in storage_read() 56 memcpy(mac ,((bt_addr_le_t *)data)->a.val, 6); in storage_read() 59 return sizeof(bt_addr_le_t); in storage_read() 74 static ssize_t storage_write(const bt_addr_le_t *addr, u16_t key, in storage_write() 91 return sizeof(bt_addr_le_t); in storage_write() 110 return sizeof(bt_addr_le_t); in storage_write() 115 static int storage_clear(const bt_addr_le_t *addr) in storage_clear()
|
/AliOS-Things-master/components/ble_host/bt_host/host/ |
A D | keys.h | 53 bt_addr_le_t addr; 79 struct bt_keys *bt_keys_get_addr(u8_t id, const bt_addr_le_t *addr); 80 struct bt_keys *bt_keys_get_type(int type, u8_t id, const bt_addr_le_t *addr); 81 struct bt_keys *bt_keys_find(int type, u8_t id, const bt_addr_le_t *addr); 82 struct bt_keys *bt_keys_find_irk(u8_t id, const bt_addr_le_t *addr); 83 struct bt_keys *bt_keys_find_addr(u8_t id, const bt_addr_le_t *addr); 117 void bt_keys_update_usage(u8_t id, const bt_addr_le_t *addr);
|
A D | hci_core.h | 115 bt_addr_le_t random_addr; 118 bt_addr_le_t target_addr; 173 bt_addr_le_t id_addr[CONFIG_BT_ID_MAX]; 186 bt_addr_le_t random_addr; 267 bool bt_addr_le_is_bonded(u8_t id, const bt_addr_le_t *addr); 268 const bt_addr_le_t *bt_lookup_id_addr(u8_t id, const bt_addr_le_t *addr); 285 const bt_addr_le_t *peer);
|
A D | conn_internal.h | 46 bt_addr_le_t dst; 48 bt_addr_le_t init_addr; 49 bt_addr_le_t resp_addr; 184 bool bt_conn_exists_le(u8_t id, const bt_addr_le_t *peer); 187 struct bt_conn *bt_conn_add_le(u8_t id, const bt_addr_le_t *peer); 217 const bt_addr_le_t *peer); 229 struct bt_conn *bt_conn_lookup_state_le(u8_t id, const bt_addr_le_t *peer,
|
A D | settings.h | 15 const bt_addr_le_t *addr, const char *key); 16 int bt_settings_decode_key(const char *key, bt_addr_le_t *addr);
|
A D | keys.c | 43 struct bt_keys *bt_keys_get_addr(u8_t id, const bt_addr_le_t *addr) in bt_keys_get_addr() 67 bt_addr_le_t oldest_addr; in bt_keys_get_addr() 133 struct bt_keys *bt_keys_find(int type, u8_t id, const bt_addr_le_t *addr) in bt_keys_find() 149 struct bt_keys *bt_keys_get_type(int type, u8_t id, const bt_addr_le_t *addr) in bt_keys_get_type() 170 struct bt_keys *bt_keys_find_irk(u8_t id, const bt_addr_le_t *addr) in bt_keys_find_irk() 219 struct bt_keys *bt_keys_find_addr(u8_t id, const bt_addr_le_t *addr) in bt_keys_find_addr() 303 bt_addr_le_t addr; in keys_set() 423 void bt_keys_update_usage(u8_t id, const bt_addr_le_t *addr) in bt_keys_update_usage()
|
A D | gatt_internal.h | 32 int bt_gatt_store_ccc(u8_t id, const bt_addr_le_t *addr); 34 int bt_gatt_clear(u8_t id, const bt_addr_le_t *addr);
|
A D | settings.c | 24 const bt_addr_le_t *addr, const char *key) in bt_settings_encode_key() 44 const bt_addr_le_t *addr, const char *key) in bt_settings_encode_key() 93 int bt_settings_decode_key(const char *key, bt_addr_le_t *addr) in bt_settings_decode_key()
|
A D | hci_core.c | 404 const bt_addr_le_t *bt_lookup_id_addr(u8_t id, const bt_addr_le_t *addr) in bt_lookup_id_addr() 1692 bt_addr_le_t peer_addr; in bt_le_create_conn_ext() 1829 bt_addr_le_t peer_addr; in bt_le_create_conn_legacy() 5304 bt_addr_le_t id_addr; in le_adv_recv() 5599 bt_addr_le_t id_addr; in le_scan_req_received() 6958 bt_addr_le_t addr; in hci_vs_init() 7602 bt_addr_le_t non_const_addr; in bt_set_id_addr() 7645 bt_addr_le_t new_addr; in id_create() 7845 bt_addr_le_t addr; in bt_setup_public_id_addr() 7934 bt_addr_le_t addr; in bt_setup_random_id_addr() [all …]
|
A D | smp.h | 102 bt_addr_le_t addr;
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/inc/ |
A D | provisioner_prov.h | 91 bt_addr_le_t addr; /* device address */ 123 …void (*identity_resolved)(struct bt_conn *conn, const bt_addr_le_t *rpa, const bt_addr_le_t *ident… 264 void provisioner_srv_data_recv(struct net_buf_simple *buf, const bt_addr_le_t *addr, u16_t uuid); 412 int provisioner_prov_restore_nodes_info(bt_addr_le_t *addr, u8_t uuid[16], u16_t oob_info, u8_t ele…
|
A D | provisioner_proxy.h | 48 void provisioner_proxy_srv_data_recv(struct net_buf_simple *buf, const bt_addr_le_t *addr);
|
A D | adv.h | 48 typedef void (*vendor_beacon_cb)(const bt_addr_le_t *addr, s8_t rssi, u8_t adv_type, void *user_dat…
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/inc/port/ |
A D | mesh_hal_ble.h | 28 typedef void bt_mesh_le_scan_cb_t(const bt_addr_le_t *addr, int8_t rssi, 228 bool bt_prov_check_gattc_id(int id, const bt_addr_le_t *addr);
|
/AliOS-Things-master/components/ble_host/bt_host/aos/ |
A D | ble.c | 215 static void scan_cb(const bt_addr_le_t *addr, s8_t rssi, u8_t adv_type, struct net_buf_simple *buf) in scan_cb() 345 bt_addr_le_t addr = *(bt_addr_le_t *)ble_dev.init.dev_addr; in ble_stack_init() 355 extern int bt_set_bdaddr(const bt_addr_le_t *addr); in ble_stack_init() 535 if (!bt_addr_le_cmp((const bt_addr_le_t *)¶m->direct_peer_addr, BT_ADDR_LE_ANY)) { in ble_stack_adv_start() 545 bt_addr_le_t peer_addr = {0}; in ble_stack_adv_start() 1284 bt_addr_le_t peer; in ble_stack_connect() 1300 peer = *(bt_addr_le_t *)peer_addr; in ble_stack_connect() 1570 bt_addr_le_t peer; in ble_stack_dev_unpair() 1576 peer = *(bt_addr_le_t *)peer_addr; in ble_stack_dev_unpair() 1588 return bt_le_whitelist_add((bt_addr_le_t *)peer_addr); in ble_stack_white_list_add() [all …]
|
/AliOS-Things-master/components/ble_host/bt_shell/bt_host/ |
A D | bt.c | 182 static char *addr_le_str(const bt_addr_le_t *addr) in addr_le_str() 320 … printf("Connected (%d): %s\n", e->conn_handle, addr_le_str((bt_addr_le_t *)&info.peer_addr)); in conn_change() 332 …printf("Disconected (%d): %s err %d\n", e->conn_handle, addr_le_str((bt_addr_le_t *)&info.peer_add… in conn_change() 544 bt_addr_le_copy((bt_addr_le_t *)&addr, BT_ADDR_LE_ANY); in cmd_id_create() 547 err = bt_id_create((bt_addr_le_t *)&addr, NULL); in cmd_id_create() 554 printf("New identity (%d) created: %s\n", err, addr_le_str((bt_addr_le_t *)&addr)); in cmd_id_create() 561 bt_addr_le_t addr; in cmd_id_reset() 621 bt_addr_le_t addrs[CONFIG_BT_ID_MAX]; in cmd_id_show() 636 bt_addr_le_t addrs[CONFIG_BT_ID_MAX]; in cmd_id_select() 1101 bt_addr_le_t addr; in cmd_select()
|
/AliOS-Things-master/components/ble_host/bt_host/include/common/ |
A D | log.h | 83 const char *bt_addr_le_str_real(const bt_addr_le_t *addr);
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/src/ |
A D | provisioner_prov.c | 171 bt_addr_le_t addr; /* Device address */ 302 bt_addr_le_t addr; 593 bt_addr_le_t add_addr = {0}; in bt_mesh_provisioner_add_unprov_dev() 778 bt_addr_le_t addr; in bt_mesh_provisioner_add_unprov_dev() 780 memcpy(&addr, &link[i].addr, sizeof(bt_addr_le_t)); in bt_mesh_provisioner_add_unprov_dev() 897 bt_addr_le_t del_addr = {0}; in bt_mesh_provisioner_delete_device() 989 bt_addr_le_t del_addr = {0}; in bt_mesh_provisioner_delete_unprov_device() 1254 bt_addr_le_t dev_addr = {0}; in reset_link() 3231 bt_addr_le_t dev_addr = {0}; in provisioner_pb_gatt_open() 3315 bt_addr_le_t dev_addr; in provisioner_pb_gatt_close() [all …]
|
/AliOS-Things-master/components/ble_host/bt_host/common/ |
A D | log.c | 51 const char *bt_addr_le_str_real(const bt_addr_le_t *addr) in bt_addr_le_str_real()
|
/AliOS-Things-master/components/ble_host/bt_shell/bt_host/test/ |
A D | bt.c | 172 static char *addr_le_str(const bt_addr_le_t *addr) in addr_le_str() 347 … printf("Connected (%d): %s\n", e->conn_handle, addr_le_str((bt_addr_le_t *)&info.peer_addr)); in conn_change() 359 …printf("Disconected (%d): %s err %d\n", e->conn_handle, addr_le_str((bt_addr_le_t *)&info.peer_add… in conn_change() 725 bt_addr_le_copy((bt_addr_le_t *)&addr, BT_ADDR_LE_ANY); in cmd_id_create() 728 err = bt_id_create((bt_addr_le_t *)&addr, NULL); in cmd_id_create() 735 printf("New identity (%d) created: %s\n", err, addr_le_str((bt_addr_le_t *)&addr)); in cmd_id_create() 742 bt_addr_le_t addr; in cmd_id_reset() 802 bt_addr_le_t addrs[CONFIG_BT_ID_MAX]; in cmd_id_show() 817 bt_addr_le_t addrs[CONFIG_BT_ID_MAX]; in cmd_id_select() 1934 bt_addr_le_t addr; in cmd_select() [all …]
|