1.7.22.50 RTC_BackupRegisterGet Function

C

uint32_t RTC_BackupRegisterGet( BACKUP_REGISTER reg );

Summary

Get the value stored in the selected Backup Register.

Description

This function is used to get the 32-bit value stored in the selected Backup Register. The Backup registers can be used to store critical information when the device enters the Backup Mode.

Precondition

None.

Parameters

Param Description
reg Backup register to be used

Returns

The 32-bit value stored in the selected Backup register

Example

//Get Backup register 0
uint32_t value = RTC_BackupRegisterGet( BACKUP_REGISTER_0 );

Remarks

This Feature may not be available on all devices. Refer to device Datasheet for more information.