cy_en_syspm_status_t Cy_SysPm_SetSRAMMacroPwrMode | ( | cy_en_syspm_sram_index_t | sramNum, |
uint32_t | sramMacroNum, | ||
cy_en_syspm_sram_pwr_mode_t | sramPwrMode | ||
) |
Function to set Power Mode for each of the Macro in a particular SRAM.
sramNum | SRAM's index number has to be passed ex: CY_SYSPM_SRAM0_MEMORY or CY_SYSPM_SRAM1_MEMORY or CY_SYSPM_SRAM2_MEMORY See cy_en_syspm_sram_index_t. |
sramMacroNum | Macro number of a particular SRAM. |
sramPwrMode | Power Mode that needs to be set. |
For the PSoC 64 devices there are possible situations when function returns the PRA error status code. This is because for PSoC 64 devices the function uses the PRA driver to change the protected registers. Refer to cy_en_pra_status_t for more details.
cy_en_syspm_sram_pwr_mode_t Cy_SysPm_GetSRAMMacroPwrMode | ( | cy_en_syspm_sram_index_t | sramNum, |
uint32_t | sramMacroNum | ||
) |
Function to get Power Mode for each of the Macro in a particular SRAM.
sramNum | SRAM's index number has to be passed ex: CY_SYSPM_SRAM0_MEMORY or CY_SYSPM_SRAM1_MEMORY or CY_SYSPM_SRAM2_MEMORY See cy_en_syspm_sram_index_t. |
sramMacroNum | Macro number of a particular SRAM. |
cy_en_syspm_status_t Cy_SysPm_SetSRAMPwrMode | ( | cy_en_syspm_sram_index_t | sramNum, |
cy_en_syspm_sram_pwr_mode_t | sramPwrMode | ||
) |
Function to set Power Mode for all the Macros for a particular SRAM.
sramNum | SRAM's index number has to be passed ex: CY_SYSPM_SRAM0_MEMORY or CY_SYSPM_SRAM1_MEMORY or CY_SYSPM_SRAM2_MEMORY See cy_en_syspm_sram_index_t. |
sramPwrMode | Power Mode that needs to be set. |
For the PSoC 64 devices there are possible situations when function returns the PRA error status code. This is because for PSoC 64 devices the function uses the PRA driver to change the protected registers. Refer to cy_en_pra_status_t for more details.
cy_en_syspm_status_t Cy_SysPm_SetSOCMemPartActivePwrMode | ( | cy_en_syspm_socmem_sram_partition_index_t | socmemSramPartNum, |
cy_en_syspm_socmem_sram_pwr_mode_t | socmemSramPwrMode | ||
) |
Set Active mode Power Mode for a particular partition of SRAM in SOCMEM.
socmemSramPartNum | SOCMEM- SRAM's Partition Number See cy_en_syspm_socmem_sram_partition_index_t. |
socmemSramPwrMode | Power Mode that needs to be set. See cy_en_syspm_socmem_sram_pwr_mode_t. |
cy_en_syspm_status_t Cy_SysPm_SetSOCMemPartDsPwrMode | ( | cy_en_syspm_socmem_sram_partition_index_t | socmemSramPartNum, |
cy_en_syspm_socmem_sram_pwr_mode_t | socmemSramPwrMode | ||
) |
Set DS mode Power Mode for a particular partition of SRAM in SOCMEM.
socmemSramPartNum | SOCMEM- SRAM's Partition Number See cy_en_syspm_socmem_sram_partition_index_t. |
socmemSramPwrMode | Power Mode that needs to be set. See cy_en_syspm_socmem_sram_pwr_mode_t. |
cy_en_syspm_socmem_sram_pwr_mode_t Cy_SysPm_GetSOCMemSramPartActivePwrMode | ( | cy_en_syspm_socmem_sram_partition_index_t | socmemSramPartNum | ) |
Function to get Active mode Power Mode for a particular SOCMEM SRAM Partition.
socmemSramPartNum | SOCMEM- SRAM's Partition Number See cy_en_syspm_socmem_sram_partition_index_t. |
cy_en_syspm_socmem_sram_pwr_mode_t Cy_SysPm_GetSOCMemSramPartDsPwrMode | ( | cy_en_syspm_socmem_sram_partition_index_t | socmemSramPartNum | ) |
Function to get DS mode Power Mode for a particular SOCMEM SRAM Partition.
socmemSramPartNum | SOCMEM- SRAM's Partition Number See cy_en_syspm_socmem_sram_partition_index_t. |
cy_en_syspm_status_t Cy_SysPm_WriteVoltageBitForFlash | ( | cy_en_syspm_flash_voltage_bit_t | value | ) |
Function that changes the voltage setting for flash.
value | Value to be set in the flash voltage control register. See cy_en_syspm_flash_voltage_bit_t. |
void Cy_SysPm_SaveRegisters | ( | cy_stc_syspm_backup_regs_t * | regs | ) |
regs | The structure where the registers are saved. |
void Cy_SysPm_RestoreRegisters | ( | cy_stc_syspm_backup_regs_t const * | regs | ) |
regs | The structure with data stored (using Cy_SysPm_SaveRegisters()) into the required registers after Deep Sleep. |