openFrameworksArduino
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ofSerial Class Reference

Public Member Functions

void listDevices ()
 
void enumerateDevices ()
 
std::vector< ofSerialDeviceInfogetDeviceList ()
 
void close ()
 
bool setup ()
 
bool setup (std::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 ()
 
bool isInitialized () const
 
void listDevices ()
 
void enumerateDevices ()
 
std::vector< ofSerialDeviceInfogetDeviceList ()
 
void close ()
 
bool setup ()
 
bool setup (std::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 ()
 
bool isInitialized () const
 
bool setBaud (int baud)
 
bool setBaud (const std::string &baud_str)
 

Protected Member Functions

void buildDeviceList ()
 
void buildDeviceList ()
 

Protected Attributes

std::string deviceType
 
std::vector< ofSerialDeviceInfodevices
 
bool bHaveEnumeratedDevices
 
bool bInited
 
int fd
 
struct termios oldoptions
 
int port_is_open
 
int baud_rate
 
std::string error_msg
 
std::string port_name
 
int port_fd
 
struct termios settings_orig
 
struct termios settings
 

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