|
PER Firmware
|
#include "common/phal_G4/adc/adc.h"Functions | |
| bool | PHAL_initADC (ADCInitConfig_t *config, ADCChannelConfig_t channels[], uint8_t num_channels) |
| Initializes the ADC, requires GPIO config prior. | |
| bool | PHAL_startADC (ADCInitConfig_t *config) |
| Starts the ADC conversions, requires PHAL_initADC to be called prior. | |
| bool | PHAL_stopADC (ADCInitConfig_t *config) |
| Stops the ADC conversions, requires PHAL_initADC to be called prior. | |
| uint16_t | PHAL_readADC (ADCInitConfig_t *config) |
| Reads the ADC data register. | |
| bool PHAL_initADC | ( | 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 | ( | ADCInitConfig_t * | config | ) |
Reads the ADC data register.
| adc | ADC handle |
| bool PHAL_startADC | ( | ADCInitConfig_t * | config | ) |
Starts the ADC conversions, requires PHAL_initADC to be called prior.
| adc | ADC handle |
| bool PHAL_stopADC | ( | ADCInitConfig_t * | config | ) |
Stops the ADC conversions, requires PHAL_initADC to be called prior.
| adc | ADC handle |