RTC Exported Constants

Alarm A and alarm B

group RTC_LL_EC_ALM

Defines

LL_RTC_ALARM_A 0U

Alarm A

LL_RTC_ALARM_B 1U

Alarm B

RTC Alarm A Date WeekDay

group RTC_LL_EC_ALMA_WEEKDAY_SELECTION

Defines

LL_RTC_ALMA_DATEWEEKDAYSEL_DATE 0U

Alarm A Date is selected

LL_RTC_ALMA_DATEWEEKDAYSEL_WEEKDAY RTC_ALRMAR_WDSEL

Alarm A WeekDay is selected

RTC Alarm B Date WeekDay

group RTC_LL_EC_ALMB_WEEKDAY_SELECTION

Defines

LL_RTC_ALMB_DATEWEEKDAYSEL_DATE 0U

Alarm B Date is selected

LL_RTC_ALMB_DATEWEEKDAYSEL_WEEKDAY RTC_ALRMBR_WDSEL

Alarm B WeekDay is selected

Timestamp Flags Defines

group RTC_LL_EC_TIMESTAMP_FLAGS

Timestamp flags defines.

Defines

LL_RTC_SR_ITSF RTC_SR_ITSF

Internal timestamp event

LL_RTC_SR_TSOVF RTC_SR_TSOVF

Timestamp overflow event

LL_RTC_SR_TSF RTC_SR_TSF

Timestamp event

Get Flags Defines

group RTC_LL_EC_GET_FLAG

Flags defines which can be used with LL_RTC_READ_REG function.

Defines

LL_RTC_ICSR_RECALPF RTC_ICSR_RECALPF

Recalibration pending event

LL_RTC_ICSR_INITF RTC_ICSR_INITF

Initialization flag

LL_RTC_ICSR_RSF RTC_ICSR_RSF

Registers synchronization event

LL_RTC_ICSR_INITS RTC_ICSR_INITS

Initialization status event

LL_RTC_ICSR_SHPF RTC_ICSR_SHPF

Shift operation pending event

LL_RTC_ICSR_WUTWF RTC_ICSR_WUTWF

Wake-up timer write event

IT Defines

group RTC_LL_EC_IT

IT defines which can be used with LL_RTC_READ_REG and LL_RTC_WRITE_REG functions.

Defines

LL_RTC_CR_TSIE RTC_CR_TSIE

Timestamp on internal event enable

LL_RTC_CR_WUTIE RTC_CR_WUTIE

Wake-up timer interrupt enable

LL_RTC_CR_ALRBIE RTC_CR_ALRBIE

Alarm B interrupt enable

LL_RTC_CR_ALRAIE RTC_CR_ALRAIE

Alarm A interrupt enable

WEEK DAY

group RTC_LL_EC_WEEKDAY

Defines

LL_RTC_WEEKDAY_MONDAY (uint32_t)0x01

Monday

LL_RTC_WEEKDAY_TUESDAY (uint32_t)0x02

Tuesday

LL_RTC_WEEKDAY_WEDNESDAY (uint32_t)0x03

Wednesday

LL_RTC_WEEKDAY_THURSDAY (uint32_t)0x04

Thursday

LL_RTC_WEEKDAY_FRIDAY (uint32_t)0x05

Friday

LL_RTC_WEEKDAY_SATURDAY (uint32_t)0x06

Saturday

LL_RTC_WEEKDAY_SUNDAY (uint32_t)0x07

Sunday

MONTH

group RTC_LL_EC_MONTH

Defines

LL_RTC_MONTH_JANUARY (uint32_t)0x01

January

LL_RTC_MONTH_FEBRUARY (uint32_t)0x02

February

LL_RTC_MONTH_MARCH (uint32_t)0x03

March

LL_RTC_MONTH_APRIL (uint32_t)0x04

April

LL_RTC_MONTH_MAY (uint32_t)0x05

May

LL_RTC_MONTH_JUNE (uint32_t)0x06

June

LL_RTC_MONTH_JULY (uint32_t)0x07

July

