| Data Fields |
|
bool |
unlock |
AC mode unlock:
- FALSE - Locked:
the AC operating mode will NOT be taken into account in the corresponding state of STT
- TRUE - Unlocked:
the AC operating mode will be used in the STT corresponding state
|
|
bool |
lpMode |
The operational mode of the Autonomous Analog.
- FALSE - HS mode;
TRUE - LP mode;
- Note
- In HS mode, the AC is clocked from CLK_HF directly (nominally 80MHz) and functions only in chip Active mode (i.e. the IP is reset in chip DeepSleep and Hibernate).
-
In LP mode, the AC is clocked from CLK_LPOSC (4.096MHz) and functions only in chip Active and Deep Sleep mode (i.e. the IP is only reset in Hibernate).
|
|
cy_en_autanalog_stt_ac_condition_t |
condition |
The AC CONDITION in the corresponding state of the STT. |
|
cy_en_autanalog_stt_ac_action_t |
action |
The AC ACTION in the corresponding state of the STT. |
|
uint8_t |
branchState |
The AC branch state depends on cy_stc_autanalog_stt_ac_t::condition. The range is 0 to 63 - Note
- This field in only used if the AC ACTION is set to BRANCH_IF_* and the CONDITION is met.
|
|
bool |
trigInt |
AC Interrupt Set. This field is used for setting the AC Interrupt and/or trigger. When set in a particular state, the AC generates a single cycle pulse to the interrupt logic. The AC interrupt or AC trigger must be unmasked for this field to generate an interrupt/trigger. - Note
- If ACTION is WAIT_FOR, the single cycle pulse is generated after the CONDITION occurs, otherwise the single cycle pulse is sent immediately upon entering the state where the field is set.
|
|
uint16_t |
count |
This field is used to set the value for both interval and loop counts. The actual count is CNT + 1. Therefore, the range is 1 to 4096. The value of 1 is degenerate. - Note
- This field is only valid if the ACTION is set to WAIT_FOR or BRANCH_IF_* and the CONDITION is set to CNT_DONE.
-
If ACTION is set to WAIT_FOR, the counter is first loaded with CNT + 1 and is subsequently decremented every clock cycle (clock set by cy_stc_autanalog_stt_ac_t::lpMode). On terminal count, the CNT_DONE trigger is asserted.
-
If ACTION is set to BRANCH_IF_*, the counter is first checked if it is busy (count value is non-zero). If busy, the counter is decremented. If not busy, the counter is loaded with CNT + 1. On terminal count, the CNT_DONE trigger is asserted.
|
|
bool |
unlockGpioOut |
Unlock the AC digital output:
|
|
cy_en_autanalog_stt_ac_gpio_out_t |
gpioOut |
The Autonomous Analog data out generation (the corresponding bit in cy_stc_autanalog_ac_t::gpioOutEn must be set when using this field). - Note
- The data out bus is driven directly to the GPIO HSIO interface. The HSIO interface must be programmed properly for the DOUT bus to be observed on the GPIO pins.
|