39extern uint32_t ADC_data_buffer[(AI_NONE * 2) + 1];
53 liner_fce linearization_function);
retStatus analog_input_get(uint16_t analog_input, uint16_t data, int32_t *value)
Standardized getter function for digital input library.
Definition: ai.c:34
anaInputs
Definition: ai.h:34
retStatus analog_input_init(anaInputs an_input_name, int32_t sample_from, liner_fce linearization_function)
Analog input initialization function.
Definition: ai.c:66
__weak HAL_StatusTypeDef analog_input_start(ADC_HandleTypeDef adc)
Starts the ADC with DMA in interrupt mode using STM32 HAL.
Definition: ai.c:139
uint32_t lin_adc_no_scaling_no_corrections(uint32_t adc_value)
Convert ADC reading to voltage for a simple 0-3.3V input.
Definition: ai.c:144
void analog_input_handle(void)
Handler for analog inputs.
Definition: ai.c:94
provides HAL includes for different MCU cores
Initialization of digital/analog inputs and outputs.
Defines for turning on/off the library modules.
Defines and functions that are useful for all library files.
retStatus
possible return values
Definition: utility.h:13