OpenLCP
0.2.0
|
#include <universe.h>
Public Member Functions | |
Universe (int timeout_period=E111_DATA_LOSS_TIMEOUT) | |
Universe::Universe. More... | |
virtual | ~Universe () |
Universe::~Universe. | |
virtual const DimmerData * | data () const |
Universe::data. More... | |
virtual uint8_t | slot (const uint16_t) |
Universe::slot. More... | |
virtual double | rxRate () |
Universe::rxRate Rate (in Hz) at which the universe is being recv'd. More... | |
void | setValue (const uint16_t, const uint8_t) |
Universe::setValue. More... | |
void | setValue (const uint16_t, const uint16_t, const uint8_t *) |
Universe::setValue. More... | |
void | setData (std::vector< uint8_t >) |
Universe::setData Accept new data from receiver. More... | |
void | onData (const DataHandler) |
Universe::onData. More... | |
Protected Attributes | |
std::vector< DataHandler > | callbacks_ |
list of calback functions | |
The Universe class.
ANSI E1.11 describes may things about moving data over serial EIA-485-A links. This class encapselates that data, regardless of how it was transmitted.
DMX::Universe::Universe | ( | int | timeout_period = E111_DATA_LOSS_TIMEOUT | ) |
timeout_period |
|
virtual |
void DMX::Universe::onData | ( | const DataHandler | callback | ) |
callback |
|
virtual |
Universe::rxRate Rate (in Hz) at which the universe is being recv'd.
Calculated as the rolling mean of (the number of frames in the last rx_timeout_peroid ms) / rx_timeout_period seconds.
Reimplemented in SACN::MergeProxyUniverse.
void DMX::Universe::setData | ( | std::vector< uint8_t > | vect | ) |
Universe::setData Accept new data from receiver.
vect | varaibly sized data, beginning with a start code. |
The only setData method used to establish rx rate.
void DMX::Universe::setValue | ( | const uint16_t | start, |
const uint16_t | footprint, | ||
const uint8_t * | profile | ||
) |
start | |
footprint | |
profile |
void DMX::Universe::setValue | ( | const uint16_t | address, |
const uint8_t | value | ||
) |
address | |
value |
|
virtual |
address |
Reimplemented in SACN::Universe, and SACN::MergeProxyUniverse.