USB Device - Joystick/Mouse  1.0
Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
CRS232 Class Reference

#include <serial.h>

Public Member Functions

 CRS232 ()
 
 ~CRS232 ()
 
bool send_does_echo ()
 
bool init (int comNr, unsigned long baudRate, unsigned char parity, unsigned short maxRxLen, unsigned short maxTxLen)
 
void done ()
 
void iniCharReceiver (iChar, void *)
 
bool send_byte (unsigned char b)
 
bool send_bytes (const unsigned char *data, int len)
 
bool send_bytes_safe (const unsigned char *data, int len)
 
bool read_byte (unsigned char &b)
 
bool read_byte (unsigned char &b, unsigned short &charTout, unsigned long &lastCharTime)
 
int read_bytes (unsigned char *b, int maxLen)
 
bool flush ()
 
bool flush (bool clearRX)
 
void clearRxBuff ()
 
void mark_tx_ix_rd ()
 
void mark_back_tx_ix_rd ()
 
int get_mark_back_len ()
 
bool is_sending ()
 
unsigned short get_rx_len ()
 
bool peek_rx_byte (unsigned short ix, unsigned char &b)
 
void setRTS (bool state)
 
void waitForSent ()
 

Static Public Member Functions

static unsigned char getParityByChar (char cp)
 

Public Attributes

iChar inputChar
 
void * charReceiverPar
 

Friends

void rs232IsrHandlerCPP (int comNr)
 

Constructor & Destructor Documentation

CRS232::CRS232 ( )
CRS232::~CRS232 ( )

Member Function Documentation

void CRS232::clearRxBuff ( )
void CRS232::done ( )
bool CRS232::flush ( )
bool CRS232::flush ( bool  clearRX)
int CRS232::get_mark_back_len ( )
unsigned short CRS232::get_rx_len ( )
unsigned char CRS232::getParityByChar ( char  cp)
static
void CRS232::iniCharReceiver ( iChar  p,
void *  par 
)
bool CRS232::init ( int  comNr,
unsigned long  baudRate,
unsigned char  parity,
unsigned short  maxRxLen,
unsigned short  maxTxLen 
)
bool CRS232::is_sending ( )
void CRS232::mark_back_tx_ix_rd ( )
void CRS232::mark_tx_ix_rd ( )
bool CRS232::peek_rx_byte ( unsigned short  ix,
unsigned char &  b 
)
bool CRS232::read_byte ( unsigned char &  b)
bool CRS232::read_byte ( unsigned char &  b,
unsigned short &  charTout,
unsigned long &  lastCharTime 
)
int CRS232::read_bytes ( unsigned char *  b,
int  maxLen 
)
bool CRS232::send_byte ( unsigned char  b)
bool CRS232::send_bytes ( const unsigned char *  data,
int  len 
)
bool CRS232::send_bytes_safe ( const unsigned char *  data,
int  len 
)
bool CRS232::send_does_echo ( )
void CRS232::setRTS ( bool  state)
void CRS232::waitForSent ( )

Friends And Related Function Documentation

void rs232IsrHandlerCPP ( int  comNr)
friend

Member Data Documentation

void* CRS232::charReceiverPar
iChar CRS232::inputChar

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