Open Lighting Architecture  0.9.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
ola::rdm::LoadSensor Class Reference

Detailed Description

A class which represents a load sensor.

Inheritance diagram for ola::rdm::LoadSensor:
ola::rdm::Sensor

Public Member Functions

 LoadSensor (const ola::system::load_averages load_average, const std::string &description)
- Public Member Functions inherited from ola::rdm::Sensor
 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.
void Record ()
int16_t Reset ()
uint8_t RecordedSupportBitMask () const

Static Public Attributes

static const int16_t LOAD_SENSOR_ERROR_VALUE = 0

Protected Member Functions

int16_t PollSensor ()

Additional Inherited Members

- Protected Attributes inherited from ola::rdm::Sensor
const ola::rdm::rdm_sensor_type m_type
const ola::rdm::rdm_pid_unit m_unit
const ola::rdm::rdm_pid_prefix m_prefix
const std::string m_description
const bool m_recorded_value_support
const bool m_recorded_range_support
const int16_t m_range_min
const int16_t m_range_max
const int16_t m_normal_min
const int16_t m_normal_max
int16_t m_lowest
int16_t m_highest
int16_t m_recorded

Member Function Documentation

int16_t ola::rdm::LoadSensor::PollSensor ( )
protectedvirtual

Fetch a Sensor value

Implements ola::rdm::Sensor.


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