API Reference | |
Low Power Oscillator Functions | |
Timer Functions | |
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_GetIntrCauseExtended (const PASS_Type *base) |
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_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_DeepSleepInit (PASS_Type *base, const cy_stc_sysanalog_deep_sleep_config_t *config) |
Initialize PASS_ver2 Deep Sleep features such as Low Power Oscillator, Deep Sleep Clock, Timer. 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_GetIntrCauseExtended | ( | const PASS_Type * | base | ) |
Return the PASS interrupt cause register value.
Depending on the device, there may be interrupts from these PASS blocks:
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_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 |
cy_en_sysanalog_status_t Cy_SysAnalog_DeepSleepInit | ( | PASS_Type * | base, |
const cy_stc_sysanalog_deep_sleep_config_t * | config | ||
) |
Initialize PASS_ver2 Deep Sleep features such as Low Power Oscillator, Deep Sleep Clock, Timer.
base | Pointer to the PASS register structure. |
config | Pointer to structure containing configuration data. See cy_stc_sysanalog_deep_sleep_config_t |