Subversion Repositories Projects

Rev

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
 
522 ligi 6
#define RIDDIM_ADDRESS 12+'a'
127 ligi 7
#include <bluetooth/bluetooth.h>
130 ligi 8
#include <bluetooth/rfcomm.h>
127 ligi 9
#include <bluetooth/hci.h>
10
#include <bluetooth/hci_lib.h>
11
 
12
#include <unistd.h>//for close() for socket
13
#include <stdlib.h>
14
 
130 ligi 15
 
16
#include <stdio.h>
17
#include <stdlib.h>
18
#include <fcntl.h>
19
 
20
 
21
 
522 ligi 22
 
130 ligi 23
#include <errno.h>
24
#include <sys/types.h>
25
#include <netinet/in.h>
483 ligi 26
#include <sys/time.h>
27
 
130 ligi 28
#include <unistd.h>//for close() for socket
29
 
30
#include <string.h>
522 ligi 31
#include "riddim_meta.h"
32
#include "statistics.h" 
33
#include "config.h" 
34
#include "riddim.h"
35
#include "fc.h"
130 ligi 36
 
127 ligi 37
#define MAX_BT_DEVICES 3
38
 
39
extern int bt_device_count;
40
 
41
extern char names[MAX_BT_DEVICES][248];
42
extern char addrs[MAX_BT_DEVICES][19];
43
 
44
int scan_bt();
130 ligi 45
int bt_host_tick(int mk_fd);
46
int bt_host_init();
47
int bt_host_send(char RxBuffer[150],int len);
127 ligi 48
 
522 ligi 49
 
50
#define MAX_BUFF_LEN 150
51
 
52
 
53
extern struct str_DebugOut    DebugOut;
54
extern struct str_VersionInfo VersionInfo;
55
 
56
 
127 ligi 57
#endif