/* serial_port.h Henriks Communication Api www.eit.se/hcpips */ #ifndef SERIAL_PORT_H #define SERIAL_PORT_H #ifdef WIN32 HANDLE serial_port_open(const char *dev_name, int baudrate) #else int serial_port_open(const char *dev_name, int baudrate); int serial_port_write(int tty_fd, const char *buf, int len); int serial_port_read(int fd,char *buf, int len); int serial_port_close(const char *dev_name, int baudrate); #endif #endif