Functions | |
| cy_en_autanalog_status_t | Cy_AutAnalog_AC_LoadConfig (const cy_stc_autanalog_ac_t *acCfg) |
| Configures the AC per provided settings. More... | |
| void | Cy_AutAnalog_StartAutonomousControl (void) |
| Enables the AC for operation. More... | |
| uint8_t | Cy_AutAnalog_PauseAutonomousControl (void) |
| Pauses the AC during operation. More... | |
| void | Cy_AutAnalog_SingleStepAutonomousControl (void) |
| Executes the single-step in the STT. More... | |
| cy_en_autanalog_status_t | Cy_AutAnalog_GetControllerState (cy_stc_autanalog_state_t *ctrlState) |
| Provides the operating status of the AC. More... | |
| void | Cy_AutAnalog_OverrideControllerState (uint8_t newState) |
| Override current state in the STT with new one. More... | |
| void | Cy_AutAnalog_RunControllerState (uint8_t newState) |
| Triggers the AC to override the current state and forces it to run from the STT new state. More... | |
| __STATIC_INLINE bool | Cy_AutAnalog_IsBusy (void) |
| Check if the AC is currently executing (RUNNING or STOPPED/PAUSED). More... | |
| void | Cy_AutAnalog_SetOutputTriggerMask (cy_en_autanalog_ac_out_trigger_idx_t trigIdx, cy_en_autanalog_ac_out_trigger_mask_t mask) |
| Configures which bits of the mask register generate a trigger output. More... | |
| cy_en_autanalog_ac_out_trigger_mask_t | Cy_AutAnalog_GetOutputTriggerMask (cy_en_autanalog_ac_out_trigger_idx_t trigIdx) |
| Returns the AC out trigger mask. More... | |
| void | Cy_AutAnalog_FwTrigger (cy_en_autanalog_fw_trigger_t triggNum) |
| Sends a firmware trigger to the AC. More... | |
| cy_en_syspm_status_t | Cy_AutAnalog_DeepSleepCallback (cy_stc_syspm_callback_params_t *callbackParams, cy_en_syspm_callback_mode_t mode) |
| Changes the FIFO mode to write only before entering into Deep Sleep mode and restores it to write/read upon wake-up. More... | |
| cy_en_autanalog_status_t Cy_AutAnalog_AC_LoadConfig | ( | const cy_stc_autanalog_ac_t * | acCfg | ) |
Configures the AC per provided settings.
| acCfg | Pointer to a structure containing configuration data for the AC, cy_stc_autanalog_ac_t. |
| void Cy_AutAnalog_StartAutonomousControl | ( | void | ) |
Enables the AC for operation.
| uint8_t Cy_AutAnalog_PauseAutonomousControl | ( | void | ) |
Pauses the AC during operation.
The state in the STT does not change.
The AC waits for the present state to complete before pausing. If the present state cannot complete (i.e. the ACTION and CONDITION are programmed improperly), the AC will not pause. Do not use this command when executing an AC sleep state (ACTION is set to WAIT_FOR and CONDITION is set to WAKE_*).
When the AC is paused, all AC registered conditions are cleared. This command is ignored if AC is already PAUSED or STOPPED, cy_stc_autanalog_state_t::ac.
| void Cy_AutAnalog_SingleStepAutonomousControl | ( | void | ) |
Executes the single-step in the STT.
If the present state cannot complete (i.e. the ACTION and CONDITION are programmed improperly), the AC will not pause. Do not use this command when executing an AC sleep state (ACTION is set to WAIT_FOR and CONDITION is set to WAKE_*).
When the AC is paused, all AC registered conditions are cleared. This command is ignored if AC is already PAUSED or STOPPED, cy_stc_autanalog_state_t::ac.
| cy_en_autanalog_status_t Cy_AutAnalog_GetControllerState | ( | cy_stc_autanalog_state_t * | ctrlState | ) |
Provides the operating status of the AC.
| ctrlState | Pointer to a structure for receiving the current operating status. |
| void Cy_AutAnalog_OverrideControllerState | ( | uint8_t | newState | ) |
Override current state in the STT with new one.
| newState | New state in the State Transition Table. |
| void Cy_AutAnalog_RunControllerState | ( | uint8_t | newState | ) |
Triggers the AC to override the current state and forces it to run from the STT new state.
| newState | Jumping to the new state in the State Transition Table. |
| __STATIC_INLINE bool Cy_AutAnalog_IsBusy | ( | void | ) |
Check if the AC is currently executing (RUNNING or STOPPED/PAUSED).
| void Cy_AutAnalog_SetOutputTriggerMask | ( | cy_en_autanalog_ac_out_trigger_idx_t | trigIdx, |
| cy_en_autanalog_ac_out_trigger_mask_t | mask | ||
| ) |
Configures which bits of the mask register generate a trigger output.
| trigIdx | The AC trigger register to initialize the out trigger. See cy_en_autanalog_ac_out_trigger_idx_t. |
| mask | The mask of triggers allowed to be activated. Each bit of this mask enables the corresponding out trigger in the AC. See cy_en_autanalog_ac_out_trigger_mask_t. |
| cy_en_autanalog_ac_out_trigger_mask_t Cy_AutAnalog_GetOutputTriggerMask | ( | cy_en_autanalog_ac_out_trigger_idx_t | trigIdx | ) |
Returns the AC out trigger mask.
Each bit of this mask enables the corresponding out trigger in the AC.
| trigIdx | The AC trigger register to initialize the out trigger. See cy_en_autanalog_ac_out_trigger_idx_t. |
| void Cy_AutAnalog_FwTrigger | ( | cy_en_autanalog_fw_trigger_t | triggNum | ) |
Sends a firmware trigger to the AC.
| triggNum | The AC trigger register to initialize the FW trigger. See cy_en_autanalog_fw_trigger_t. |
| cy_en_syspm_status_t Cy_AutAnalog_DeepSleepCallback | ( | cy_stc_syspm_callback_params_t * | callbackParams, |
| cy_en_syspm_callback_mode_t | mode | ||
| ) |
Changes the FIFO mode to write only before entering into Deep Sleep mode and restores it to write/read upon wake-up.
| callbackParams | Callback parameters, see cy_stc_syspm_callback_params_t |
| mode | Callback mode, see cy_en_syspm_callback_mode_t |