Open Ephys GUI
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | Protected Attributes
ofSerial Class Reference

#include <ofSerial.h>

List of all members.

Public Member Functions

 ofSerial ()
virtual ~ofSerial ()
void listDevices ()
void enumerateDevices ()
vector< ofSerialDeviceInfogetDeviceList ()
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 drain ()

Protected Member Functions

void buildDeviceList ()

Protected Attributes

string deviceType
vector< ofSerialDeviceInfodevices
bool bHaveEnumeratedDevices
bool bInited
int fd
struct termios oldoptions

Constructor & Destructor Documentation

ofSerial::ofSerial ( )
virtual ofSerial::~ofSerial ( )
virtual

Member Function Documentation

void ofSerial::listDevices ( )
void ofSerial::enumerateDevices ( )
vector<ofSerialDeviceInfo> ofSerial::getDeviceList ( )
void ofSerial::close ( )
bool ofSerial::setup ( )
bool ofSerial::setup ( string  portName,
int  baudrate 
)
bool ofSerial::setup ( int  deviceNumber,
int  baudrate 
)
int ofSerial::readBytes ( unsigned char *  buffer,
int  length 
)
int ofSerial::writeBytes ( unsigned char *  buffer,
int  length 
)
bool ofSerial::writeByte ( unsigned char  singleByte)
int ofSerial::readByte ( )
void ofSerial::flush ( bool  flushIn = true,
bool  flushOut = true 
)
int ofSerial::available ( )
void ofSerial::drain ( )
void ofSerial::buildDeviceList ( )
protected

Member Data Documentation

string ofSerial::deviceType
protected
vector<ofSerialDeviceInfo> ofSerial::devices
protected
bool ofSerial::bHaveEnumeratedDevices
protected
bool ofSerial::bInited
protected
int ofSerial::fd
protected
struct termios ofSerial::oldoptions
protected

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