Functions | |
void | Cy_SysPm_BackupSetSupply (cy_en_syspm_vddbackup_control_t vddBackControl) |
Sets the backup supply (Vddback) operation mode. More... | |
cy_en_syspm_vddbackup_control_t | Cy_SysPm_BackupGetSupply (void) |
Returns the current backup supply (Vddback) operation mode. More... | |
void | Cy_SysPm_BackupEnableVoltageMeasurement (void) |
This function enables Vbackup supply measurement by the ADC. More... | |
void | Cy_SysPm_BackupDisableVoltageMeasurement (void) |
The function disables Vbackup supply measurement by the ADC by disconnecting the Vbackup supply from AMuxBusA. More... | |
void | Cy_SysPm_BackupSuperCapCharge (cy_en_syspm_sc_charge_key_t key) |
Configures the supercapacitor charger circuit. More... | |
void | Cy_SysPm_BackupWordStore (uint32_t wordIndex, uint32_t *wordSrcPointer, uint32_t wordSize) |
Stores supported number of words(SRSS_BACKUP_NUM_BREG) in Backup Domain. More... | |
void | Cy_SysPm_BackupWordReStore (uint32_t wordIndex, uint32_t *wordDstPointer, uint32_t wordSize) |
Restores supported number of words(SRSS_BACKUP_NUM_BREG) in Backup Domain. More... | |
cy_en_syspm_status_t | Cy_SysPm_SetupDeepSleepRAM (cy_en_syspm_dsram_checks_t dsramCheck, uint32_t *dsramIntState) |
Implements Pre and Post Deepsleep RAM Setup. More... | |
cy_en_syspm_status_t | Cy_SysPm_CpuEnterRAMOffDeepSleep (void) |
Sets executing CPU to the Deep Sleep mode forceful RAM OFF. More... | |
void Cy_SysPm_BackupSetSupply | ( | cy_en_syspm_vddbackup_control_t | vddBackControl | ) |
Sets the backup supply (Vddback) operation mode.
vddBackControl | Selects backup supply (Vddback) operation mode. See cy_en_syspm_vddbackup_control_t. |
Refer to device TRM for more detail about backup supply modes. Will do nothing if device TRM denotes VDDBAK_CTL register field is unavailable.
cy_en_syspm_vddbackup_control_t Cy_SysPm_BackupGetSupply | ( | void | ) |
Returns the current backup supply (Vddback) operation mode.
Refer to device TRM for more detail about backup supply modes.
void Cy_SysPm_BackupEnableVoltageMeasurement | ( | void | ) |
This function enables Vbackup supply measurement by the ADC.
The function connects the Vbackup supply to AMuxBusA. The ADC input can then be connected to AMuxBusA. Note that the measured signal is scaled by 10% to allow full range measurement by the ADC.
Refer to device TRM for more detail about backup supply modes. Will do nothing if device TRM denotes VBACKUP_MEAS register field is unavailable.
void Cy_SysPm_BackupDisableVoltageMeasurement | ( | void | ) |
The function disables Vbackup supply measurement by the ADC by disconnecting the Vbackup supply from AMuxBusA.
Refer to device TRM for more detail about backup supply modes. Will do nothing if device TRM denotes VBACKUP_MEAS register field is unavailable.
void Cy_SysPm_BackupSuperCapCharge | ( | cy_en_syspm_sc_charge_key_t | key | ) |
Configures the supercapacitor charger circuit.
key | Passes the key to enable or disable the supercapacitor charger circuit. See cy_en_syspm_sc_charge_key_t. |
void Cy_SysPm_BackupWordStore | ( | uint32_t | wordIndex, |
uint32_t * | wordSrcPointer, | ||
uint32_t | wordSize | ||
) |
Stores supported number of words(SRSS_BACKUP_NUM_BREG) in Backup Domain.
wordIndex | Offset/Index of Backup Register Region(BREG) to where the data needs to be stored. Starts with 0, ends with (SRSS_BACKUP_NUM_BREG - 1) |
wordSrcPointer | Source address from where the words have to be picked and backed up. |
wordSize | Number of words to be stored |
void Cy_SysPm_BackupWordReStore | ( | uint32_t | wordIndex, |
uint32_t * | wordDstPointer, | ||
uint32_t | wordSize | ||
) |
Restores supported number of words(SRSS_BACKUP_NUM_BREG) in Backup Domain.
wordIndex | Offset/Index of Backup Register Region(BREG) from where the data need to be Restored. Starts with 0, ends with (SRSS_BACKUP_NUM_BREG - 1) |
wordDstPointer | Destination address from where the backed up words have to be written. |
wordSize | Number of words to be Restored |
cy_en_syspm_status_t Cy_SysPm_SetupDeepSleepRAM | ( | cy_en_syspm_dsram_checks_t | dsramCheck, |
uint32_t * | dsramIntState | ||
) |
Implements Pre and Post Deepsleep RAM Setup.
dsramCheck | CY_SYSPM_PRE_DSRAM or CY_SYSPM_POST_DSRAM |
dsramIntState | Variable to save the interrupt state before and after Deepsleep RAM. |
cy_en_syspm_status_t Cy_SysPm_CpuEnterRAMOffDeepSleep | ( | void | ) |
Sets executing CPU to the Deep Sleep mode forceful RAM OFF.