22#include <hardware/bluetooth.h>
23#include <hardware/bt_hf.h>
26#include "data_types.h"
33#define CASE_RETURN_STR(const) case const: return #const;
40typedef char bdstr_t[18];
47const char* dump_bt_status(bt_status_t status);
48const char* dump_dm_search_event(UINT16 event);
49const char* dump_dm_event(UINT16 event);
50const char* dump_hf_event(UINT16 event);
51const char* dump_hh_event(UINT16 event);
52const char* dump_hf_conn_state(UINT16 event);
53const char* dump_hf_call_state(bthf_call_state_t call_state);
54const char* dump_property_type(bt_property_type_t type);
55const char* dump_hf_audio_state(UINT16 event);
56const char* dump_adapter_scan_mode(bt_scan_mode_t mode);
57const char* dump_thread_evt(bt_cb_thread_evt evt);
59const char* dump_av_conn_state(UINT16 event);
60const char* dump_av_audio_state(UINT16 event);
62int str2bd(
char *str, bt_bdaddr_t *addr);
63char *bd2str(bt_bdaddr_t *addr, bdstr_t *bdstr);
65UINT32 devclass2uint(DEV_CLASS dev_class);
66void uint2devclass(UINT32 dev, DEV_CLASS dev_class);
67void uuid16_to_uuid128(uint16_t uuid16, bt_uuid_t* uuid128);
69void uuid_to_string(bt_uuid_t *p_uuid,
char *str);
70void string_to_uuid(
char *str, bt_uuid_t *p_uuid);
71int ascii_2_hex (
char *p_ascii,
int len, UINT8 *p_hex);