TwirreLink
 All Classes Functions Pages
Public Member Functions | Public Attributes | List of all members
SerialRW Class Reference

Public Member Functions

bool Initialize (const char *serialPort, int baud)
 
bool readString (std::string &s, StringTerminator term=StringTerminator::ZERO)
 
int readNBytes (unsigned char *buf, int n)
 
int writeBytes (unsigned char *bytes, int nrOfBytes)
 
void flush ()
 
template<typename T >
int Write (T thing)
 
template<typename T >
int Read (T &buffer)
 
template<typename T >
Read (void)
 

Public Attributes

int _fd
 

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