3#ifndef SYSTEMPERIPHERALS_RTC_H
4#define SYSTEMPERIPHERALS_RTC_H
36#define RTC ((RTC_ModuleRegisters*)RTC_BASE)
91#define BKP ((BKP_ModuleRegisters*)BKP_BASE)
94#define BKP_RTCCR_CCO ((uint32_t)0x00000080)
95#define BKP_RTCCR_ASOE ((uint32_t)0x00000100)
96#define BKP_RTCCR_ASOS ((uint32_t)0x00000200)
98#define RTC_AUTO_1_SECOND 0xFFFFFFFFU
RTC_OutputSource
Enumeration of RTC output source structures definition.
@ RTC_OUTPUTSOURCE_SECOND
@ RTC_OUTPUTSOURCE_CALIBCLOCK
RTC_Status RTC_DeInit(RTC_Handle *hrtc)
De-Initializes the RTC peripheral.
RTC_Month
Enumeration of RTC Month structures definition, coded in BCD format.
RTC_Status RTC_GetTime(RTC_Handle *hrtc, RTC_Time *sTime, RTC_Format Format)
Gets RTC current time.
void RTC_StoreDateIntoBkpReg(RTC_Date const *dateRtc)
Store date information into backup register.
RTC_Format
Enumeration of RTC format structures definition.
RTC_Status RTC_GetDate(RTC_Handle *hrtc, RTC_Date *sDate, RTC_Format Format)
Gets RTC current date.
RTC_RTCState
RTC State structures definition.
RTC_Status RTC_Init(RTC_Handle *hrtc)
Initializes the RTC peripheral.
RTC_Weekday
Enumeration of RTC Month structures definition.
void RTC_LoadDateFromBkpReg(RTC_Date *dateRtc)
Load date information from backup register.
RTC_Lock
RTC Lock structures definition.
RTC_Status RTC_SetDate(RTC_Handle *hrtc, RTC_Date *sDate, RTC_Format Format)
Sets RTC current date.
RTC_Status
Enumeration of RTC Status structures definition.
RTC_Status RTC_SetTime(RTC_Handle *hrtc, RTC_Time *sTime, RTC_Format Format)
Sets RTC current time.
unsigned __int32 uint32_t
RTC Configuration Structure definition.
RTC Date structure definition.
RTC Time Handle Structure definition.
RTC_RTCState volatile State
RTC_ModuleRegisters * Instance
RTC Time structure definition.