This set of functions is used to Init/Deinit the Autonomous Analog.
◆ Cy_AutAnalog_Init()
Initializes the entire Autonomous Analog with the configuration and states provided.
- Parameters
-
| cfgAndStates | The pointer to the structure containing the configuration data and the content of the State Transition Table for the entire Autonomous Analog. |
- Returns
- The combined value of all the subsystem statuses, cy_en_autanalog_status_t.
◆ Cy_AutAnalog_Disable()
| void Cy_AutAnalog_Disable |
( |
void |
| ) |
|
Disables the Autonomous Analog and powers down the digital supply to reduce the leakage.
- Note
- The configuration of the Autonomous Analog in the MMIO, the content of the State Transition Table, data in the SAR ADC FIFO, and the DAC LUT will be lost.
◆ Cy_AutAnalog_Enable()
| void Cy_AutAnalog_Enable |
( |
void |
| ) |
|
◆ Cy_AutAnalog_LoadConfig()
Configures the Autonomous Analog per provided settings.
- Note
- This function also
- enables the IP block;
- configures individual initialization delays for enabled subsystems;
- loads trimming values for Autonomous Analog;
- Parameters
-
| analogCfg | The pointer to the structure containing configuration data for the entire Autonomous Analog. |
- Returns
- The combined value of all the subsystem statuses, cy_en_autanalog_status_t.
◆ Cy_AutAnalog_LoadStateTransitionTable()
Configures the State Transition Table of the the Autonomous Controller per provided settings.
- Parameters
-
| numEntries | Number of entries in the State Transition Table. |
| stateTransitionTable | The pointer to an array containing configuration data for the entire State Transition Table. |
- Returns
- The combined value of all the subsystem statuses, cy_en_autanalog_status_t.
◆ Cy_AutAnalog_UpdateStateTransitionTable()
Add or replace states in the State Transition Table.
- Parameters
-
| numEntries | The number of entries in the State Transition Table for add/replace. |
| stateTransitionTable | The pointer to an array containing a new set of configuration data for the State Transition Table, to be added or replaced. |
| startState | Defines the state in the State Transition Table from which the content update starts. |
- Returns
- Combined value of all the subsystem statuses, cy_en_autanalog_status_t.
◆ Cy_AutAnalog_PRB_LoadConfig()
Configures the PRB instance per settings in the configuration structure.
- Parameters
-
| prbIdx | Index of the PRB block within the Autonomous Analog infrastructure. |
| prbCfg | The pointer to a structure containing configuration data for the PRB subsystem. |
- Returns
- The status of initialization, cy_en_autanalog_status_t.