Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
127 ligi 1
 
130 ligi 2
 
127 ligi 3
#include <stdio.h>
483 ligi 4
#include <termios.h>
127 ligi 5
#include <sys/socket.h>
6
#include <sys/types.h>
7
#include <netinet/in.h>
8
#include <unistd.h>
140 ligi 9
#include <inttypes.h>
130 ligi 10
#include "bluetooth_handler.h"
11
#include "statistics.h"
127 ligi 12
 
13
struct ExternControl_s
14
{
15
  unsigned char Digital[2];   // (noch unbenutzt)
16
  unsigned char RemoteTasten; //(gab es schon für das virtuelle Display)
17
  signed char   Nick;
18
  signed char   Roll;
19
  signed char   Gier;
20
  unsigned char Gas;          //(es wird das Stick-Gas auf diesen Wert begrenzt; --> StickGas ist das Maximum)
21
  signed char   Higt;        //(Hoehenregler)
22
  unsigned char free;         // (unbenutzt)
23
  unsigned char Frame;        // (Bestätigung)
24
  unsigned char Config;
25
};
26
 
505 ligi 27
struct ExternEvent_s
28
{
29
  unsigned char key;
30
  unsigned char value[4];
31
 
32
};
33
 
140 ligi 34
struct str_DebugOut
35
{
36
 unsigned char Digital[2];
37
  //# signed int
38
 
39
uint16_t Analog[32];    // Debugwert//
40
};
41
 
42
struct str_DebugOut    DebugOut;
43
 
44
 
127 ligi 45
struct ExternControl_s  ExternControl;
505 ligi 46
struct ExternEvent_s  ExternEvent;
127 ligi 47
 
48
extern int mk_socket;
49
 
50
//int connect_mk_bluetooth(char dest[18]);
51
int connect_mk_localhost_socket(int port);
130 ligi 52
int connect_mk_bluetooth(char dest[18]);
483 ligi 53
int connect_mk_tty(char* tty_filename);
127 ligi 54
 
55
void SendOutData(unsigned char cmd,unsigned char modul, unsigned char *snd, unsigned char len);
130 ligi 56
int read_from_mk();
127 ligi 57
 
483 ligi 58
 
59
#define MAX_BUFF_LEN 150
60
 
61
extern unsigned char RxBuffer[MAX_BUFF_LEN ];
62
extern char PrintableRxBuffer[MAX_BUFF_LEN ];
130 ligi 63
extern int rx_last_length;