1#include "../../Inc/Sensors/AnalogSensor.h"
2#include "../../Inc/Utils/Constants.h"
44 analogSensor->
channel = channel;
45 analogSensor->
child = child;
float getAnalogSensorData(AnalogSensor *sensor)
Retrieves analog sensor data for a specific channel.
void ProcessADCData(uint32_t *adc1_buffer, uint32_t *adc2_buffer, uint32_t *adc3_buffer)
Processes ADC data from all three ADCs and stores it in the circular buffer.
static uint16_t adc_samples[ADC_CHANNELS]
void initAnalogSensor(AnalogSensor *analogSensor, const char *name, int hz, int channel, void *child)
Initializes an analog sensor and configures the corresponding GPIO pin.
#define ADC2_CHANNEL_SIZE
#define ADC1_CHANNEL_SIZE
void initSensor(Sensor *sensor, const char *name, int hz, SensorType type, void *child)
Initializes a sensor with the given parameters.
char name[MAX_NAME_LENGTH]