|
PER Firmware
|
#include "common/phal_F4_F7/adc/adc.h"Functions | |
| bool | PHAL_initADC (ADC_TypeDef *adc, ADCInitConfig_t *config, ADCChannelConfig_t channels[], uint8_t num_channels) |
| Initializes the ADC, requires GPIO config prior. | |
| bool | PHAL_startADC (ADC_TypeDef *adc) |
| Starts the ADC conversions, requires PHAL_initADC to be called prior. | |
| bool | PHAL_stopADC (ADC_TypeDef *adc) |
| Stops the ADC conversions, requires PHAL_initADC to be called prior. | |
| uint16_t | PHAL_readADC (ADC_TypeDef *adc) |
| Reads the ADC data register. | |
| bool PHAL_initADC | ( | ADC_TypeDef * | adc, |
| ADCInitConfig_t * | config, | ||
| ADCChannelConfig_t | channels[], | ||
| uint8_t | num_channels ) |
Initializes the ADC, requires GPIO config prior.
| adc | ADC handle |
| config | ADC initial config settings |
| channels | List of channel configurations |
| num_channels | Number of channels in the channel configuration list |
| uint16_t PHAL_readADC | ( | ADC_TypeDef * | adc | ) |
Reads the ADC data register.
| adc | ADC handle |
| bool PHAL_startADC | ( | ADC_TypeDef * | adc | ) |
Starts the ADC conversions, requires PHAL_initADC to be called prior.
| adc | ADC handle |
| bool PHAL_stopADC | ( | ADC_TypeDef * | adc | ) |
Stops the ADC conversions, requires PHAL_initADC to be called prior.
| adc | ADC handle |