#ifndef __SERIAL_H__
#define __SERIAL_H__

#include <sys/termio.h>

int sendStr (int port, char *str);
int recvStr (int port, char *str, int max_len);
int openPort (char *port_name, int *port, speed_t baud, int databits,
	      int stop, char *parity);
int closePort (int port);
int flushRecv (int port);

int openLogFile (int port, char *filename);
int closeLogFile (int port);

#endif /* __SERIAL_H__ */
