libyggdrasil  v1.0.0
adc.h File Reference

ADC abstraction implementation for Midgard. More...

#include <c/common/types.h>
#include <stm32f7xx_hal.h>
Include dependency graph for adc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  adc_t
 ADC handle type. More...
 

Functions

C_LINKAGE bool yggdrasil_ADC_Init (adc_t adc)
 ADC init function. More...
 
C_LINKAGE bool yggdrasil_ADC_Deinit (adc_t adc)
 ADC deinit function. More...
 
C_LINKAGE float yggdrasil_ADC_Read (adc_t adc)
 Get the adc value from the channel specified in the ADC handle. More...
 

Detailed Description

ADC abstraction implementation for Midgard.

Author
Fabian Weber, Nikolaij Saegesser

Function Documentation

◆ yggdrasil_ADC_Deinit()

C_LINKAGE bool yggdrasil_ADC_Deinit ( adc_t  adc)

ADC deinit function.

Parameters
adcADC handle
Returns
Success

◆ yggdrasil_ADC_Init()

C_LINKAGE bool yggdrasil_ADC_Init ( adc_t  adc)

ADC init function.

Parameters
adcADC handle
Returns
Success

◆ yggdrasil_ADC_Read()

C_LINKAGE float yggdrasil_ADC_Read ( adc_t  adc)

Get the adc value from the channel specified in the ADC handle.

Parameters
adcADC handle
Returns
ADC value