Open Lighting Architecture
Latest Git
|
Holds information about a single sensor.
Classes | |
struct | SensorOptions |
Public Member Functions | |
Sensor (ola::rdm::rdm_sensor_type type, ola::rdm::rdm_pid_unit unit, ola::rdm::rdm_pid_prefix prefix, const std::string &description, const SensorOptions &options) | |
rdm_sensor_type | Type () const |
rdm_pid_unit | Unit () const |
rdm_pid_prefix | Prefix () const |
int16_t | RangeMin () const |
int16_t | RangeMax () const |
int16_t | NormalMin () const |
int16_t | NormalMax () const |
const std::string & | Description () const |
int16_t | Lowest () const |
int16_t | Highest () const |
int16_t | Recorded () const |
int16_t | FetchValue () |
Get the current value, store any new min or max and return it. More... | |
void | Record () |
int16_t | Reset () |
uint8_t | RecordedSupportBitMask () const |
Protected Member Functions | |
virtual int16_t | PollSensor ()=0 |
Actually get the value from the Sensor. More... | |
|
inline |
Get the current value, store any new min or max and return it.
|
protectedpure virtual |
Actually get the value from the Sensor.
Implemented in ola::rdm::FakeSensor, and ola::rdm::LoadSensor.
|
inline |
Get the current value and record it for later collection.
|
inline |
Reset a sensor's min/max/recorded values.