1#include "../../../Inc/Sensors/AnalogSensors/Temperature.h"
20 return temperature->
degrees * 9.0 / 5.0 + 32;
26 printf(
"Implement Temperature::TF\r\n");
float getAnalogSensorData(AnalogSensor *sensor)
Retrieves analog sensor data for a specific channel.
void initAnalogSensor(AnalogSensor *analogSensor, const char *name, int hz, int channel, void *child)
Initializes an analog sensor and configures the corresponding GPIO pin.
double getTemperatureFahrenheit(Temperature *temperature)
Gets the current temperature in Fahrenheit.
double getTemperatureCelsius(Temperature *temperature)
Gets the current temperature in Celsius.
void updateTemperature(void *temperature)
Updates the Temperature data.
double transferFunction(Temperature *temperature, float rawVal)
Converts raw temperature data to a meaningful temperature value.
void initTemperature(Temperature *temperature, int hz, int channel)
Initializes the Temperature sensor with the given frequency and channel.
int(* update)(struct Updateable *self)