22 #ifndef KHEPERA_SERIAL_H 23 #define KHEPERA_SERIAL_H 28 #define KHEPERA_DEFAULT_BAUD B38400 29 #define KHEPERA_BUFFER_LEN 255 30 #define KHEPERA_SERIAL_TIMEOUT_USECS 100000 40 bool Open() {
return fd >0;};
41 int KheperaCommand(
char command,
int InCount,
int * InValues,
int OutCount,
int * OutValues);
48 struct termios oldtio;
51 char buffer[KHEPERA_BUFFER_LEN+1];
53 int WriteInts(
char command,
int Count = 0,
int * Values = NULL);
54 int ReadInts(
char Header,
int Count = 0,
int * Values = NULL);
Definition: khepera_serial.h:33