MT2523 API Reference
LinkIt SDK v4
|
This section describes the programming interfaces of the Analog-to-Digital Converter (ADC) HAL driver. More...
This section describes the programming interfaces of the Analog-to-Digital Converter (ADC) HAL driver.
The following provides descriptions to the terms commonly used in the ADC driver and how to use its various functions.
Terms | Details |
---|---|
ADC | ADC is an Analog-to-Digital Converter that converts a continuous physical quantity (usually voltage) to a digital number that represents the quantity's amplitude. |
The ADC is a Successive Approximation ADC . The supported channels vary based on the actual MCU devices used. Resolution of ADC is 12 bits.
Functions | |
hal_adc_status_t | hal_adc_init (void) |
ADC init function. More... | |
hal_adc_status_t | hal_adc_deinit (void) |
ADC deinit function. More... | |
hal_adc_status_t | hal_adc_get_data_polling (hal_adc_channel_t channel, uint32_t *data) |
ADC receives a sample data for a channel. More... | |
Modules | |
Enum | |
hal_adc_status_t hal_adc_deinit | ( | void | ) |
ADC deinit function.
This function resets the ADC peripheral registers to their default values.
hal_adc_status_t hal_adc_get_data_polling | ( | hal_adc_channel_t | channel, |
uint32_t * | data | ||
) |
ADC receives a sample data for a channel.
[in] | channel | is the channel that will be sampled. This parameter can only be the value of type hal_adc_channel_t. |
[out] | data | is the raw data of the channel. |
hal_adc_status_t hal_adc_init | ( | void | ) |
ADC init function.