Class hal::temperature_sensor
ClassList > hal > temperature_sensor
Temperature sensing hardware abstraction interface.
#include <temperature_sensor.hpp>
Inherited by the following classes: hal::rmd::drc_temperature_sensor, hal::rmd::mc_x_temperature, hal::soft::inert_temperature_sensor
Classes
| Type | Name |
|---|---|
| struct | read_t Result from reading the temperature sensor. |
Public Functions
| Type | Name |
|---|---|
| result< read_t > | read () Read the current temperature measured by the device. |
| virtual | ~temperature_sensor () = default |
Public Functions Documentation
function read
Read the current temperature measured by the device.
inline result< read_t > hal::temperature_sensor::read ()
Returns:
result<read_t> - temperature data
function ~temperature_sensor
virtual hal::temperature_sensor::~temperature_sensor () = default
The documentation for this class was generated from the following file libraries/include/libhal/temperature_sensor.hpp