#include <istream.h>
|
virtual void | parseSerial (vector< unsigned char > &buffer)=0 |
|
vector< double > | normalize (vector< double >) |
|
BaseSerialInputStream::BaseSerialInputStream |
( |
uint32_t |
usb_port_num, |
|
|
uint32_t |
baud, |
|
|
int |
numDimensions |
|
) |
| |
Create an BaseSerialInputStream instance.
- Parameters
-
port | the index of the (USB) serial port to use. |
baud | the baud rate at which to communicate with the serial port |
numDimensions | the number of dimensions in the data that will come from the serial port (i.e. the number of numbers in each line of data). |
BaseSerialInputStream::BaseSerialInputStream |
( |
uint32_t |
baud, |
|
|
int |
numDimensions |
|
) |
| |
Create an BaseSerialInputStream instance. This constructor doesn't require USB port so users will be asked to select them at runtime.
- Parameters
-
baud | the baud rate at which to communicate with the serial port |
numDimensions | the number of dimensions in the data that will come from the serial port (i.e. the number of numbers in each line of data). |
int BaseSerialInputStream::getNumInputDimensions |
( |
| ) |
|
|
finalvirtual |
Get the number of dimensions of the data that's provided by the input stream (before it's run through the normalizer, if any).
Implements InputStream.
vector<string> BaseSerialInputStream::getSerialDeviceList |
( |
| ) |
|
|
inline |
virtual void BaseSerialInputStream::parseSerial |
( |
vector< unsigned char > & |
buffer | ) |
|
|
protectedpure virtual |
bool BaseSerialInputStream::selectSerialDevice |
( |
uint32_t |
port | ) |
|
|
inline |
bool BaseSerialInputStream::start |
( |
| ) |
|
|
finalvirtual |
Start the stream.
Reimplemented from Stream.
void BaseSerialInputStream::stop |
( |
| ) |
|
|
finalvirtual |
unique_ptr<ofSerial> BaseSerialInputStream::serial_ |
|
protected |
The documentation for this class was generated from the following files: