The AC operation status, see cy_stc_autanalog_state_ac_t::status, for more details, refer to the device Architecture Technical Reference Manual.
| Enumerator | |
|---|---|
| CY_AUTANALOG_AC_STATUS_STOPPED | The AC is idle. |
| CY_AUTANALOG_AC_STATUS_RUNNING | The AC is running. |
| CY_AUTANALOG_AC_STATUS_PAUSED | The AC is paused. |
The set of masks to control the four GPIO outputs with the AC, see cy_stc_autanalog_ac_t::gpioOutEn, for more details, refer to the device Architecture Technical Reference Manual.
The set of ACTIONS for the AC to change the STT state, for more details, refer to the device Architecture Technical Reference Manual, State Transition Table chapter and cy_stc_autanalog_stt_ac_t::condition field in the AC STT.
| Enumerator | |
|---|---|
| CY_AUTANALOG_STT_AC_ACTION_STOP | Stop the AC. |
| CY_AUTANALOG_STT_AC_ACTION_NEXT | Proceed to the next state in the STT. |
| CY_AUTANALOG_STT_AC_ACTION_WAIT_FOR | Wait (indefinitely) for the associated CONDITION to be TRUE before moving to the next state, see cy_stc_autanalog_stt_ac_t::condition. |
| CY_AUTANALOG_STT_AC_ACTION_BRANCH_IF_TRUE | Check if CONDITION has occurred If it occurred, take the indicated branch cy_stc_autanalog_stt_ac_t::branchState, if not, proceed to the next state. |
| CY_AUTANALOG_STT_AC_ACTION_BRANCH_IF_FALSE | Check if CONDITION has occurred If it occurred, proceed to the next state, if not, take the indicated branch cy_stc_autanalog_stt_ac_t::branchState.
|
| CY_AUTANALOG_STT_AC_ACTION_BRANCH_IF_TRUE_CLR | Check if CONDITION has occurred If it occurred, take the indicated branch cy_stc_autanalog_stt_ac_t::branchState, if not, proceed to the next state.
|
| CY_AUTANALOG_STT_AC_ACTION_BRANCH_IF_FALSE_CLR | Check if CONDITION has occurred If it occurred proceed to the next state, if not, take the indicated branch.
|
The set of CONDITIONS (events) for the AC to change the STT state, for more details, refer to the device Architecture Technical Reference Manual, State Transition Table chapter and cy_stc_autanalog_stt_ac_t::condition field in the AC STT.
| Enumerator | |
|---|---|
| CY_AUTANALOG_STT_AC_CONDITION_FALSE | Unconditionally FALSE. |
| CY_AUTANALOG_STT_AC_CONDITION_TRUE | Unconditionally TRUE. |
| CY_AUTANALOG_STT_AC_CONDITION_BLOCK_READY | Enabled subsystems of the Autonomous Analog are initialized and ready for use. |
| CY_AUTANALOG_STT_AC_CONDITION_CNT_DONE | Run-out for an interval timer if the ACTION is WAIT_FOR, or run-out for a loop counter, if the ACTION is BRANCH IF (cy_en_autanalog_stt_ac_action_t) |
| CY_AUTANALOG_STT_AC_CONDITION_SAR_DONE | SAR Sequencer DONE. This status is sticky. It is set by the SAR when finishing a state in the SAR sequencer table (HS/LP) where NEXT_STATE cy_stc_autanalog_sar_seq_tab_hs_t::nextAction or cy_stc_autanalog_sar_seq_tab_lp_t::nextAction is set to STOP. Do not use this field if the SAR is configured for CONTINUOUS operation (i.e. NEXT_STATE is set to GO_TO_ENTRY_ADDRESS, see cy_en_autanalog_sar_next_act_t).
|
| CY_AUTANALOG_STT_AC_CONDITION_SAR_EOS | SAR End of Scan (EOS). This status is sticky. It is set by the SAR when finishing the state in the SAR sequencer table (HS/LP) NEXT_STATE cy_stc_autanalog_sar_seq_tab_hs_t::nextAction or cy_stc_autanalog_sar_seq_tab_lp_t::nextAction is set to GO_TO_ENTRY_ADDRESS or STOP, see cy_en_autanalog_sar_next_act_t. The status is cleared by the AC when executing an AC state with the CONDITION programmed to SAR_EOS.
|
| CY_AUTANALOG_STT_AC_CONDITION_SAR_RANGE0 | SAR Range 0 detection. This status is sticky. It is set by the SAR if the RANGE0 condition is met for a given channel with range 0 status enabled: cy_stc_autanalog_sar_mux_chan_t::muxLimit is equal to CY_AUTANALOG_SAR_LIMIT_STATUS_STC0 for LP/HS modes OR cy_stc_autanalog_sar_hs_chan_t::hsLimit is equal to CY_AUTANALOG_SAR_LIMIT_STATUS_STC0 for HS mode.
|
| CY_AUTANALOG_STT_AC_CONDITION_SAR_RANGE1 | SAR Range 1 detection. It is similar to range 0 detection. |
| CY_AUTANALOG_STT_AC_CONDITION_SAR_RANGE2 | SAR Range 2 detection. It is similar to range 0 detection. |
| CY_AUTANALOG_STT_AC_CONDITION_SAR_RANGE3 | SAR Range 3 detection. It is similar to range 0 detection. |
| CY_AUTANALOG_STT_AC_CONDITION_SAR_BUSY | SAR BUSY detection. This status is set whenever the SAR is running a scan. This status is transparent from the SAR sequencer (i.e. the status is not sticky). |
| CY_AUTANALOG_STT_AC_CONDITION_SAR_FIR0_DONE | SAR FIR0 done detection. This status is sticky. It is set by the SAR FIR0 block whenever FIR0 produces a valid output.
|
| CY_AUTANALOG_STT_AC_CONDITION_SAR_FIR1_DONE | SAR FIR1 done detection. It is similar to FIR0 done detection. |
| CY_AUTANALOG_STT_AC_CONDITION_SAR_FIFO_DONE | SAR FIFO done. This status is SAR_DONE ANDED with FIFO writing complete. Do not use this field if the SAR is configured for for CONTINUOUS operation (i.e. NEXT_STATE is set to GO_TO_ENTRY_ADDRESS, see cy_en_autanalog_sar_next_act_t) since SAR_DONE is never asserted. In that case, use the appropriate FIFO_LEVEL triggers.
|
| CY_AUTANALOG_STT_AC_CONDITION_SAR_FIR0_FIFO_DONE | SAR FIR0 FIFO done detection. This status is sticky. It is set by the SAR FIR0 block whenever FIR0 data has been written into the FIFO. When using this bit, it is expected that FIR0 writes to the FIFO only once in a given SAR scan.
|
| CY_AUTANALOG_STT_AC_CONDITION_SAR_FIR1_FIFO_DONE | SAR FIR1 FIFO done detection. It is similar to SAR FIR0 FIFO done detection. |
| CY_AUTANALOG_STT_AC_CONDITION_PTCOMP_STROBE0 | PTComp Post Processor 0 Strobe. This status is set whenever the PTComp Post Processor 0 has valid data. This status is transparent from the PTComp post processor (i.e. the status is not sticky). The AC needs to poll this status (i.e. ACTION is WAIT_FOR and CONDITION is PTCOMP_STROBE0) prior to checking PTC_RANGE0. |
| CY_AUTANALOG_STT_AC_CONDITION_PTCOMP_STROBE1 | PTComp Post Processor 1 Strobe. It is similar to PTComp Post Processor 0 Strobe. |
| CY_AUTANALOG_STT_AC_CONDITION_PTCOMP_CMP0 | PTComp COMP0 output. This status is sticky. It is set by the PTComp Comparator 0 if the condition is met. (Cy_AutAnalog_PTComp_Read). The status is cleared by the AC when any of the following occur:
|
| CY_AUTANALOG_STT_AC_CONDITION_PTCOMP_CMP1 | PTComp COMP1 output. It is similar to PTComp COMP1 output. |
| CY_AUTANALOG_STT_AC_CONDITION_PTCOMP_RANGE0 | PTComp Post Processor 0 Range output. This status is sticky. It is set by the PTComp Post Processor if the RANGE0 condition is met (cy_stc_autanalog_ptcomp_comp_pp_t::limitCondition). The status is cleared by the AC when any of the following occur:
|
| CY_AUTANALOG_STT_AC_CONDITION_PTCOMP_RANGE1 | PTComp Post Processor 1 Range output. It is similar to PTComp Post Processor 0 Range output. |
| CY_AUTANALOG_STT_AC_CONDITION_CTB0_CMP0 | CTB0 COMP0 output. This status is sticky. It is set by the CTB0 Opamp0 Comparator if the condition is met (cy_stc_autanalog_ctb_sta_t::intComp0).
|
| CY_AUTANALOG_STT_AC_CONDITION_CTB0_CMP1 | CTB0 COMP1 output. It is similar to CTB0 COMP0 output. |
| CY_AUTANALOG_STT_AC_CONDITION_CTB1_CMP0 | CTB1 COMP0 output. It is similar to CTB0 COMP0 output. |
| CY_AUTANALOG_STT_AC_CONDITION_CTB1_CMP1 | CTB1 COMP1 output. It is similar to CTB0 COMP0 output. |
| CY_AUTANALOG_STT_AC_CONDITION_CHIP_ACTIVE | Chip Active Mode Status. This status is set whenever the system is operating in Active Mode (this includes all Low Power active modes) |
| CY_AUTANALOG_STT_AC_CONDITION_CHIP_DEEPSLEEP | Chip DeepSleep Mode Status. This status is set whenever the system is operating in DeepsSeep Mode (this includes all RAM power modes in DeepSleep) |
| CY_AUTANALOG_STT_AC_CONDITION_TR_AUTANALOG_IN0 | External trigger 0 (or the FW trigger 0). This status is sticky. It is set by the either the external hardware trigger 0 or FW trigger 0 asserting.
|
| CY_AUTANALOG_STT_AC_CONDITION_TR_AUTANALOG_IN1 | External trigger 1 (or the FW trigger 1). It is similar to External trigger 0. |
| CY_AUTANALOG_STT_AC_CONDITION_TR_AUTANALOG_IN2 | External trigger 2 (or the FW trigger 2). It is similar to External trigger 0. |
| CY_AUTANALOG_STT_AC_CONDITION_TR_AUTANALOG_IN3 | External trigger 3 (or the FW trigger 3). It is similar to External trigger 0. |
| CY_AUTANALOG_STT_AC_CONDITION_TR_AUTANALOG_IN_WAKE | External Trigger Wake-up Source. This condition is used to put the AC to sleep.
|
| CY_AUTANALOG_STT_AC_CONDITION_TIMER_DONE_WAKE | Timer Wakeup Source. This condition is used to put the AC to sleep. The AC will wake from sleep when the Wake-up Timer reaches terminal count (cy_stc_autanalog_state_t::tc).
|
| CY_AUTANALOG_STT_AC_CONDITION_CTB0_CMP0_WAKE | CTB0 comparator 0 wake-up. This condition is used to put the AC to sleep. The AC will wake up when CTB0 Comparator 0 meets the configured wake-up condition.
|
| CY_AUTANALOG_STT_AC_CONDITION_CTB0_CMP1_WAKE | CTB0 comparator 1 wake-up. It is similar to CTB0 comparator 0 wake-up. |
| CY_AUTANALOG_STT_AC_CONDITION_CTB1_CMP0_WAKE | CTB1 comparator 0 wake-up. It is similar to CTB0 comparator 0 wake-up. |
| CY_AUTANALOG_STT_AC_CONDITION_CTB1_CMP1_WAKE | CTB1 comparator 1 wake-up. It is similar to CTB0 comparator 0 wake-up. |
| CY_AUTANALOG_STT_AC_CONDITION_PTCOMP_CMP0_WAKE | PTComp comparator 0 wake-up. This condition is used to put the AC to sleep. The AC will wake up when PTComp Comparator 0 meets the configured wake-up condition.
|
| CY_AUTANALOG_STT_AC_CONDITION_PTCOMP_CMP1_WAKE | PTComp comparator 1 wake-up. It is similar to PTComp comparator 0 wake-up. |
| CY_AUTANALOG_STT_AC_CONDITION_FIFO_LEVEL0 | FIFO Level 0 trigger. This status is transparent from the FIFO (i.e. the status is not sticky). This status is set whenever FIFO0 level condition has been met (cy_stc_autanalog_fifo_cfg_t::level). |
| CY_AUTANALOG_STT_AC_CONDITION_FIFO_LEVEL1 | FIFO Level 1 trigger. It is similar to FIFO Level 0 trigger.
|
| CY_AUTANALOG_STT_AC_CONDITION_FIFO_LEVEL2 | FIFO Level 2 trigger. It is similar to FIFO Level 0 trigger.
|
| CY_AUTANALOG_STT_AC_CONDITION_FIFO_LEVEL3 | FIFO Level 3 trigger. It is similar to FIFO Level 0 trigger.
|
| CY_AUTANALOG_STT_AC_CONDITION_FIFO_LEVEL4 | FIFO Level 4 trigger. It is similar to FIFO Level 0 trigger.
|
| CY_AUTANALOG_STT_AC_CONDITION_FIFO_LEVEL5 | FIFO Level 5 trigger. It is similar to FIFO Level 0 trigger.
|
| CY_AUTANALOG_STT_AC_CONDITION_FIFO_LEVEL6 | FIFO Level 6 trigger. It is similar to FIFO Level 0 trigger.
|
| CY_AUTANALOG_STT_AC_CONDITION_FIFO_LEVEL7 | FIFO Level 7 trigger. It is similar to FIFO Level 0 trigger.
|
| CY_AUTANALOG_STT_AC_CONDITION_DAC0_RANGE0 | DAC0 Range 0 detection. This status is sticky. It is set by the DAC0 if the RANGE0 condition is met for a given channel with range 0 status enabled (i.e. cy_stc_autanalog_dac_ch_t::statSel). This status is not used when DAC0 is configured for FW mode.
|
| CY_AUTANALOG_STT_AC_CONDITION_DAC0_RANGE1 | DAC0 Range 1 detection. It is similar to DAC0 Range 0 detection |
| CY_AUTANALOG_STT_AC_CONDITION_DAC0_RANGE2 | DAC0 Range 2 detection. It is similar to DAC0 Range 0 detection |
| CY_AUTANALOG_STT_AC_CONDITION_DAC0_EPOCH | DAC0 End of Waveform event. This status is sticky. It is set by the DAC when finishing a waveform. This condition is only used if the DAC channel (pointed to by the AC when triggered) is configured for LUT mode.
|
| CY_AUTANALOG_STT_AC_CONDITION_DAC0_STROBE | DAC0 Strobe. This status is transparent from the DAC (i.e. the status is not sticky). This status is set whenever the DAC output has been updated. This status is typically used by the AC to poll when the DAC has responded to the DAC_INC/DAC_DEC fields.
|
| CY_AUTANALOG_STT_AC_CONDITION_DAC1_RANGE0 | DAC1 Range 0 detection. It is similar to DAC0 Range 0 detection. |
| CY_AUTANALOG_STT_AC_CONDITION_DAC1_RANGE1 | DAC1 Range 1 detection. It is similar to DAC0 Range 1 detection. |
| CY_AUTANALOG_STT_AC_CONDITION_DAC1_RANGE2 | DAC1 Range 2 detection. It is similar to DAC0 Range 2 detection. |
| CY_AUTANALOG_STT_AC_CONDITION_DAC1_EPOCH | DAC1 End of Waveform event. It is similar to DAC0 End of Waveform event. |
| CY_AUTANALOG_STT_AC_CONDITION_DAC1_STROBE | DAC1 Strobe. It is similar to DAC0 Strobe. |
The AC FW input triggers, Cy_AutAnalog_FwTrigger, for more details, refer to the device Architecture Technical Reference Manual.
| Enumerator | |
|---|---|
| CY_AUTANALOG_FW_TRIGGER0 | FW trigger 0. |
| CY_AUTANALOG_FW_TRIGGER1 | FW trigger 1. |
| CY_AUTANALOG_FW_TRIGGER2 | FW trigger 2. |
| CY_AUTANALOG_FW_TRIGGER3 | FW trigger 3. |
The AC output triggers, Cy_AutAnalog_GetOutputTriggerMask and Cy_AutAnalog_SetOutputTriggerMask, for more details, refer to the device Architecture Technical Reference Manual.
The set of masks to control the AC output trigger, see cy_stc_autanalog_ac_t::mask and Cy_AutAnalog_GetOutputTriggerMask, Cy_AutAnalog_SetOutputTriggerMask.
For more details, refer to the device Architecture Technical Reference Manual.
| Enumerator | |
|---|---|
| CY_AUTANALOG_AC_OUT_TRIG_MASK_EMPTY | The output trigger is disabled. |
| CY_AUTANALOG_AC_OUT_TRIG_MASK_CTB0_COMP0 | The CTB0, Comp0 trigger. It is generated by the CTB0 Opamp0 Comparator if the condition is met (i.e. cy_stc_autanalog_ctb_sta_t::intComp0) |
| CY_AUTANALOG_AC_OUT_TRIG_MASK_CTB0_COMP1 | The CTB0, Comp1 trigger. It is generated by the CTB0 Opamp1 Comparator if the condition is met (i.e. cy_stc_autanalog_ctb_sta_t::intComp1) |
| CY_AUTANALOG_AC_OUT_TRIG_MASK_CTB1_COMP0 | The CTB1, Comp0 trigger. It is similar to CTB0, Comp0 trigger. |
| CY_AUTANALOG_AC_OUT_TRIG_MASK_CTB1_COMP1 | The CTB1, Comp1 trigger. It is similar to CTB1, Comp1 trigger. |
| CY_AUTANALOG_AC_OUT_TRIG_MASK_PTCOMP_CMP0 | The PTComp Comp0 trigger. It is set by the PTComp Comparator 0 if the condition is met (cy_stc_autanalog_ptcomp_comp_sta_t::compEdgeComp0). |
| CY_AUTANALOG_AC_OUT_TRIG_MASK_PTCOMP_CMP1 | The PTComp Comp1 trigger. It is similar to PTComp Comp0 trigger. |
| CY_AUTANALOG_AC_OUT_TRIG_MASK_PTCOMP_RANGE0 | The PTComp Post Processor 0 Range trigger It is generated by the PTComp Post Processor if the RANGE0 condition is met (cy_stc_autanalog_ptcomp_comp_pp_t::limitCondition) |
| CY_AUTANALOG_AC_OUT_TRIG_MASK_PTCOMP_RANGE1 | The PTComp Post Processor 1 Range trigger. It is similar to PTComp Post Processor 0 Range trigger. |
| CY_AUTANALOG_AC_OUT_TRIG_MASK_DAC0_RANGE0 | The DAC0 Range 0 trigger. It is generated by the DAC0 if the RANGE0 condition is met for a given channel with range 0 status enabled (cy_stc_autanalog_dac_ch_t::statSel).
|
| CY_AUTANALOG_AC_OUT_TRIG_MASK_DAC0_RANGE1 | The DAC0 Range 1 trigger. It is similar to DAC0 Range 0 trigger. |
| CY_AUTANALOG_AC_OUT_TRIG_MASK_DAC0_RANGE2 | The DAC0 Range 2 trigger. It is similar to DAC0 Range 0 trigger. |
| CY_AUTANALOG_AC_OUT_TRIG_MASK_DAC0_EPOCH | The DAC0 End of Waveform trigger. It is generated by DAC0 when finishing a waveform. This condition is only used if the DAC0 channel (pointed to by the AC when triggered) is configured for LUT mode. |
| CY_AUTANALOG_AC_OUT_TRIG_MASK_DAC1_RANGE0 | The DAC1 Range 0 trigger. It is similar to DAC0 Range 0 trigger. |
| CY_AUTANALOG_AC_OUT_TRIG_MASK_DAC1_RANGE1 | The DAC1 Range 1 trigger. It is similar to DAC0 Range 1 trigger. |
| CY_AUTANALOG_AC_OUT_TRIG_MASK_DAC1_RANGE2 | The DAC1 Range 2 trigger. It is similar to DAC0 Range 2 trigger. |
| CY_AUTANALOG_AC_OUT_TRIG_MASK_DAC1_EPOCH | The DAC1 End of Waveform trigger. It is similar to DAC0 End of Waveform trigger. |
| CY_AUTANALOG_AC_OUT_TRIG_MASK_FIFO_LEVEL0 | The FIFO Level 0 trigger. This is a level-sensitive trigger that is generated by the FIFO whenever FIFO 0 meets the condition cy_stc_autanalog_fifo_cfg_t::level |
| CY_AUTANALOG_AC_OUT_TRIG_MASK_SAR_DONE | The SAR Sequencer Done trigger. This trigger is set by the SAR when finishing a state in the SAR sequencer table (HS or LP) where cy_stc_autanalog_sar_seq_tab_hs_t::nextAction or cy_stc_autanalog_sar_seq_tab_lp_t::nextAction is set to STOP.
|
| CY_AUTANALOG_AC_OUT_TRIG_MASK_SAR_EOS | The SAR Sequencer EOS trigger. This trigger is set by the SAR when finishing the state in the SAR sequencer table (HS or LP) where cy_stc_autanalog_sar_seq_tab_hs_t::nextAction or cy_stc_autanalog_sar_seq_tab_lp_t::nextAction is set to GO_TO_ENTRY_ADDRESS or STOP.
|
| CY_AUTANALOG_AC_OUT_TRIG_MASK_FIFO_LEVEL1 | The FIFO Level 1 trigger. It is similar to FIFO Level 0 trigger.
|
| CY_AUTANALOG_AC_OUT_TRIG_MASK_SAR_RANGE0 | The SAR, range 0. |
| CY_AUTANALOG_AC_OUT_TRIG_MASK_SAR_RANGE1 | The SAR, range 1. |
| CY_AUTANALOG_AC_OUT_TRIG_MASK_SAR_RANGE2 | The SAR, range 2. |
| CY_AUTANALOG_AC_OUT_TRIG_MASK_SAR_RANGE3 | The SAR, range 3. |
| CY_AUTANALOG_AC_OUT_TRIG_MASK_FIFO_LEVEL2 | The FIFO Level 2 trigger. It is similar to FIFO Level 0 trigger.
|
| CY_AUTANALOG_AC_OUT_TRIG_MASK_FIFO_LEVEL3 | The FIFO Level 3 trigger. It is similar to FIFO Level 0 trigger.
|
| CY_AUTANALOG_AC_OUT_TRIG_MASK_FIFO_LEVEL4 | The FIFO Level 4 trigger. It is similar to FIFO Level 0 trigger.
|
| CY_AUTANALOG_AC_OUT_TRIG_MASK_FIFO_LEVEL5 | The FIFO Level 5 trigger. It is similar to FIFO Level 0 trigger.
|
| CY_AUTANALOG_AC_OUT_TRIG_MASK_FIFO_LEVEL6 | The FIFO Level 6 trigger. It is similar to FIFO Level 0 trigger.
|
| CY_AUTANALOG_AC_OUT_TRIG_MASK_FIFO_LEVEL7 | The FIFO Level 7 trigger. It is similar to FIFO Level 0 trigger.
|
| CY_AUTANALOG_AC_OUT_TRIG_MASK_AC | The AC trigger. This trigger is set by the AC whenever executing a state with cy_stc_autanalog_stt_ac_t::trigInt = true. |
The AC clock source for wake-up Timer, see cy_stc_autanalog_timer_t::clkSrc, for more details, refer to the device Architecture Technical Reference Manual.
| Enumerator | |
|---|---|
| CY_AUTANALOG_TIMER_CLK_LP | The Timer clocked from CLK_LPOSC (nominally 4.096MHz) |
| CY_AUTANALOG_TIMER_CLK_LF | The Timer clocked from CLK_LF (nominally 32kHz) |