Jump to main content

##

# 2.99.53 RTC_BackupRegisterSet Function

## C

    void RTC_BackupRegisterSet( BACKUP_REGISTER reg, uint32_t value )

## Summary

Set the value for the selected Backup Register.

## Description

This function is used to set the 32-bit value for 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
value | The 32-bit value to be stored

## Returns

None.

## Example

    //Set Backup register 0 to 0xAA55AA55
    RTC_BackupRegisterSet( BACKUP_REGISTER_0 , 0xAAA55AA55 );

## Remarks

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