LL_RTC_MONTH_AUGUST (uint32_t)0x08

August

LL_RTC_MONTH_SEPTEMBER (uint32_t)0x09

September

LL_RTC_MONTH_OCTOBER (uint32_t)0x10

October

LL_RTC_MONTH_NOVEMBER (uint32_t)0x11

November

LL_RTC_MONTH_DECEMBER (uint32_t)0x12

December

HOUR FORMAT

group RTC_LL_EC_HOUR_FORMAT

Defines

LL_RTC_HOUR_FORMAT_24HOUR 0U

24 hour/day format

LL_RTC_HOUR_FORMAT_AMPM RTC_CR_FMT

AM/PM hour format

Reference clock

group RTC_LL_EC_REF_CLOCK

Defines

LL_RTC_REF_CLOCK_DISABLE 0U

Reference clock detection disable

LL_RTC_REF_CLOCK_ENABLE RTC_CR_REFCKON

Reference clock detection enable

Shadow register

group RTC_LL_EC_SHADOW_REGISTER

Defines

LL_RTC_SHADOW_REG_KEEP 0U

Disable Bypass shadow register

LL_RTC_SHADOW_REG_BYPASS RTC_CR_BYPSHAD

Enable Bypass shadow register

Backup Register for daylight saving time

group RTC_LL_EC_BKP_REGISTER

Defines

LL_RTC_BKP_REGISTER_UNSET 0U

Daylight time change has been not performed

LL_RTC_BKP_REGISTER_SET RTC_CR_BKP

Daylight time change has been performed

ALARM OUTPUT

group RTC_LL_EC_ALARMOUT

Defines

LL_RTC_ALARMOUT_DISABLE 0U

Output disable

LL_RTC_ALARMOUT_ALARM_A RTC_CR_OSEL_0

Alarm A output enable

LL_RTC_ALARMOUT_ALARM_B RTC_CR_OSEL_1

Alarm B output enable

LL_RTC_ALARMOUT_WAKEUP RTC_CR_OSEL

Wakeup output enable

ALARM Output type

group RTC_LL_EC_ALARM_OUTPUTTYPE

Defines

LL_RTC_ALARM_OUTPUTTYPE_PUSHPULL 0U

RTC_ALARM is push-pull output

LL_RTC_ALARM_OUTPUTTYPE_OPENDRAIN RTC_CR_TAMPALRM_TYPE

RTC_ALARM is open-drain output

ALARM Output pull-up

group RTC_LL_EC_ALARM_OUTPUT_PULLUP

Defines

LL_RTC_ALARM_OUTPUT_PULLUP_NONE 0U

No pull-up is applied on TAMPALRM output

LL_RTC_ALARM_OUTPUT_PULLUP_ON RTC_CR_TAMPALRM_PU

A pull-up is applied on TAMPALRM output

ALARM Output REMAP

group RTC_LL_EC_ALARM_OUTPUT_REMAP

Defines

LL_RTC_ALARM_OUTPUT_REMAP_NONE 0U

RTC_OUT2 output disable

LL_RTC_ALARM_OUTPUT_REMAP_POS1 RTC_CR_OUT2EN

RTC_OUT2 output enable

OUTPUT POLARITY PIN

group RTC_LL_EC_OUTPUTPOLARITY_PIN

Defines

LL_RTC_OUTPUTPOLARITY_PIN_HIGH 0U

Pin is high when selected TAMPALRM is asserted

LL_RTC_OUTPUTPOLARITY_PIN_LOW RTC_CR_POL

Pin is low when selected TAMPALRM is asserted

TIME FORMAT

group RTC_LL_EC_TIME_FORMAT

Defines

LL_RTC_TIME_FORMAT_AM_24H 0U

AM or 24-hour format

LL_RTC_TIME_FORMAT_PM RTC_TR_PM

PM

SHIFT SECOND

group RTC_LL_EC_SHIFT_SECOND

Defines

LL_RTC_SHIFT_SECOND_DELAY 0U

Delay (seconds) = SUBFS / (PREDIV_S + 1)

