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

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

Collaboration diagram for RTC Time register (RTC_TR) values:

Macros

#define RTC_TR_PM   (1 << 22)
 AM/PM notation. More...
 
#define RTC_TR_HT_SHIFT   (20)
 Hour tens in BCD format shift. More...
 
#define RTC_TR_HT_MASK   (0x3)
 Hour tens in BCD format mask. More...
 
#define RTC_TR_HU_SHIFT   (16)
 Hour units in BCD format shift. More...
 
#define RTC_TR_HU_MASK   (0xf)
 Hour units in BCD format mask. More...
 
#define RTC_TR_MNT_SHIFT   (12)
 Minute tens in BCD format shift. More...
 
#define RTC_TR_MNT_MASK   (0x7)
 Minute tens in BCD format mask. More...
 
#define RTC_TR_MNU_SHIFT   (8)
 Minute units in BCD format shift. More...
 
#define RTC_TR_MNU_MASK   (0xf)
 Minute units in BCD format mask. More...
 
#define RTC_TR_ST_SHIFT   (4)
 Second tens in BCD format shift. More...
 
#define RTC_TR_ST_MASK   (0x7)
 Second tens in BCD format mask. More...
 
#define RTC_TR_SU_SHIFT   (0)
 Second units in BCD format shift. More...
 
#define RTC_TR_SU_MASK   (0xf)
 Second units in BCD format mask. More...
 

Detailed Description

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

Macro Definition Documentation

◆ RTC_TR_HT_MASK

#define RTC_TR_HT_MASK   (0x3)

Hour tens in BCD format mask.

Definition at line 115 of file rtc_common_l1f024.h.

◆ RTC_TR_HT_SHIFT

#define RTC_TR_HT_SHIFT   (20)

Hour tens in BCD format shift.

Definition at line 113 of file rtc_common_l1f024.h.

◆ RTC_TR_HU_MASK

#define RTC_TR_HU_MASK   (0xf)

Hour units in BCD format mask.

Definition at line 119 of file rtc_common_l1f024.h.

◆ RTC_TR_HU_SHIFT

#define RTC_TR_HU_SHIFT   (16)

Hour units in BCD format shift.

Definition at line 117 of file rtc_common_l1f024.h.

◆ RTC_TR_MNT_MASK

#define RTC_TR_MNT_MASK   (0x7)

Minute tens in BCD format mask.

Definition at line 123 of file rtc_common_l1f024.h.

◆ RTC_TR_MNT_SHIFT

#define RTC_TR_MNT_SHIFT   (12)

Minute tens in BCD format shift.

Definition at line 121 of file rtc_common_l1f024.h.

◆ RTC_TR_MNU_MASK

#define RTC_TR_MNU_MASK   (0xf)

Minute units in BCD format mask.

Definition at line 127 of file rtc_common_l1f024.h.

◆ RTC_TR_MNU_SHIFT

#define RTC_TR_MNU_SHIFT   (8)

Minute units in BCD format shift.

Definition at line 125 of file rtc_common_l1f024.h.

◆ RTC_TR_PM

#define RTC_TR_PM   (1 << 22)

AM/PM notation.

Definition at line 111 of file rtc_common_l1f024.h.

◆ RTC_TR_ST_MASK

#define RTC_TR_ST_MASK   (0x7)

Second tens in BCD format mask.

Definition at line 131 of file rtc_common_l1f024.h.

◆ RTC_TR_ST_SHIFT

#define RTC_TR_ST_SHIFT   (4)

Second tens in BCD format shift.

Definition at line 129 of file rtc_common_l1f024.h.

◆ RTC_TR_SU_MASK

#define RTC_TR_SU_MASK   (0xf)

Second units in BCD format mask.

Definition at line 135 of file rtc_common_l1f024.h.

◆ RTC_TR_SU_SHIFT

#define RTC_TR_SU_SHIFT   (0)

Second units in BCD format shift.

Definition at line 133 of file rtc_common_l1f024.h.