9#ifndef TEMPLATE_ONCHIP_TEMPERATURE_SENSOR_HPP
10#define TEMPLATE_ONCHIP_TEMPERATURE_SENSOR_HPP
79 static std::unique_ptr<OnChipTemperatureSensor> instance_;
84 bool initialized_{
false};
Disable both copy and move operations.
Definition non_copyable.hpp:75
Reads the RP2040 on-chip temperature sensor via the ADC.
Definition onchip_temperature_sensor.hpp:33
bool IsInitialized() const
Check if the sensor has been initialized.
Definition onchip_temperature_sensor.hpp:61
bool Initialize()
Initialize the ADC and temperature sensor.
float GetFahrenheit() const
Read temperature in degrees Fahrenheit.
float GetCelsius() const
Read temperature in degrees Celsius.
static OnChipTemperatureSensor * GetInstance()
Get the singleton instance.
~OnChipTemperatureSensor()=default
Destructor.
C7222 course abstractions namespace.
Definition ble.hpp:20
Base classes to control copy/move semantics.