RTCC_Init_TypeDef Struct Reference

RTCC initialization structure.

#include <em_rtcc.h>

Data Fields

bool enable
Enable/disable counting when initialization is completed.
bool debugRun
Enable/disable timer counting during debug halt.
bool precntWrapOnCCV0
Enable/disable pre-counter wrap on ch.
bool cntWrapOnCCV1
Enable/disable counter wrap on ch.
RTCC_CntPresc_TypeDef presc
Counter prescaler.
RTCC_PrescMode_TypeDef prescMode
Prescaler mode.
bool enaBackupModeSet
Enable/disable storing RTCC counter value in RTCC_CCV2 upon backup mode entry.
bool enaOSCFailDetect
Enable/disable the check that sets OSCFFAIL interrupt flag if no LFCLK-RTCC ticks are detected within one ULFRCO cycles.
RTCC_CntMode_TypeDef cntMode
Select operational mode of the counter.
bool disLeapYearCorr
Disable leap year correction for calendar mode.

RTCC initialization structure.

Field Documentation

enable

bool RTCC_Init_TypeDef::enable

Enable/disable counting when initialization is completed.

debugRun

bool RTCC_Init_TypeDef::debugRun

Enable/disable timer counting during debug halt.

precntWrapOnCCV0

bool RTCC_Init_TypeDef::precntWrapOnCCV0

Enable/disable pre-counter wrap on ch.

0 CCV value.

cntWrapOnCCV1

bool RTCC_Init_TypeDef::cntWrapOnCCV1

Enable/disable counter wrap on ch.

1 CCV value.

presc

RTCC_CntPresc_TypeDef RTCC_Init_TypeDef::presc

Counter prescaler.

prescMode

RTCC_PrescMode_TypeDef RTCC_Init_TypeDef::prescMode

Prescaler mode.

enaBackupModeSet

bool RTCC_Init_TypeDef::enaBackupModeSet

Enable/disable storing RTCC counter value in RTCC_CCV2 upon backup mode entry.

enaOSCFailDetect

bool RTCC_Init_TypeDef::enaOSCFailDetect

Enable/disable the check that sets OSCFFAIL interrupt flag if no LFCLK-RTCC ticks are detected within one ULFRCO cycles.

cntMode

RTCC_CntMode_TypeDef RTCC_Init_TypeDef::cntMode

Select operational mode of the counter.

disLeapYearCorr

bool RTCC_Init_TypeDef::disLeapYearCorr

Disable leap year correction for calendar mode.

When this parameter is set to false, February has 29 days if (year % 4 == 0). If set to true, February always has 28 days.