ADC Interface
ADC Platform interface
ADC Overview
An Analog-to-Digital Converter (ADC) is an essential component in electronics that converts analog signals (continuous signals) into digital data (discrete signals) that microcontrollers or digital systems can process. Below is an overview of ADCs, their purpose, types, and key parameters
Application Interface
The below table captures the functions that are to be called from the application layer.
Function |
Description |
|---|---|
rs_adc_init |
To open adc unit |
rs_adc_configure_channel |
To configures the ADC channel |
rs_adc_start_channel |
To starts the conversion for the given channel |
rs_adc_stop_channel |
To stops the conversion for the given channel |
rs_adc_register_completion_callback |
callback function is called on completion of given activity |
rs_adc_deinit |
To close the adc unit |
Error Code
Every API’s for the ADC returns some success or failure values. Please refer below section,
Implementation Guide
Initialize the ADC unit
Configure the ADC channel under the unit
Register the callback function
Start the ADC conversion
Callback gets called.
Stop the conversion once work is done
Un-Initialize the ADC unit
Documentation from the relevant header as follows:
Warning
doxygenfile: Cannot find file “rs_adc.h