00001 00002 #ifndef SERIAL_H 00003 #define SERIAL_H 00004 00005 #define BAUDRATE B57600 00006 00007 extern struct termios oldtio,newtio; 00008 00009 int openPort( char *serialDev ); 00010 void closePort(int fd); 00011 void sendData(int fd, unsigned char *data, int len); 00012 void getData(int fd, unsigned char *data, int *len); 00013 00014 #endif