Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
127 | ligi | 1 | |
2 | #if !defined(BLUETOOTH_HANDLER_H) |
||
3 | #define BLUETOOTH_HANDLER_H |
||
4 | |||
130 | ligi | 5 | |
127 | ligi | 6 | #include <bluetooth/bluetooth.h> |
130 | ligi | 7 | #include <bluetooth/rfcomm.h> |
127 | ligi | 8 | #include <bluetooth/hci.h> |
9 | #include <bluetooth/hci_lib.h> |
||
10 | |||
11 | #include <unistd.h>//for close() for socket |
||
12 | |||
13 | #include <stdlib.h> |
||
14 | |||
130 | ligi | 15 | |
16 | #include <stdio.h> |
||
17 | #include <stdlib.h> |
||
18 | #include <fcntl.h> |
||
19 | |||
20 | |||
21 | |||
22 | #include <errno.h> |
||
23 | #include <sys/types.h> |
||
24 | #include <netinet/in.h> |
||
25 | #include <unistd.h>//for close() for socket |
||
26 | |||
27 | #include <string.h> |
||
28 | |||
127 | ligi | 29 | #define MAX_BT_DEVICES 3 |
30 | |||
31 | extern int bt_device_count; |
||
32 | |||
33 | extern char names[MAX_BT_DEVICES][248]; |
||
34 | extern char addrs[MAX_BT_DEVICES][19]; |
||
35 | |||
36 | int scan_bt(); |
||
130 | ligi | 37 | int bt_host_tick(int mk_fd); |
38 | int bt_host_init(); |
||
39 | int bt_host_send(char RxBuffer[150],int len); |
||
127 | ligi | 40 | |
41 | #endif |