LL_RTC_SHIFT_SECOND_ADVANCE RTC_SHIFTR_ADD1S

Advance (seconds) = (1-(SUBFS/(PREDIV_S+1)))

ALARMA MASK

group RTC_LL_EC_ALMA_MASK

Defines

LL_RTC_ALMA_MASK_NONE 0U

No masks applied on alarm A

LL_RTC_ALMA_MASK_DATEWEEKDAY RTC_ALRMAR_MSK4

Date/day do not care in alarm A comparison

LL_RTC_ALMA_MASK_HOURS RTC_ALRMAR_MSK3

Hours do not care in alarm A comparison

LL_RTC_ALMA_MASK_MINUTES RTC_ALRMAR_MSK2

Minutes do not care in alarm A comparison

LL_RTC_ALMA_MASK_SECONDS RTC_ALRMAR_MSK1

Seconds do not care in alarm A comparison

LL_RTC_ALMA_MASK_ALL (RTC_ALRMAR_MSK4 | RTC_ALRMAR_MSK3 | RTC_ALRMAR_MSK2 | RTC_ALRMAR_MSK1)

Masks all

ALARMA TIME FORMAT

group RTC_LL_EC_ALMA_TIME_FORMAT

Defines

LL_RTC_ALMA_TIME_FORMAT_AM_24H 0U

AM or 24-hour format

LL_RTC_ALMA_TIME_FORMAT_PM RTC_ALRMAR_PM

PM

RTC Alarm auto clear

group RTC_LL_EC_ALMA_AUTOCLR

Defines

LL_RTC_ALM_AUTOCLR_NO 0U

Alarm autoclear disable

LL_RTC_ALM_AUTOCLR_YES RTC_CR_ALRAFCLR

Alarm autoclear enable

RTC Alarm Sub Seconds with binary mode auto clear Definitions

group RTC_LL_EC_ALMA_SUBSECONDBIN_AUTOCLR

Defines

LL_RTC_ALMA_SUBSECONDBIN_AUTOCLR_NO 0UL

The synchronous binary counter \ (SS[31:0] in RTC_SSR) is free-running

LL_RTC_ALMA_SUBSECONDBIN_AUTOCLR_YES RTC_ALRMASSR_SSCLR

The synchronous binary counter (SS[31:0] \ in RTC_SSR) is running from 0xFFFF FFFF to \ -> SS[31:0] value and is automatically \ reloaded with 0xFFFF FFFF when reaching \ RTC_ALRABINR -> SS[31:0]

ALARMB MASK

group RTC_LL_EC_ALMB_MASK

Defines

LL_RTC_ALMB_MASK_NONE 0U

No masks applied on Alarm B

LL_RTC_ALMB_MASK_DATEWEEKDAY RTC_ALRMBR_MSK4

Date/day do not care in Alarm B comparison

LL_RTC_ALMB_MASK_HOURS RTC_ALRMBR_MSK3

Hours do not care in Alarm B comparison

LL_RTC_ALMB_MASK_MINUTES RTC_ALRMBR_MSK2

Minutes do not care in Alarm B comparison

LL_RTC_ALMB_MASK_SECONDS RTC_ALRMBR_MSK1

Seconds do not care in Alarm B comparison

LL_RTC_ALMB_MASK_ALL (RTC_ALRMBR_MSK4 | RTC_ALRMBR_MSK3 | RTC_ALRMBR_MSK2 | RTC_ALRMBR_MSK1)

Masks all

ALARMB TIME FORMAT

group RTC_LL_EC_ALMB_TIME_FORMAT

Defines

LL_RTC_ALMB_TIME_FORMAT_AM_24H 0U

AM or 24-hour format

LL_RTC_ALMB_TIME_FORMAT_PM RTC_ALRMBR_PM

PM

Alarm Sub Seconds with binary mode auto clear Definitions

group RTC_LL_EC_ALMB_SUBSECONDBIN_AUTOCLR

Defines

LL_RTC_ALMB_SUBSECONDBIN_AUTOCLR_NO 0UL

