Temperature Sensor#

Hardware Interface#

Defined in namespace hal

#include <libhal/temperature_sensor.hpp>

class temperature_sensor#

Temperature sensing hardware abstraction interface.

Subclassed by hal::soft::inert_temperature_sensor

Public Functions

inline result<read_t> read()#

Read the current temperature measured by the device.

Returns:

result<read_t> - temperature data

struct read_t#

Result from reading the temperature sensor.

Public Members

celsius temperature#

Measured temperature.