Public Member Functions | Public Attributes | Protected Attributes

ofSerial Class Reference

#include <ofSerial.h>

List of all members.

Public Member Functions

 ofSerial ()
virtual ~ofSerial ()
void enumerateDevices ()
void close ()
bool setup ()
bool setup (string portName, int baudrate)
bool setup (int deviceNumber, int baudrate)
int readBytes (unsigned char *buffer, int length)
int writeBytes (unsigned char *buffer, int length)
bool writeByte (unsigned char singleByte)
int readByte ()
void flush (bool flushIn=true, bool flushOut=true)
int available ()
void setVerbose (bool bLoudmouth)

Public Attributes

bool bVerbose

Protected Attributes

bool bInited
int fd
struct termios oldoptions

Constructor & Destructor Documentation

ofSerial::ofSerial (  )
ofSerial::~ofSerial (  ) [virtual]

Member Function Documentation

int ofSerial::available (  )
void ofSerial::close (  )
void ofSerial::enumerateDevices (  )
void ofSerial::flush ( bool  flushIn = true,
bool  flushOut = true 
)
int ofSerial::readByte (  )
int ofSerial::readBytes ( unsigned char *  buffer,
int  length 
)
bool ofSerial::setup ( string  portName,
int  baudrate 
)
bool ofSerial::setup ( int  deviceNumber,
int  baudrate 
)
bool ofSerial::setup (  )
void ofSerial::setVerbose ( bool  bLoudmouth ) [inline]
bool ofSerial::writeByte ( unsigned char  singleByte )
int ofSerial::writeBytes ( unsigned char *  buffer,
int  length 
)

Member Data Documentation

bool ofSerial::bInited [protected]
int ofSerial::fd [protected]
struct termios ofSerial::oldoptions [protected]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines