Enumerations | |
enum | cy_en_sysanalog_status_t { CY_SYSANALOG_SUCCESS = 0x00uL, CY_SYSANALOG_BAD_PARAM = CY_SYSANALOG_ID | CY_PDL_STATUS_ERROR | 0x01uL } |
The AREF status/error code definitions. More... | |
enum | cy_en_sysanalog_startup_t { CY_SYSANALOG_STARTUP_NORMAL = 0uL, CY_SYSANALOG_STARTUP_FAST = 1uL << PASS_AREF_AREF_CTRL_AREF_MODE_Pos } |
Aref startup mode from power on reset and from Deep Sleep wakeup. More... | |
enum | cy_en_sysanalog_vref_source_t { CY_SYSANALOG_VREF_SOURCE_SRSS = 0uL, CY_SYSANALOG_VREF_SOURCE_LOCAL_1_2V = 1uL << PASS_AREF_AREF_CTRL_VREF_SEL_Pos, CY_SYSANALOG_VREF_SOURCE_EXTERNAL = 2uL << PASS_AREF_AREF_CTRL_VREF_SEL_Pos } |
AREF voltage reference sources. More... | |
enum | cy_en_sysanalog_iztat_source_t { CY_SYSANALOG_IZTAT_SOURCE_SRSS = 0uL, CY_SYSANALOG_IZTAT_SOURCE_LOCAL = 1uL << PASS_AREF_AREF_CTRL_IZTAT_SEL_Pos } |
AREF IZTAT sources. More... | |
enum | cy_en_sysanalog_deep_sleep_t { CY_SYSANALOG_DEEPSLEEP_DISABLE = 0uL, CY_SYSANALOG_DEEPSLEEP_IPTAT_1, CY_SYSANALOG_DEEPSLEEP_IPTAT_2, CY_SYSANALOG_DEEPSLEEP_IPTAT_IZTAT_VREF } |
AREF Deep Sleep mode. More... | |
enum | cy_en_sysanalog_intr_cause_t { CY_SYSANALOG_INTR_CAUSE_CTB0 = PASS_INTR_CAUSE_CTB0_INT_Msk, CY_SYSANALOG_INTR_CAUSE_CTB1 = PASS_INTR_CAUSE_CTB1_INT_Msk, CY_SYSANALOG_INTR_CAUSE_CTB2 = PASS_INTR_CAUSE_CTB2_INT_Msk, CY_SYSANALOG_INTR_CAUSE_CTB3 = PASS_INTR_CAUSE_CTB3_INT_Msk, CY_SYSANALOG_INTR_CAUSE_CTDAC0 = PASS_INTR_CAUSE_CTDAC0_INT_Msk, CY_SYSANALOG_INTR_CAUSE_CTDAC1 = PASS_INTR_CAUSE_CTDAC1_INT_Msk, CY_SYSANALOG_INTR_CAUSE_CTDAC2 = PASS_INTR_CAUSE_CTDAC2_INT_Msk, CY_SYSANALOG_INTR_CAUSE_CTDAC3 = PASS_INTR_CAUSE_CTDAC3_INT_Msk } |
Interrupt cause sources. More... | |
Aref startup mode from power on reset and from Deep Sleep wakeup.
To achieve the fast startup time (10 us) from Deep Sleep wakeup, the IPTAT generators must be enabled in Deep Sleep mode (see cy_en_sysanalog_deep_sleep_t).
The fast startup is the recommended mode.
Enumerator | |
---|---|
CY_SYSANALOG_STARTUP_NORMAL | Normal startup. |
CY_SYSANALOG_STARTUP_FAST | Fast startup (10 us) - recommended. |
AREF voltage reference sources.
The voltage reference can come from three sources:
AREF IZTAT sources.
The AREF generates a 1 uA "Zero dependency To Absolute Temperature" (IZTAT) current reference that is independent of temperature variations. It can come from one of two sources:
Enumerator | |
---|---|
CY_SYSANALOG_IZTAT_SOURCE_SRSS | Use 250 nA IZTAT from SRSS and gain by 4 to output 1 uA. |
CY_SYSANALOG_IZTAT_SOURCE_LOCAL | Use locally generated 1 uA IZTAT. |
AREF Deep Sleep mode.
Configure what part of the AREF block is enabled in Deep Sleep mode.
Interrupt cause sources.
There are two interrupts in the PASS:
A device could potentially have more than one instance of each IP block, CTB or CTDAC. To find out which instance caused the interrupt, call Cy_SysAnalog_GetIntrCause and compare the returned result with one of these enum values.