1 /*
2  * Copyright (C) 2015-2020 Alibaba Group Holding Limited
3  */
4 /***
5  * besbt.h
6  */
7 
8 #ifndef BESBT_H
9 #define BESBT_H
10 
11 enum BESBT_HOOK_USER_T {
12     BESBT_HOOK_USER_0 = 0,
13     BESBT_HOOK_USER_1,
14     BESBT_HOOK_USER_2,
15     BESBT_HOOK_USER_3,
16     BESBT_HOOK_USER_QTY
17 };
18 
19 typedef void (*BESBT_HOOK_HANDLER)(void);
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 void BesbtInit(void);
26 void BesbtThread(void const *argument);
27 int Besbt_hook_handler_set(enum BESBT_HOOK_USER_T user, BESBT_HOOK_HANDLER handler);
28 unsigned char *bt_get_local_address(void);
29 void bt_set_local_address(unsigned char* btaddr);
30 #ifdef BES_BLE_MESH_ENABLE
31 void ble_set_local_address(unsigned char* btaddr);
32 #endif
33 unsigned char *bt_get_ble_local_address(void);
34 const char *bt_get_local_name(void);
35 void bt_set_local_name(const char* name);
36 const char *bt_get_ble_local_name(void);
37 void gen_bt_addr_for_debug(void);
38 void bt_set_ble_local_address(uint8_t* bleAddr);
39 
40 #ifdef __cplusplus
41 }
42 #endif
43 #endif /* BESBT_H */
44