ofDoc
ofDoc
>
communication
>
ofSerial
Topics
Defines
ofSerial
Functions
ofSerial
file
Defines
MAX_SERIAL_PORTS
define
MAX_SERIAL_PORTS
ofSerial
class
Functions
ofSerial
()
ofSerial
()
~ofSerial
()
~ofSerial
()
listDevices
()
void
listDevices
()
enumerateDevices
()
void
enumerateDevices
()
getDeviceList
()
ofSerialDeviceInfo
getDeviceList
()
close
()
void
close
()
setup
()
bool
setup
()
bool
setup
(string portName, int baudrate)
bool
setup
(int deviceNumber, int baudrate)
readBytes
()
int
readBytes
(unsigned char *buffer, int length)
writeBytes
()
int
writeBytes
(unsigned char *buffer, int length)
writeByte
()
bool
writeByte
(unsigned char singleByte)
readByte
()
int
readByte
()
flush
()
void
flush
(bool flushIn=true, bool flushOut=true)
available
()
int
available
()
drain
()
void
drain
()
isInitialized
()
bool
isInitialized
() const