The synchronous binary counter \ (SS[31:0] in RTC_SSR) is free-running

LL_RTC_ALMB_SUBSECONDBIN_AUTOCLR_YES RTC_ALRMBSSR_SSCLR

The synchronous binary counter \ (SS[31:0] in RTC_SSR) is running \ from 0xFFFF FFFF to RTC_ALRABINR -> SS[31:0]\ value and is automatically reloaded with \ 0xFFFF FFFF when reaching \ RTC_ALRABINR -> SS[31:0]

TIMESTAMP EDGE

group RTC_LL_EC_TIMESTAMP_EDGE

Defines

LL_RTC_TIMESTAMP_EDGE_RISING 0U

RTC_TS input rising edge generates a time-stamp event

LL_RTC_TIMESTAMP_EDGE_FALLING RTC_CR_TSEDGE

RTC_TS input falling edge generates a time-stamp even

Timestamp pin source enable

group RTC_LL_EC_TIMESTAMP_PIN_ENABLE

Defines

LL_RTC_TIMESTAMP_PIN_DISABLE 0U

Timestamp disable

LL_RTC_TIMESTAMP_PIN_ENABLE RTC_CR_TSE

Timestamp enable

Timestamp tamper source enable

group RTC_LL_EC_TIMESTAMP_TAMPER_ENABLE

Defines

LL_RTC_TIMESTAMP_TAMPER_DISABLE 0U

Disable timestamp on tamper detection event

LL_RTC_TIMESTAMP_TAMPER_ENABLE RTC_CR_TAMPTS

Enable timestamp on tamper detection event

Timestamp internal enable

group RTC_LL_EC_TIMESTAMP_INTERNAL_ENABLE

Defines

LL_RTC_TIMESTAMP_INTERNAL_DISABLE 0U

Internal event timestamp disabled

LL_RTC_TIMESTAMP_INTERNAL_ENABLE RTC_CR_ITSE

Internal event timestamp enabled

TIMESTAMP TIME FORMAT

group RTC_LL_EC_TS_TIME_FORMAT

Defines

LL_RTC_TS_TIME_FORMAT_AM_24H 0U

AM or 24-hour format

LL_RTC_TS_TIME_FORMAT_PM RTC_TSTR_PM

PM

WAKEUP CLOCK DIV

group RTC_LL_EC_WAKEUPCLOCK_DIV

Defines

LL_RTC_WAKEUPCLOCK_DIV_16 0U

RTC/16 clock is selected

LL_RTC_WAKEUPCLOCK_DIV_8 RTC_CR_WUCKSEL_0

RTC/8 clock is selected

LL_RTC_WAKEUPCLOCK_DIV_4 RTC_CR_WUCKSEL_1

RTC/4 clock is selected

LL_RTC_WAKEUPCLOCK_DIV_2 (RTC_CR_WUCKSEL_1 | RTC_CR_WUCKSEL_0)

RTC/2 clock is selected

LL_RTC_WAKEUPCLOCK_CKSPRE RTC_CR_WUCKSEL_2

ck_spre (usually 1 Hz) clock is selected

LL_RTC_WAKEUPCLOCK_CKSPRE_WUT (RTC_CR_WUCKSEL_2 | RTC_CR_WUCKSEL_1)

ck_spre (usually 1 Hz) clock is selected and 2exp16 is added to the WUT counter value

Tamper event output

group RTC_LL_EC_TAMPER_OUTPUT

Defines

LL_RTC_OUTPUT_TAMPER_DISABLE 0U

Disable Tamper detection output

LL_RTC_OUTPUT_TAMPER_ENABLE RTC_CR_TAMPOE

Enable Tamper detection output

Calibration frequency output

group RTC_LL_EC_CALIB_FREQUENCY_OUTPUT

Defines

LL_RTC_CALIB_FREQUENCY_512HZ 0U

Calibration output is 512 Hz

LL_RTC_CALIB_FREQUENCY_1HZ RTC_CR_COSEL

Calibration output is 1 Hz

Calibration output

group RTC_LL_EC_CALIB_OUTPUT

