Class hal::soft::inert_temperature_sensor
ClassList > hal > soft > inert_temperature_sensor
Inert implementation of temperature sensing hardware.
#include <inert_temperature_sensor.hpp>
Inherits the following classes: hal::temperature_sensor
Public Functions inherited from hal::temperature_sensor
Type | Name |
---|---|
result< read_t > | read () Read the current temperature measured by the device. |
virtual | ~temperature_sensor () = default |
Public Static Functions
Type | Name |
---|---|
result< inert_temperature_sensor > | create (read_t p_temperature) Factory function to create inert_temperature_sensor object. |
Public Static Functions Documentation
function create
Factory function to create inert_temperature_sensor object.
static inline result< inert_temperature_sensor > hal::soft::inert_temperature_sensor::create (
read_t p_temperature
)
Parameters:
p_temperature
- read_t object to return when read() is called
Returns:
result<inert_temperature_sensor> - Constructed inert_temperature_sensor object
The documentation for this class was generated from the following file libraries/include/libhal-soft/inert_drivers/inert_temperature_sensor.hpp