Subversion Repositories Projects

Rev

Rev 130 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 130 Rev 140
Line 3... Line 3...
3
#include <stdio.h>
3
#include <stdio.h>
4
#include <sys/socket.h>
4
#include <sys/socket.h>
5
#include <sys/types.h>
5
#include <sys/types.h>
6
#include <netinet/in.h>
6
#include <netinet/in.h>
7
#include <unistd.h>
7
#include <unistd.h>
-
 
8
#include <inttypes.h>
8
#include "bluetooth_handler.h"
9
#include "bluetooth_handler.h"
9
#include "statistics.h"
10
#include "statistics.h"
10
 
11
 
11
struct ExternControl_s
12
struct ExternControl_s
12
{
13
{
Line 20... Line 21...
20
  unsigned char free;         // (unbenutzt)
21
  unsigned char free;         // (unbenutzt)
21
  unsigned char Frame;        // (Best├Ątigung)
22
  unsigned char Frame;        // (Best├Ątigung)
22
  unsigned char Config;
23
  unsigned char Config;
23
};
24
};
24
 
25
 
-
 
26
struct str_DebugOut
-
 
27
{
-
 
28
 unsigned char Digital[2];
-
 
29
  //# signed int
-
 
30
 
-
 
31
uint16_t Analog[32];    // Debugwert//
-
 
32
};
-
 
33
 
-
 
34
struct str_DebugOut    DebugOut;
-
 
35
 
-
 
36
 
25
struct ExternControl_s  ExternControl;
37
struct ExternControl_s  ExternControl;
26
 
38
 
27
extern int mk_socket;
39
extern int mk_socket;
28
 
40
 
29
//int connect_mk_bluetooth(char dest[18]);
41
//int connect_mk_bluetooth(char dest[18]);
Line 31... Line 43...
31
int connect_mk_bluetooth(char dest[18]);
43
int connect_mk_bluetooth(char dest[18]);
32
 
44
 
33
void SendOutData(unsigned char cmd,unsigned char modul, unsigned char *snd, unsigned char len);
45
void SendOutData(unsigned char cmd,unsigned char modul, unsigned char *snd, unsigned char len);
34
int read_from_mk();
46
int read_from_mk();
35
 
47
 
36
extern char RxBuffer[150];
48
extern unsigned char RxBuffer[150];
37
extern char PrintableRxBuffer[150];
49
extern char PrintableRxBuffer[150];
38
extern int rx_last_length;
50
extern int rx_last_length;