hc
2024-08-12 233ab1bd4c5697f5cdec94e60206e8c6ac609b4c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef __BLUETOOTH_PAN_H__
#define __BLUETOOTH_PAN_H__
 
#include <RkBtBase.h>
 
#ifdef __cplusplus
extern "C" {
#endif
 
typedef enum {
   RK_BT_PAN_CONNECT_FAILED,
   RK_BT_PAN_CONNECT,
   RK_BT_PAN_DISCONNECT
} RK_BT_PAN_EVENT;
 
typedef void (*RK_BT_PAN_EVENT_CALLBACK)(RK_BT_PAN_EVENT event, char *bd_addr);
 
void rk_bt_pan_register_event_cb(RK_BT_PAN_EVENT_CALLBACK cb);
int rk_bt_pan_open();
int rk_bt_pan_close();
int rk_bt_pan_connect(char *address);
int rk_bt_pan_disconnect(char *address);
 
#ifdef __cplusplus
}
#endif
 
#endif