Temperature Class

class TemperatureClass : public Acroname::BrainStem::EntityClass

TemperatureClass: This entity is only available on certain modules, and provides a temperature reading in microcelsius.

Public Functions

TemperatureClass(void)

Constructor.

~TemperatureClass(void)

Destructor.

void init(Module *pModule, const uint8_t index)

Initialize the class.

Parameters:
  • pModule – The module to which this entity belongs.

  • index – The index of the entity.

aErr getValue(int32_t *temp)

Get the modules temperature in micro-C

Parameters:

temp – The temperature in micro-Celsius (1 == 1e-6C).

Returns:

Returns common entity return values

aErr getValueMin(int32_t *minTemp)

Get the module’s minimum temperature in micro-C since the last power cycle.

Parameters:

minTemp – The module’s minimum temperature in micro-C

Returns:

Returns common entity return values

aErr getValueMax(int32_t *maxTemp)

Get the module’s maximum temperature in micro-C since the last power cycle.

Parameters:

maxTemp – The module’s maximum temperature in micro-C

Returns:

Returns common entity return values

aErr resetEntityToFactoryDefaults(void)

Resets the TemperatureClass Entity to it factory default configuration.