Functions | |
cy_en_sysanalog_status_t | Cy_SysAnalog_Init (const cy_stc_sysanalog_config_t *config) |
Initialize the AREF block. More... | |
__STATIC_INLINE void | Cy_SysAnalog_DeInit (void) |
Reset AREF configuration back to power on reset defaults. More... | |
__STATIC_INLINE uint32_t | Cy_SysAnalog_GetIntrCause (void) |
Return the PASS interrupt cause register value. More... | |
__STATIC_INLINE void | Cy_SysAnalog_SetDeepSleepMode (cy_en_sysanalog_deep_sleep_t deepSleep) |
Set what parts of the AREF are enabled in Deep Sleep mode. More... | |
__STATIC_INLINE cy_en_sysanalog_deep_sleep_t | Cy_SysAnalog_GetDeepSleepMode (void) |
Return Deep Sleep mode configuration as set by Cy_SysAnalog_SetDeepSleepMode. More... | |
__STATIC_INLINE void | Cy_SysAnalog_Enable (void) |
Enable the AREF hardware block. More... | |
__STATIC_INLINE void | Cy_SysAnalog_Disable (void) |
Disable the AREF hardware block. More... | |
__STATIC_INLINE void | Cy_SysAnalog_SetArefMode (cy_en_sysanalog_startup_t startup) |
Set the AREF startup mode from power on reset or from Deep Sleep wakeup. More... | |
__STATIC_INLINE void | Cy_SysAnalog_VrefSelect (cy_en_sysanalog_vref_source_t vref) |
Set the source for the Vref. More... | |
__STATIC_INLINE void | Cy_SysAnalog_IztatSelect (cy_en_sysanalog_iztat_source_t iztat) |
Set the source for the 1 uA IZTAT. More... | |
cy_en_sysanalog_status_t Cy_SysAnalog_Init | ( | const cy_stc_sysanalog_config_t * | config | ) |
Initialize the AREF block.
config | Pointer to structure containing configuration data. See cy_stc_sysanalog_config_t |
__STATIC_INLINE void Cy_SysAnalog_DeInit | ( | void | ) |
Reset AREF configuration back to power on reset defaults.
__STATIC_INLINE uint32_t Cy_SysAnalog_GetIntrCause | ( | void | ) |
Return the PASS interrupt cause register value.
There are two interrupts in the PASS:
Compare this returned value with the enum values in cy_en_sysanalog_intr_cause_t to determine which block caused/triggered the interrupt.
__STATIC_INLINE void Cy_SysAnalog_SetDeepSleepMode | ( | cy_en_sysanalog_deep_sleep_t | deepSleep | ) |
Set what parts of the AREF are enabled in Deep Sleep mode.
deepSleep | Select a value from cy_en_sysanalog_deep_sleep_t |
__STATIC_INLINE cy_en_sysanalog_deep_sleep_t Cy_SysAnalog_GetDeepSleepMode | ( | void | ) |
Return Deep Sleep mode configuration as set by Cy_SysAnalog_SetDeepSleepMode.
__STATIC_INLINE void Cy_SysAnalog_Enable | ( | void | ) |
Enable the AREF hardware block.
__STATIC_INLINE void Cy_SysAnalog_Disable | ( | void | ) |
Disable the AREF hardware block.
__STATIC_INLINE void Cy_SysAnalog_SetArefMode | ( | cy_en_sysanalog_startup_t | startup | ) |
Set the AREF startup mode from power on reset or from Deep Sleep wakeup.
The AREF can startup in a normal or fast mode.
If fast startup is desired from Deep Sleep wakeup, the IPTAT generators must be enabled during Deep Sleep. This is a minimum Deep Sleep mode setting of CY_SYSANALOG_DEEPSLEEP_IPTAT_1 (see also Cy_SysAnalog_SetDeepSleepMode).
startup | Value from enum cy_en_sysanalog_startup_t |
__STATIC_INLINE void Cy_SysAnalog_VrefSelect | ( | cy_en_sysanalog_vref_source_t | vref | ) |
Set the source for the Vref.
The Vref can come from:
The locally generated reference has higher accuracy, more stability over temperature, and lower noise than the SRSS reference.
vref | Value from enum cy_en_sysanalog_vref_source_t |
__STATIC_INLINE void Cy_SysAnalog_IztatSelect | ( | cy_en_sysanalog_iztat_source_t | iztat | ) |
Set the source for the 1 uA IZTAT.
The IZTAT can come from:
The locally generated reference has higher accuracy, more stability over temperature, and lower noise than the SRSS reference.
iztat | Value from enum cy_en_sysanalog_iztat_source_t |