Hierodule 1.6.2
Utility module set for STM32 MCUs
Loading...
Searching...
No Matches
hierodule_adc.c File Reference

: Source file for the ADC module. More...

Go to the source code of this file.

Functions

void Smoothen (HIERODULE_ADC_Wrapper *Wrapper)
 Applies a cumulative-smoothening filter before updating the wrapper data field.
 
HIERODULE_ADC_Wrapper ** HIERODULE_ADC_InitWrapper (ADC_TypeDef *_ADC, void(*ISR)(uint16_t))
 Initializes a wrapper for the specified ADC peripheral.
 
void HIERODULE_ADC_ReleaseWrapper (HIERODULE_ADC_Wrapper *Wrapper)
 Frees the memory allocated to an ADC wrapper.
 
void HIERODULE_ADC_Enable (HIERODULE_ADC_Wrapper *Wrapper)
 Updates relevant control register bits to start ADC action.
 
void HIERODULE_ADC_Disable (HIERODULE_ADC_Wrapper *Wrapper)
 Updates relevant control register bits to stop ADC action.
 
void ADC1_2_IRQHandler (void)
 ADC1_2 IRQ implementation.
Requires the device specific macro __STM32F103xB_H to be defined.
 
void ADC_IRQHandler (void)
 ADC IRQ implementation.
Requires the device specific macro __STM32F401xC_H to be defined.
 
void ADC1_IRQHandler (void)
 ADC1 IRQ implementation.
Requires the device specific macro __STM32F030x6_H to be defined.
 

Variables

static HIERODULE_ADC_WrapperADC1_Wrapper = NULL
 ADC wrapper pointer meant for ADC1.
 
static HIERODULE_ADC_WrapperADC2_Wrapper = NULL
 ADC wrapper pointer meant for ADC2.
Requires the device specific macro __STM32F103xB_H to be defined.
 

Detailed Description

Author
: ushumgigal
Attention
: Copyrighted (2024) by ushumgigal under MIT License, a copy of which may be found in the root folder of the repository.

Definition in file hierodule_adc.c.