Backup Registers

Functions to read/write battery-backed hardware registers. More...

Functions

uint32_t gos_backup_register_read (gos_backup_register_t reg)
Read from a backup register. More...
void gos_backup_register_write (gos_backup_register_t reg, uint32_t value)
Write to a backup register. More...

Detailed Description

Functions to read/write battery-backed hardware registers.

Function Documentation

gos_backup_register_read()

uint32_t gos_backup_register_read ( gos_backup_register_t reg )

Read from a backup register.

A backup register is a battery-backed hardware register whose value persists through system resets and sleep.

The value of a backup register is lost only when power is removed from the device.

Parameters
reg The backup register to read
Returns
32bit value of the backup register

gos_backup_register_write()

void gos_backup_register_write ( gos_backup_register_t reg,
uint32_t value
)

Write to a backup register.

Parameters
reg The backup register to write
value 32bit value to write to backup register