#ifndef _RS232_H_
#define _RS232_H_
#include <stdlib.h>
#include <stdio.h>
#define LWRS_HWHANDSHAKE_OFF 0
#define LWRS_HWHANDSHAKE_CTS_RTS_DTR 1
#define LWRS_HWHANDSHAKE_CTS_RTS 2
int Delay(double seconds);
int FlushInQ(int fd);
int FlushOutQ(int fd);
int ComWrt (int fd, char* cmd, int Count ) ;
int ComRdTerm (int fd, char* result, int count, int termchar );
int OpenComConfig(char *dev, char * device_name, long Baud_Rate, int Parity, int Data_Bits,
int Stop_Bits, int Input_Queue_Size, int Output_Queue_Size );
int CloseCom (int fd);
int SetComTime(int fd, double timeout_seconds);
#endif