25 #ifndef _CL_COM_PORT_H 26 #define _CL_COM_PORT_H 40 virtual void open(
void);
41 virtual void open(
int baud,
int parity,
int nbits,
int nstop);
43 virtual void open(
int baud,
int parity,
int nbits,
int nstop,
int rdtimeout);
45 virtual void write(
unsigned char *buffer,
int length);
46 virtual void read(
unsigned char *buffer,
int length);
47 virtual void write(
unsigned char c);
48 virtual unsigned char read(
void);
49 virtual void close(
void);
50 virtual void flush(
void);
55 virtual void wait(
int us);
virtual unsigned char read(void)
Class for general serial port.
Definition: cl_com_port2.h:32
log_file * lf
Definition: cl_com_port2.h:83
char port_name[64]
Definition: cl_com_port2.h:82
Interface to a com port, on a grabber.
Definition: comportInterface.h:24
name
Definition: makeDbAndEdl.py:232
double elapsedtime
Definition: cl_com_port2.h:64
HANDLE comport
Definition: cl_com_port2.h:74
int bStatus
Definition: cl_com_port2.h:76
COMMTIMEOUTS CommTimeouts
Definition: cl_com_port2.h:80
bool is_open
Definition: cl_com_port2.h:62
cl_com_port(char *name, log_file *lf_)
double currenttime
Definition: cl_com_port2.h:64
virtual void setPortName(char *n)
Class LOG_FILE.
Definition: logfile.h:38
char OUTBUFFER[20]
Definition: cl_com_port2.h:68
virtual void wait(int us)
virtual void write(unsigned char *buffer, int length)
DWORD bytes_read
Definition: cl_com_port2.h:70
char INBUFFER[500]
Definition: cl_com_port2.h:66
DWORD bytes_written
Definition: cl_com_port2.h:72
DCB comSettings
Definition: cl_com_port2.h:78
#define DWORD
Definition: pco_structures.h:443