On this page
article
peary::hal::TemperatureProvider
peary::hal::TemperatureProvider
A resource which can read a temperature value.
#include <peary/hal/Resources.hpp>
Inherits from peary::hal::Resource
Inherited by peary::board::carboard::TemperatureSensor
Public Functions
| Name | |
|---|---|
| virtual double | getTemperature() =0Read the temperature this resource has access to. |
Additional inherited members
Public Functions inherited from peary::hal::Resource
| Name | |
|---|---|
| virtual | ~Resource() =defaultDefault constructor. |
| void | setName(const std::string & name)Set the name of the resource. |
| std::string | name() constGet the name of the resource. |
Protected Attributes inherited from peary::hal::Resource
| Name | |
|---|---|
| std::string | _name |
Public Functions Documentation
function getTemperature
virtual double getTemperature() =0
Read the temperature this resource has access to.
Return: Temperature associated with this resource
Reimplemented by: peary::board::carboard::TemperatureSensor::getTemperature
Purely virtual function to be implemented by the actual resource class
Updated on 2025-11-14 at 11:31:23 +0100