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

Detailed Description

A class which represents a sensor.

Public Member Functions

 FakeSensor (ola::rdm::rdm_sensor_type type, ola::rdm::rdm_pid_unit unit, ola::rdm::rdm_pid_prefix prefix, int16_t range_min, int16_t range_max, int16_t normal_min, int16_t normal_max, const string &description)
int16_t GenerateValue ()
void Record ()
int16_t Reset ()

Public Attributes

const ola::rdm::rdm_sensor_type type
const ola::rdm::rdm_pid_unit unit
const ola::rdm::rdm_pid_prefix prefix
const int16_t range_min
const int16_t range_max
const int16_t normal_min
const int16_t normal_max
const string description
int16_t highest
int16_t lowest
int16_t recorded

Member Function Documentation

int16_t ola::rdm::FakeSensor::GenerateValue ( )

Generate a Sensor value

void ola::rdm::FakeSensor::Record ( )

Generate a new value and record it.

int16_t ola::rdm::FakeSensor::Reset ( )

Reset a sensor.


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