00001 // talk to serial ports in RAW mode 00002 // KM, AJR July-October 2003 00003 00004 #ifndef GLACSWEB_SERIALS_H 00005 #define GLACSWEB_SERIALS_H 00006 00007 #include <stdint.h> 00008 #include <termios.h> 00009 #include <unistd.h> 00010 00011 typedef uint8_t BYTE; 00012 00013 BYTE getbyte(); 00014 void putbyte(BYTE); 00015 int putstring(char *); 00016 void logfile(char *); 00017 void erexit(char *); 00018 void initialise_coms(char * portname, speed_t speed, char * logfile); 00019 void shutdown_coms(); 00020 00021 #endif // GLACSWEB_SERIALS_H