areaDetector  3-5-0
EPICS areaDetector framework
Public Member Functions | Protected Attributes | List of all members
cl_com_port Class Reference

Class for general serial port. More...

#include <cl_com_port2.h>

Inheritance diagram for cl_com_port:
comportInterface

Public Member Functions

 cl_com_port (char *name, log_file *lf_)
 
 ~cl_com_port ()
 
virtual void open (void)
 
virtual void open (int baud, int parity, int nbits, int nstop)
 
virtual void open (int baud, int parity, int nbits, int nstop, int rdtimeout)
 
virtual void write (unsigned char *buffer, int length)
 
virtual void read (unsigned char *buffer, int length)
 
virtual void write (unsigned char c)
 
virtual unsigned char read (void)
 
virtual void close (void)
 
virtual void flush (void)
 
virtual void clearPipe ()
 
virtual void setPortName (char *n)
 
virtual void wait (int us)
 
virtual void tic ()
 
virtual double toc ()
 

Protected Attributes

bool is_open
 
double currenttime
 
double elapsedtime
 
char INBUFFER [500]
 
char OUTBUFFER [20]
 
DWORD bytes_read
 
DWORD bytes_written
 
HANDLE comport
 
int bStatus
 
DCB comSettings
 
COMMTIMEOUTS CommTimeouts
 
char port_name [64]
 
log_filelf
 

Detailed Description

Class for general serial port.

Can be overridden. Used for camera link serial port.

Author
Timothy Madden
Date
2003

Constructor & Destructor Documentation

◆ cl_com_port()

cl_com_port::cl_com_port ( char *  name,
log_file lf_ 
)

◆ ~cl_com_port()

cl_com_port::~cl_com_port ( )

Member Function Documentation

◆ clearPipe()

virtual void cl_com_port::clearPipe ( )
virtual

Implements comportInterface.

◆ close()

virtual void cl_com_port::close ( void  )
virtual

Implements comportInterface.

◆ flush()

virtual void cl_com_port::flush ( void  )
virtual

Implements comportInterface.

◆ open() [1/3]

virtual void cl_com_port::open ( void  )
virtual

Implements comportInterface.

◆ open() [2/3]

virtual void cl_com_port::open ( int  baud,
int  parity,
int  nbits,
int  nstop 
)
virtual

Implements comportInterface.

◆ open() [3/3]

virtual void cl_com_port::open ( int  baud,
int  parity,
int  nbits,
int  nstop,
int  rdtimeout 
)
virtual

Implements comportInterface.

◆ read() [1/2]

virtual void cl_com_port::read ( unsigned char *  buffer,
int  length 
)
virtual

Implements comportInterface.

◆ read() [2/2]

virtual unsigned char cl_com_port::read ( void  )
virtual

Implements comportInterface.

◆ setPortName()

virtual void cl_com_port::setPortName ( char *  n)
virtual

Implements comportInterface.

◆ tic()

virtual void cl_com_port::tic ( )
virtual

Implements comportInterface.

◆ toc()

virtual double cl_com_port::toc ( )
virtual

Implements comportInterface.

◆ wait()

virtual void cl_com_port::wait ( int  us)
virtual

Implements comportInterface.

◆ write() [1/2]

virtual void cl_com_port::write ( unsigned char *  buffer,
int  length 
)
virtual

Implements comportInterface.

◆ write() [2/2]

virtual void cl_com_port::write ( unsigned char  c)
virtual

Implements comportInterface.

Member Data Documentation

◆ bStatus

int cl_com_port::bStatus
protected

◆ bytes_read

DWORD cl_com_port::bytes_read
protected

◆ bytes_written

DWORD cl_com_port::bytes_written
protected

◆ CommTimeouts

COMMTIMEOUTS cl_com_port::CommTimeouts
protected

◆ comport

HANDLE cl_com_port::comport
protected

◆ comSettings

DCB cl_com_port::comSettings
protected

◆ currenttime

double cl_com_port::currenttime
protected

◆ elapsedtime

double cl_com_port::elapsedtime
protected

◆ INBUFFER

char cl_com_port::INBUFFER[500]
protected

◆ is_open

bool cl_com_port::is_open
protected

◆ lf

log_file* cl_com_port::lf
protected

◆ OUTBUFFER

char cl_com_port::OUTBUFFER[20]
protected

◆ port_name

char cl_com_port::port_name[64]
protected

The documentation for this class was generated from the following file: