Inert Temperature Sensor#
Defined in namespace hal::soft
#include <libhal-soft/inert/inert_temperature_sensor.hpp>
-
class inert_temperature_sensor : public hal::temperature_sensor#
Inert implementation of temperature sensing hardware.
Public Static Functions
-
static inline result<inert_temperature_sensor> create(read_t p_temperature)#
Factory function to create inert_temperature_sensor object.
- Parameters:
p_temperature – - read_t object to return when read() is called
- Returns:
result<inert_temperature_sensor> - Constructed inert_temperature_sensor object
-
static inline result<inert_temperature_sensor> create(read_t p_temperature)#