Defines

LL_RTC_CALIB_OUTPUT_NONE 0U

Calibration output disabled

LL_RTC_CALIB_OUTPUT_ENABLE RTC_CR_COE

Calibration output enabled with current configuration

LL_RTC_CALIB_OUTPUT_1HZ (RTC_CR_COE | RTC_CR_COSEL)

Calibration output is 1 Hz

LL_RTC_CALIB_OUTPUT_512HZ RTC_CR_COE

Calibration output is 512 Hz

Calibration pulse insertion

group RTC_LL_EC_CALIB_INSERTPULSE

Defines

LL_RTC_CALIB_INSERTPULSE_NONE 0U

No RTCCLK pulses are added

LL_RTC_CALIB_INSERTPULSE_SET RTC_CALR_CALP

One RTCCLK pulse is effectively inserted every 2exp11 pulses (frequency increased by 488.5 ppm)

Calibration period

group RTC_LL_EC_CALIB_PERIOD

Defines

LL_RTC_CALIB_PERIOD_32SEC 0U

Use a 32-second calibration cycle period

LL_RTC_CALIB_PERIOD_16SEC RTC_CALR_CALW16

Use a 16-second calibration cycle period

LL_RTC_CALIB_PERIOD_8SEC RTC_CALR_CALW8

Use a 8-second calibration cycle period

Calibration low power

group RTC_LL_EC_CALIB_LOWPOWER

Defines

LL_RTC_CALIB_LOWPOWER_NONE 0U

High-consumption mode

LL_RTC_CALIB_LOWPOWER_SET RTC_CALR_LPCAL

Ultra-low consumption mode

Binary mode (Sub Second Register)

group RTC_LL_EC_BINARY_MODE

Defines

LL_RTC_BINARY_NONE 0U

Free running BCD calendar mode (Binary mode disabled)

LL_RTC_BINARY_ONLY RTC_ICSR_BIN_0

Free running Binary mode (BCD mode disabled)

LL_RTC_BINARY_MIX RTC_ICSR_BIN_1

Free running BCD calendar and Binary mode enable

Calendar second incrementation in Binary mix mode

group RTC_LL_EC_BINARY_MIX_BCDU

Defines

LL_RTC_BINARY_MIX_BCDU_SHIFT RTC_ICSR_BCDU_Pos
LL_RTC_BINARY_MIX_BCDU_0 0U

1s calendar increment is generated each time SS[7:0] = 0

LL_RTC_BINARY_MIX_BCDU_1 (0x1UL << RTC_ICSR_BCDU_Pos)

1s calendar increment is generated each time SS[8:0] = 0

LL_RTC_BINARY_MIX_BCDU_2 (0x2UL << RTC_ICSR_BCDU_Pos)

1s calendar increment is generated each time SS[9:0] = 0

LL_RTC_BINARY_MIX_BCDU_3 (0x3UL << RTC_ICSR_BCDU_Pos)

1s calendar increment is generated each time SS[10:0] = 0

LL_RTC_BINARY_MIX_BCDU_4 (0x4UL << RTC_ICSR_BCDU_Pos)

1s calendar increment is generated each time SS[11:0] = 0

LL_RTC_BINARY_MIX_BCDU_5 (0x5UL << RTC_ICSR_BCDU_Pos)

1s calendar increment is generated each time SS[12:0] = 0

LL_RTC_BINARY_MIX_BCDU_6 (0x6UL << RTC_ICSR_BCDU_Pos)

1s calendar increment is generated each time SS[13:0] = 0

LL_RTC_BINARY_MIX_BCDU_7 (0x7UL << RTC_ICSR_BCDU_Pos)

1s calendar increment is generated each time SS[14:0] = 0

Secure full rtc

group RTC_LL_EC_SECURE_RTC_FULL

Defines

LL_RTC_SECURE_FULL_YES RTC_SECCFGR_SEC

RTC full secure

LL_RTC_SECURE_FULL_NO 0U

RTC is not full secure, features can be secure See RTC_LL_EC_SECURE_RTC_FEATURE

