This set of functions is used to configure the ADC.
◆ Cy_AutAnalog_SAR_LoadConfig()
Configures the ADC per provided settings.
- Note
- Changing Vref from external to internal (or vice versa) requires a new initialization delay for the ADC subsystem. Use a global API Cy_AutAnalog_LoadConfig instead of the local API.
- Parameters
-
| sarIdx | The index of the ADC subsystem within the Autonomous Analog, see cy_stc_autanalog_cfg_t::sar. |
| sarCfg | The pointer to a structure containing static data, Sequencer Table, FIR and FIFO configuration structures for the entire ADC subsystem within the Autonomous Analog. |
- Returns
- Status of initialization, cy_en_autanalog_status_t.
◆ Cy_AutAnalog_SAR_LoadStaticConfig()
Configures the ADC per settings in the static configuration structure.
- Note
- Changing Vref from external to internal (or vice versa) requires a new initialization delay for the ADC subsystem. Use a global API Cy_AutAnalog_LoadConfig instead of the local API.
- Parameters
-
- Returns
- Status of initialization, cy_en_autanalog_status_t.
◆ Cy_AutAnalog_SAR_LoadHSseqTable()
Loads the ADC HS Sequencer Table configurations.
- Parameters
-
| sarIdx | The index of the ADC subsystem within the Autonomous Analog, see cy_stc_autanalog_cfg_t::sar. |
| seqTabNum | The number of the ADC HS Sequencer Table configuration structures in the array. |
| seqTabArr | The pointer to the array of the ADC HS Sequencer Table configuration structures, see cy_stc_autanalog_sar_seq_tab_hs_t. |
- Returns
- Status of initialization, cy_en_autanalog_status_t.
◆ Cy_AutAnalog_SAR_LoadLPseqTable()
Loads the ADC LP Sequencer Table configurations.
- Parameters
-
| sarIdx | The index of the ADC subsystem within the Autonomous Analog, see cy_stc_autanalog_cfg_t::sar. |
| seqTabNum | The number of the ADC LP Sequencer Table configuration structures in the array. |
| seqTabArr | The pointer to the array of the ADC LP Sequencer Table configuration structures, see cy_stc_autanalog_sar_seq_tab_lp_t. |
- Returns
- Status of initialization, cy_en_autanalog_status_t.
◆ Cy_AutAnalog_SAR_LoadFIRconfig()