1.17.14.6 1.24.15.6 POWER_DSGPR_Write Function

C

void POWER_DSGPR_Write(POWER_DSGPR gprNumb, uint32_t gprValue);

Summary

Saves critical data in deep sleep state

Description

This function can be used to save some critical data in deep sleep state.

Precondition

To use DSGPR1 to DSGPR32 registers, corresponding MHC setting should be enabled.

Parameters

Param Description
gprNumb selects the DSGPR register
gprValue data to be written in the selected register

Returns

None.

Example

uint32_t criticalData;
POWER_DSGPR_Write(POWER_DSGPR0, criticalData);

Remarks

This function is only available for the devices which has deep sleep controller. MHC will generate this function only for the selected devices accordingly. Check device datasheet for more information.