Collaboration diagram for HemissonSerial:
Collaboration graph

Public Member Functions

 HemissonSerial (int debug=0, const char *port=HEMISSON_DEFAULT_SERIAL_PORT, const char *rate=HEMISSON_BAUDRATE)
 
bool Open ()
 
int HemissonCommand (char command, int InCount, int *InValues, int OutCount, int *OutValues)
 

Protected Member Functions

int WriteInts (char command, int Count=0, int *Values=NULL)
 
int ReadInts (char Header, int Count=0, int *Values=NULL)
 

Protected Attributes

int fd
 
char buffer [HEMISSON_BUFFER_LEN+1]
 
int debug
 

Private Member Functions

char * m_gets (int fd, int tmout)
 
int m_getchar (int fd, int tmout)
 
void m_puts (int fd, const char *s)
 
void m_putchar (int fd, int chr)
 
void m_dtrtoggle (int fd, int sec)
 
void m_break (int fd)
 
int m_getdcd (int fd)
 
void m_flush (int fd)
 
void m_setparms (int fd, const char *baudr, const char *par, const char *bits, const char *stopb, int hwf, int swf)
 
int serial_open (const char *devname)
 
void serial_close (int fd)
 
void m_sethwf (int fd, int on)
 
void m_setrts (int fd)
 
void m_savestate (int fd)
 
void m_restorestate (int fd)
 
void m_nohang (int fd)
 
void m_hupcl (int fd, int on)
 

Private Attributes

char ttybuf [TTYBUFFSIZE]
 
char parity
 
struct termios savetty
 
int m_word
 

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