2.83.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 MCC setting should be enabled.

Parameters

ParamDescription
gprNumbselects the DSGPR register
gprValuedata 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. MCC will generate this function only for the selected devices accordingly. Check device datasheet for more information.