17 #ifndef _comportInterface_H 18 #define _comportInterface_H 26 virtual void open(
void) = 0;
27 virtual void open(
int baud,
int parity,
int nbits,
int nstop) = 0;
29 virtual void open(
int baud,
int parity,
int nbits,
int nstop,
32 virtual void write(
unsigned char *buffer,
int length) = 0;
33 virtual void read(
unsigned char *buffer,
int length) = 0;
34 virtual void write(
unsigned char c) = 0;
35 virtual unsigned char read(
void) = 0;
36 virtual void close(
void) = 0;
37 virtual void flush(
void) = 0;
41 virtual void wait(
int us) = 0;
44 virtual void tic() = 0;
45 virtual double toc() = 0;
virtual void clearPipe()=0
virtual unsigned char read(void)=0
Interface to a com port, on a grabber.
Definition: comportInterface.h:24
virtual void flush(void)=0
virtual void write(unsigned char *buffer, int length)=0
virtual void setPortName(char *n)=0
virtual void open(void)=0
virtual void wait(int us)=0
virtual void close(void)=0