1#ifndef RENSSELAERMOTORSPORT_ANALOGSENSOR_H
2#define RENSSELAERMOTORSPORT_ANALOGSENSOR_H
8#include "stm32f7xx_hal_adc.h"
9#include "stm32f7xx_hal_dma.h"
10#include "stm32f7xx_hal_uart.h"
DMA_HandleTypeDef hdma_adc1
DMA_HandleTypeDef hdma_adc3
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.
void initAnalogSensor(AnalogSensor *analogSensor, const char *name, int hz, int channel, void *child)
Initializes an analog sensor and configures the corresponding GPIO pin.
DMA_HandleTypeDef hdma_adc2