UnSecure features rtc in case of LL_RTC_SECURE_FULL_NO

group RTC_LL_EC_UNSECURE_RTC_FEATURE

Defines

LL_RTC_SECURE_FEATURE_INIT RTC_SECCFGR_INITSEC

Initialization feature is secure

LL_RTC_SECURE_FEATURE_CAL RTC_SECCFGR_CALSEC

Calibration feature is secure

LL_RTC_SECURE_FEATURE_TS RTC_SECCFGR_TSSEC

Time stamp feature is secure

LL_RTC_SECURE_FEATURE_WUT RTC_SECCFGR_WUTSEC

Wake up timer feature is secure

LL_RTC_SECURE_FEATURE_ALRA RTC_SECCFGR_ALRASEC

Alarm A feature is secure

LL_RTC_SECURE_FEATURE_ALRB RTC_SECCFGR_ALRBSEC

Alarm B feature is secure

Privilege full rtc

group RTC_LL_EC_PRIVILEGE_RTC_FULL

Defines

LL_RTC_PRIVILEGE_FULL_YES RTC_PRIVCFGR_PRIV

RTC full privilege

LL_RTC_PRIVILEGE_FULL_NO 0U

RTC is not full privilege, features can be unprivileged See RTC_LL_EC_PRIVILEGE_RTC_FEATURE

Privilege rtc features in case of LL_RTC_PRIVILEGE_FULL_NO

group RTC_LL_EC_PRIVILEGE_RTC_FEATURE

Defines

LL_RTC_PRIVILEGE_FEATURE_INIT RTC_PRIVCFGR_INITPRIV

Initialization feature is privilege

LL_RTC_PRIVILEGE_FEATURE_CAL RTC_PRIVCFGR_CALPRIV

Calibration feature is privilege

LL_RTC_PRIVILEGE_FEATURE_TS RTC_PRIVCFGR_TSPRIV

Time stamp feature is privilege

LL_RTC_PRIVILEGE_FEATURE_WUT RTC_PRIVCFGR_WUTPRIV

Wake up timer feature is privilege

LL_RTC_PRIVILEGE_FEATURE_ALRA RTC_PRIVCFGR_ALRAPRIV

Alarm A feature is privilege

LL_RTC_PRIVILEGE_FEATURE_ALRB RTC_PRIVCFGR_ALRBPRIV

Alarm B feature is privilege

wakeup timer interrupt definition

group RTC_LL_EC_WAKEUP_TIMER_INTERRUPT

Defines

LL_RTC_WAKEUP_TIMER_IT_DISABLE 0U

Wake-up timer interrupt disable

LL_RTC_WAKEUP_TIMER_IT_ENABLE RTC_CR_WUTIE

Wake-up timer interrupt enable

alarm a interrupt definition

group RTC_LL_EC_ALARMA_INTERRUPT

Defines

LL_RTC_ALMA_IT_DISABLE 0U

Alarm A interrupt disable

LL_RTC_ALMA_IT_ENABLE RTC_CR_ALRAIE

Alarm A interrupt enable

alarm b interrupt definition

group RTC_LL_EC_ALARMB_INTERRUPT

Defines

LL_RTC_ALMB_IT_DISABLE 0U

Alarm B interrupt disable

LL_RTC_ALMB_IT_ENABLE RTC_CR_ALRBIE

Alarm B interrupt enable

timestamp interrupt definition

group RTC_LL_EC_TIMESTAMP_INTERRUPT

Defines

LL_RTC_TIMESTAMP_IT_DISABLE 0U

Timestamp interrupt disable

LL_RTC_TIMESTAMP_IT_ENABLE RTC_CR_TSIE

Timestamp interrupt enable

sub seconds register underflow interrupt definition

group RTC_LL_EC_SSRU_INTERRUPT

Defines

LL_RTC_SSRU_IT_DISABLE 0U

SSR underflow interrupt disable

LL_RTC_SSRU_IT_ENABLE RTC_CR_SSRUIE

SSR underflow interrupt enable