Board Support
Version 1.0
Functions available when using the Board Software Components
|
Analog to Digital Converter Interface. More...
Functions | |
int32_t | ADC_Initialize (void) |
Initialize Analog-to-Digital Converter. | |
int32_t | ADC_Uninitialize (void) |
De-initialize Analog-to-Digital Converter. | |
int32_t | ADC_StartConversion (void) |
Start conversion. | |
int32_t | ADC_ConversionDone (void) |
Check if conversion finished. | |
int32_t | ADC_GetValue (void) |
Get converted value. | |
uint32_t | ADC_GetResolution (void) |
Get resolution of Analog-to-Digital Converter. | |
Analog to Digital Converter Interface.
int32_t ADC_ConversionDone | ( | void | ) |
Check if conversion finished.
The function checks whether the conversion has finished. The function returns an integer value of 0 when conversion has finished, and -1 when conversion is in progress.
uint32_t ADC_GetResolution | ( | void | ) |
Get resolution of Analog-to-Digital Converter.
The function returns the number of bits of the A/D converter.
int32_t ADC_GetValue | ( | void | ) |
Get converted value.
The function returns the converted value from the A/D converter. The function returns -1 when the conversion failed or is still in progress.
int32_t ADC_Initialize | ( | void | ) |
Initialize Analog-to-Digital Converter.
The function initializes the A/D converter interface. The function returns an integer value of 0 on success, and -1 on error.
int32_t ADC_StartConversion | ( | void | ) |
Start conversion.
The function starts the A/D conversion. The function returns an integer value of 0 on success, and -1 on error.
int32_t ADC_Uninitialize | ( | void | ) |
De-initialize Analog-to-Digital Converter.
The function de-initializes the A/D converter interface. The function returns an integer value of 0 on success, and -1 on error.