35 #ifndef __BT_DEVICE_MANAGER_H__ 36 #define __BT_DEVICE_MANAGER_H__ 90 #define BT_DEVICE_MANAGER_MAX_PAIRED_NUM 5 92 #define BT_DEVICE_MANAGER_PAIRED_ADD 0x00 93 #define BT_DEVICE_MANAGER_PAIRED_UNPAIR 0x01 94 #define BT_DEVICE_MANAGER_PAIRED_KEY_MISS 0x02 95 #define BT_DEVICE_MANAGER_PAIRED_LIST_FULL 0x03 96 #define BT_DEVICE_MANAGER_PAIRED_UNPAIR_ALL 0x04 97 typedef uint8_t bt_device_manager_paired_event_t; void bt_device_manager_init(void)
This function initializes the Bluetooth device manager.
uint8_t const * bt_bd_addr_ptr_t
A pointer to the bt_bd_addr_t.
Definition: bt_type.h:181
bt_status_t bt_device_manager_delete_paired_device(bt_bd_addr_ptr_t address)
This function unpairs an already paired device.
#define BT_GAP_MAX_DEVICE_NAME_LENGTH
The maximum length of the device name, including null-ending char.
Definition: bt_gap.h:332
bt_status_t bt_device_manager_unpair_all(void)
This function unpairs all paired devices.
bool bt_device_manager_is_paired(bt_bd_addr_ptr_t address)
This function gets the status of a device.
uint8_t bt_bd_addr_t[6]
Address type, defined in Bluetooth core specification version 4.2.
Definition: bt_type.h:180
bt_bd_addr_t address
Address of the paired device.
Definition: bt_device_manager.h:113
int32_t bt_status_t
Define the status type, returned from the APIs, and defined as BT_STATUS_XXX.
Definition: bt_type.h:173
uint32_t bt_device_manager_get_paired_number(void)
This function gets the number of the paired devices.
This structure defines the information about the paired device.
Definition: bt_device_manager.h:112
void bt_device_manager_get_paired_list(bt_device_manager_paired_infomation_t *info, uint32_t *read_number)
This function gets the paired device list.