Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line | 
|---|---|---|---|
| 146 | f9daq | 1 | #ifndef _RS232_H_ | 
        
| 2 | #define _RS232_H_ | 
        ||
| 3 | #include <stdlib.h> | 
        ||
| 4 | #include <stdio.h> | 
        ||
| 5 | |||
| 6 | #define LWRS_HWHANDSHAKE_OFF 0 | 
        ||
| 7 | #define LWRS_HWHANDSHAKE_CTS_RTS_DTR 1 | 
        ||
| 8 | #define LWRS_HWHANDSHAKE_CTS_RTS 2 | 
        ||
| 9 | |||
| 10 | int Delay(double seconds);  | 
        ||
| 11 | int FlushInQ(int fd);  | 
        ||
| 12 | int FlushOutQ(int fd);  | 
        ||
| 13 | int ComWrt (int fd, char* cmd, int Count ) ;  | 
        ||
| 14 | int ComRdTerm (int fd, char* result, int count, int termchar );  | 
        ||
| 15 | int OpenComConfig(char *dev, char * device_name, long Baud_Rate, int Parity, int Data_Bits,  | 
        ||
| 16 | int Stop_Bits, int Input_Queue_Size, int Output_Queue_Size );  | 
        ||
| 17 | int CloseCom (int fd);  | 
        ||
| 18 | int SetComTime(int fd, double timeout_seconds);  | 
        ||
| 19 | #endif | 
        ||
| 20 |