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