libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
RTC Date register (RTC_DR) values

Note: Bits [31:24] and [7:6] are reserved, and must be kept at reset value. More...

Collaboration diagram for RTC Date register (RTC_DR) values:

Macros

#define RTC_DR_YT_SHIFT   (20)
 Year tens in BCD format shift. More...
 
#define RTC_DR_YT_MASK   (0xf)
 Year tens in BCD format mask. More...
 
#define RTC_DR_YU_SHIFT   (16)
 Year units in BCD format shift. More...
 
#define RTC_DR_YU_MASK   (0xf)
 Year units in BCD format mask. More...
 
#define RTC_DR_WDU_SHIFT   (13)
 Weekday units shift. More...
 
#define RTC_DR_WDU_MASK   (0x7)
 Weekday units mask. More...
 
#define RTC_DR_MT_SHIFT   (12)
 Month tens in BCD format shift. More...
 
#define RTC_DR_MT_MASK   (1)
 Month tens in BCD format mask. More...
 
#define RTC_DR_MU_SHIFT   (8)
 Month units in BCD format shift. More...
 
#define RTC_DR_MU_MASK   (0xf)
 Month units in BCD format mask. More...
 
#define RTC_DR_DT_SHIFT   (4)
 Date tens in BCD format shift. More...
 
#define RTC_DR_DT_MASK   (0x3)
 Date tens in BCD format mask. More...
 
#define RTC_DR_DU_SHIFT   (0)
 Date units in BCD format shift. More...
 
#define RTC_DR_DU_MASK   (0xf)
 Date units in BCD format mask. More...
 

Detailed Description

Note: Bits [31:24] and [7:6] are reserved, and must be kept at reset value.

Macro Definition Documentation

◆ RTC_DR_DT_MASK

#define RTC_DR_DT_MASK   (0x3)

Date tens in BCD format mask.

Definition at line 165 of file rtc_common_l1f024.h.

◆ RTC_DR_DT_SHIFT

#define RTC_DR_DT_SHIFT   (4)

Date tens in BCD format shift.

Definition at line 163 of file rtc_common_l1f024.h.

◆ RTC_DR_DU_MASK

#define RTC_DR_DU_MASK   (0xf)

Date units in BCD format mask.

Definition at line 169 of file rtc_common_l1f024.h.

◆ RTC_DR_DU_SHIFT

#define RTC_DR_DU_SHIFT   (0)

Date units in BCD format shift.

Definition at line 167 of file rtc_common_l1f024.h.

◆ RTC_DR_MT_MASK

#define RTC_DR_MT_MASK   (1)

Month tens in BCD format mask.

Definition at line 157 of file rtc_common_l1f024.h.

◆ RTC_DR_MT_SHIFT

#define RTC_DR_MT_SHIFT   (12)

Month tens in BCD format shift.

Definition at line 155 of file rtc_common_l1f024.h.

◆ RTC_DR_MU_MASK

#define RTC_DR_MU_MASK   (0xf)

Month units in BCD format mask.

Definition at line 161 of file rtc_common_l1f024.h.

◆ RTC_DR_MU_SHIFT

#define RTC_DR_MU_SHIFT   (8)

Month units in BCD format shift.

Definition at line 159 of file rtc_common_l1f024.h.

◆ RTC_DR_WDU_MASK

#define RTC_DR_WDU_MASK   (0x7)

Weekday units mask.

Definition at line 153 of file rtc_common_l1f024.h.

◆ RTC_DR_WDU_SHIFT

#define RTC_DR_WDU_SHIFT   (13)

Weekday units shift.

Definition at line 151 of file rtc_common_l1f024.h.

◆ RTC_DR_YT_MASK

#define RTC_DR_YT_MASK   (0xf)

Year tens in BCD format mask.

Definition at line 145 of file rtc_common_l1f024.h.

◆ RTC_DR_YT_SHIFT

#define RTC_DR_YT_SHIFT   (20)

Year tens in BCD format shift.

Definition at line 143 of file rtc_common_l1f024.h.

◆ RTC_DR_YU_MASK

#define RTC_DR_YU_MASK   (0xf)

Year units in BCD format mask.

Definition at line 149 of file rtc_common_l1f024.h.

◆ RTC_DR_YU_SHIFT

#define RTC_DR_YU_SHIFT   (16)

Year units in BCD format shift.

Definition at line 147 of file rtc_common_l1f024.h.