BURTC - Backup RTC
Description
Backup Real Time Counter (BURTC) Peripheral API.
This module contains functions to control the BURTC peripheral of Silicon Labs 32-bit MCUs. The Backup Real Time Counter allows timekeeping in all energy modes. The Backup RTC is also available when the system is in backup mode.
Data Structures |
|
struct | BURTC_Init_TypeDef |
BURTC initialization structure for Series 0 devices.
|
|
Functions |
|
void | BURTC_IntClear (uint32_t flags) |
Clear one or more pending BURTC interrupts.
|
|
void | BURTC_IntDisable (uint32_t flags) |
Disable one or more BURTC interrupts.
|
|
void | BURTC_IntEnable (uint32_t flags) |
Enable one or more BURTC interrupts.
|
|
uint32_t | BURTC_IntGet (void) |
Get pending BURTC interrupt flags.
|
|
uint32_t | BURTC_IntGetEnabled (void) |
Get enabled and pending BURTC interrupt flags.
|
|
void | BURTC_IntSet (uint32_t flags) |
Set one or more pending BURTC interrupts from SW.
|
|
uint32_t | BURTC_Status (void) |
Status of BURTC RAM, timestamp and LP Mode.
|
|
void | BURTC_StatusClear (void) |
Clear and reset BURTC status register.
|
|
void | BURTC_SyncWait (void) |
Wait for the BURTC to complete all synchronization of register changes and commands.
|
|
uint32_t | BURTC_CounterGet (void) |
Get BURTC counter.
|
|
uint32_t | BURTC_TimestampGet (void) |
Get BURTC timestamp for entering BU.
|
|
void | BURTC_FreezeEnable (bool enable) |
Freeze register updates until enabled.
|
|
void | BURTC_Powerdown (bool enable) |
Shut down power to rentention register bank.
|
|
void | BURTC_RetRegSet (uint32_t num, uint32_t data) |
Set a value in one of the retention registers.
|
|
uint32_t | BURTC_RetRegGet (uint32_t num) |
Read a value from one of the retention registers.
|
|
void | BURTC_Lock (void) |
Lock BURTC registers, will protect from writing new config settings.
|
|
void | BURTC_Unlock (void) |
Unlock BURTC registers, enable write access to change configuration.
|
|
void | BURTC_Reset (void) |
Restore BURTC to reset state.
|
|
void | BURTC_Init (const BURTC_Init_TypeDef *burtcInit) |
Initialize BURTC.
|
|
void | BURTC_Enable (bool enable) |
Enable or Disable BURTC peripheral reset and start counter.
|
|
void | BURTC_CounterReset (void) |
Reset counter.
|
|
void | BURTC_CompareSet (unsigned int comp, uint32_t value) |
Set BURTC compare channel.
|
|
uint32_t | BURTC_CompareGet (unsigned int comp) |
Get the BURTC compare value.
|
|