Classes | Macros | Functions
stm32f30x_rtc.h File Reference

This file contains all the functions prototypes for the RTC firmware library. More...

#include "stm32f30x.h"
Include dependency graph for stm32f30x_rtc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  RTC_AlarmTypeDef
 RTC Alarm structure definition. More...
 
struct  RTC_DateTypeDef
 RTC Date structure definition. More...
 
struct  RTC_InitTypeDef
 RTC Init structures definition. More...
 
struct  RTC_TimeTypeDef
 RTC Time structure definition. More...
 

Macros

#define IS_ALARM_MASK(MASK)   (((MASK) & 0x7F7F7F7F) == (uint32_t)RESET)
 
#define IS_RTC_ALARM(ALARM)   (((ALARM) == RTC_Alarm_A) || ((ALARM) == RTC_Alarm_B))
 
#define IS_RTC_ALARM_DATE_WEEKDAY_DATE(DATE)   (((DATE) > 0) && ((DATE) <= 31))
 
#define IS_RTC_ALARM_DATE_WEEKDAY_SEL(SEL)
 
#define IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY(WEEKDAY)
 
#define IS_RTC_ALARM_SUB_SECOND_MASK(MASK)
 
#define IS_RTC_ALARM_SUB_SECOND_VALUE(VALUE)   ((VALUE) <= 0x00007FFF)
 
#define IS_RTC_ASYNCH_PREDIV(PREDIV)   ((PREDIV) <= 0x7F)
 
#define IS_RTC_BKP(BKP)
 
#define IS_RTC_CALIB_OUTPUT(OUTPUT)
 
#define IS_RTC_CALIB_SIGN(SIGN)
 
#define IS_RTC_CALIB_VALUE(VALUE)   ((VALUE) < 0x20)
 
#define IS_RTC_CLEAR_FLAG(FLAG)   (((FLAG) != (uint32_t)RESET) && (((FLAG) & 0xFFFF00DF) == (uint32_t)RESET))
 
#define IS_RTC_CLEAR_IT(IT)   (((IT) != (uint32_t)RESET) && (((IT) & 0xFFF10FFF) == (uint32_t)RESET))
 
#define IS_RTC_CMD_ALARM(ALARM)   (((ALARM) & (RTC_Alarm_A | RTC_Alarm_B)) != (uint32_t)RESET)
 
#define IS_RTC_CONFIG_IT(IT)   (((IT) != (uint32_t)RESET) && (((IT) & 0xFFFF0FFB) == (uint32_t)RESET))
 
#define IS_RTC_DATE(DATE)   (((DATE) >= 1) && ((DATE) <= 31))
 
#define IS_RTC_DAYLIGHT_SAVING(SAVE)
 
#define IS_RTC_FORMAT(FORMAT)   (((FORMAT) == RTC_Format_BIN) || ((FORMAT) == RTC_Format_BCD))
 
#define IS_RTC_GET_FLAG(FLAG)
 
#define IS_RTC_GET_IT(IT)
 
#define IS_RTC_H12(PM)   (((PM) == RTC_H12_AM) || ((PM) == RTC_H12_PM))
 
#define IS_RTC_HOUR12(HOUR)   (((HOUR) > 0) && ((HOUR) <= 12))
 
#define IS_RTC_HOUR24(HOUR)   ((HOUR) <= 23)
 
#define IS_RTC_HOUR_FORMAT(FORMAT)
 
#define IS_RTC_MINUTES(MINUTES)   ((MINUTES) <= 59)
 
#define IS_RTC_MONTH(MONTH)   (((MONTH) >= 1) && ((MONTH) <= 12))
 
#define IS_RTC_OUTPUT(OUTPUT)
 
#define IS_RTC_OUTPUT_POL(POL)
 
#define IS_RTC_OUTPUT_TYPE(TYPE)
 
#define IS_RTC_SECONDS(SECONDS)   ((SECONDS) <= 59)
 
#define IS_RTC_SHIFT_ADD1S(SEL)
 
#define IS_RTC_SHIFT_SUBFS(FS)   ((FS) <= 0x00007FFF)
 
#define IS_RTC_SMOOTH_CALIB_MINUS(VALUE)   ((VALUE) <= 0x000001FF)
 
#define IS_RTC_SMOOTH_CALIB_PERIOD(PERIOD)
 
#define IS_RTC_SMOOTH_CALIB_PLUS(PLUS)
 
#define IS_RTC_STORE_OPERATION(OPERATION)
 
#define IS_RTC_SYNCH_PREDIV(PREDIV)   ((PREDIV) <= 0x7FFF)
 
#define IS_RTC_TAMPER(TAMPER)   ((((TAMPER) & (uint32_t)0xFFFFFFD6) == 0x00) && ((TAMPER) != (uint32_t)RESET))
 
#define IS_RTC_TAMPER_FILTER(FILTER)
 
#define IS_RTC_TAMPER_PRECHARGE_DURATION(DURATION)
 
#define IS_RTC_TAMPER_SAMPLING_FREQ(FREQ)
 
#define IS_RTC_TAMPER_TRIGGER(TRIGGER)
 
#define IS_RTC_TIMESTAMP_EDGE(EDGE)
 
#define IS_RTC_WAKEUP_CLOCK(CLOCK)
 
#define IS_RTC_WAKEUP_COUNTER(COUNTER)   ((COUNTER) <= 0xFFFF)
 
#define IS_RTC_WEEKDAY(WEEKDAY)
 
#define IS_RTC_YEAR(YEAR)   ((YEAR) <= 99)
 
#define RTC_Alarm_A   ((uint32_t)0x00000100)
 
#define RTC_Alarm_B   ((uint32_t)0x00000200)
 
#define RTC_AlarmDateWeekDaySel_Date   ((uint32_t)0x00000000)
 
#define RTC_AlarmDateWeekDaySel_WeekDay   ((uint32_t)0x40000000)
 
#define RTC_AlarmMask_All   ((uint32_t)0x80808080)
 
#define RTC_AlarmMask_DateWeekDay   ((uint32_t)0x80000000)
 
#define RTC_AlarmMask_Hours   ((uint32_t)0x00800000)
 
#define RTC_AlarmMask_Minutes   ((uint32_t)0x00008000)
 
#define RTC_AlarmMask_None   ((uint32_t)0x00000000)
 
#define RTC_AlarmMask_Seconds   ((uint32_t)0x00000080)
 
#define RTC_AlarmSubSecondMask_All   ((uint32_t)0x00000000)
 
#define RTC_AlarmSubSecondMask_None   ((uint32_t)0x0F000000)
 
#define RTC_AlarmSubSecondMask_SS14   ((uint32_t)0x0E000000)
 
#define RTC_AlarmSubSecondMask_SS14_1   ((uint32_t)0x01000000)
 
#define RTC_AlarmSubSecondMask_SS14_10   ((uint32_t)0x0A000000)
 
#define RTC_AlarmSubSecondMask_SS14_11   ((uint32_t)0x0B000000)
 
#define RTC_AlarmSubSecondMask_SS14_12   ((uint32_t)0x0C000000)
 
#define RTC_AlarmSubSecondMask_SS14_13   ((uint32_t)0x0D000000)
 
#define RTC_AlarmSubSecondMask_SS14_2   ((uint32_t)0x02000000)
 
#define RTC_AlarmSubSecondMask_SS14_3   ((uint32_t)0x03000000)
 
#define RTC_AlarmSubSecondMask_SS14_4   ((uint32_t)0x04000000)
 
#define RTC_AlarmSubSecondMask_SS14_5   ((uint32_t)0x05000000)
 
#define RTC_AlarmSubSecondMask_SS14_6   ((uint32_t)0x06000000)
 
#define RTC_AlarmSubSecondMask_SS14_7   ((uint32_t)0x07000000)
 
#define RTC_AlarmSubSecondMask_SS14_8   ((uint32_t)0x08000000)
 
#define RTC_AlarmSubSecondMask_SS14_9   ((uint32_t)0x09000000)
 
#define RTC_BKP_DR0   ((uint32_t)0x00000000)
 
#define RTC_BKP_DR1   ((uint32_t)0x00000001)
 
#define RTC_BKP_DR10   ((uint32_t)0x0000000A)
 
#define RTC_BKP_DR11   ((uint32_t)0x0000000B)
 
#define RTC_BKP_DR12   ((uint32_t)0x0000000C)
 
#define RTC_BKP_DR13   ((uint32_t)0x0000000D)
 
#define RTC_BKP_DR14   ((uint32_t)0x0000000E)
 
#define RTC_BKP_DR15   ((uint32_t)0x0000000F)
 
#define RTC_BKP_DR2   ((uint32_t)0x00000002)
 
#define RTC_BKP_DR3   ((uint32_t)0x00000003)
 
#define RTC_BKP_DR4   ((uint32_t)0x00000004)
 
#define RTC_BKP_DR5   ((uint32_t)0x00000005)
 
#define RTC_BKP_DR6   ((uint32_t)0x00000006)
 
#define RTC_BKP_DR7   ((uint32_t)0x00000007)
 
#define RTC_BKP_DR8   ((uint32_t)0x00000008)
 
#define RTC_BKP_DR9   ((uint32_t)0x00000009)
 
#define RTC_CalibOutput_1Hz   ((uint32_t)0x00080000)
 
#define RTC_CalibOutput_512Hz   ((uint32_t)0x00000000)
 
#define RTC_CalibSign_Negative   ((uint32_t)0x00000080)
 
#define RTC_CalibSign_Positive   ((uint32_t)0x00000000)
 
#define RTC_DayLightSaving_ADD1H   ((uint32_t)0x00010000)
 
#define RTC_DayLightSaving_SUB1H   ((uint32_t)0x00020000)
 
#define RTC_FLAG_ALRAF   ((uint32_t)0x00000100)
 
#define RTC_FLAG_ALRAWF   ((uint32_t)0x00000001)
 
#define RTC_FLAG_ALRBF   ((uint32_t)0x00000200)
 
#define RTC_FLAG_ALRBWF   ((uint32_t)0x00000002)
 
#define RTC_FLAG_INITF   ((uint32_t)0x00000040)
 
#define RTC_FLAG_INITS   ((uint32_t)0x00000010)
 
#define RTC_FLAG_RECALPF   ((uint32_t)0x00010000)
 
#define RTC_FLAG_RSF   ((uint32_t)0x00000020)
 
#define RTC_FLAG_SHPF   ((uint32_t)0x00000008)
 
#define RTC_FLAG_TAMP1F   ((uint32_t)0x00002000)
 
#define RTC_FLAG_TAMP2F   ((uint32_t)0x00004000)
 
#define RTC_FLAG_TAMP3F   ((uint32_t)0x00008000)
 
#define RTC_FLAG_TSF   ((uint32_t)0x00000800)
 
#define RTC_FLAG_TSOVF   ((uint32_t)0x00001000)
 
#define RTC_FLAG_WUTF   ((uint32_t)0x00000400)
 
#define RTC_FLAG_WUTWF   ((uint32_t)0x00000004)
 
#define RTC_Format_BCD   ((uint32_t)0x000000001)
 
#define RTC_Format_BIN   ((uint32_t)0x000000000)
 
#define RTC_H12_AM   ((uint8_t)0x00)
 
#define RTC_H12_PM   ((uint8_t)0x40)
 
#define RTC_HourFormat_12   ((uint32_t)0x00000040)
 
#define RTC_HourFormat_24   ((uint32_t)0x00000000)
 
#define RTC_IT_ALRA   ((uint32_t)0x00001000)
 
#define RTC_IT_ALRB   ((uint32_t)0x00002000)
 
#define RTC_IT_TAMP   ((uint32_t)0x00000004) /* Used only to Enable the Tamper Interrupt */
 
#define RTC_IT_TAMP1   ((uint32_t)0x00020000)
 
#define RTC_IT_TAMP2   ((uint32_t)0x00040000)
 
#define RTC_IT_TAMP3   ((uint32_t)0x00080000)
 
#define RTC_IT_TS   ((uint32_t)0x00008000)
 
#define RTC_IT_WUT   ((uint32_t)0x00004000)
 
#define RTC_Month_April   ((uint8_t)0x04)
 
#define RTC_Month_August   ((uint8_t)0x08)
 
#define RTC_Month_December   ((uint8_t)0x12)
 
#define RTC_Month_February   ((uint8_t)0x02)
 
#define RTC_Month_January   ((uint8_t)0x01)
 
#define RTC_Month_July   ((uint8_t)0x07)
 
#define RTC_Month_June   ((uint8_t)0x06)
 
#define RTC_Month_March   ((uint8_t)0x03)
 
#define RTC_Month_May   ((uint8_t)0x05)
 
#define RTC_Month_November   ((uint8_t)0x11)
 
#define RTC_Month_October   ((uint8_t)0x10)
 
#define RTC_Month_September   ((uint8_t)0x09)
 
#define RTC_Output_AlarmA   ((uint32_t)0x00200000)
 
#define RTC_Output_AlarmB   ((uint32_t)0x00400000)
 
#define RTC_Output_Disable   ((uint32_t)0x00000000)
 
#define RTC_Output_WakeUp   ((uint32_t)0x00600000)
 
#define RTC_OutputPolarity_High   ((uint32_t)0x00000000)
 
#define RTC_OutputPolarity_Low   ((uint32_t)0x00100000)
 
#define RTC_OutputType_OpenDrain   ((uint32_t)0x00000000)
 
#define RTC_OutputType_PushPull   ((uint32_t)0x00040000)
 
#define RTC_ShiftAdd1S_Reset   ((uint32_t)0x00000000)
 
#define RTC_ShiftAdd1S_Set   ((uint32_t)0x80000000)
 
#define RTC_SmoothCalibPeriod_16sec   ((uint32_t)0x00002000)
 
#define RTC_SmoothCalibPeriod_32sec   ((uint32_t)0x00000000)
 
#define RTC_SmoothCalibPeriod_8sec   ((uint32_t)0x00004000)
 
#define RTC_SmoothCalibPlusPulses_Reset   ((uint32_t)0x00000000)
 
#define RTC_SmoothCalibPlusPulses_Set   ((uint32_t)0x00008000)
 
#define RTC_StoreOperation_Reset   ((uint32_t)0x00000000)
 
#define RTC_StoreOperation_Set   ((uint32_t)0x00040000)
 
#define RTC_Tamper_1   RTC_TAFCR_TAMP1E
 
#define RTC_Tamper_2   RTC_TAFCR_TAMP2E
 
#define RTC_Tamper_3   RTC_TAFCR_TAMP3E
 
#define RTC_TamperFilter_2Sample   ((uint32_t)0x00000800)
 
#define RTC_TamperFilter_4Sample   ((uint32_t)0x00001000)
 
#define RTC_TamperFilter_8Sample   ((uint32_t)0x00001800)
 
#define RTC_TamperFilter_Disable   ((uint32_t)0x00000000)
 
#define RTC_TamperPrechargeDuration_1RTCCLK   ((uint32_t)0x00000000)
 
#define RTC_TamperPrechargeDuration_2RTCCLK   ((uint32_t)0x00002000)
 
#define RTC_TamperPrechargeDuration_4RTCCLK   ((uint32_t)0x00004000)
 
#define RTC_TamperPrechargeDuration_8RTCCLK   ((uint32_t)0x00006000)
 
#define RTC_TamperSamplingFreq_RTCCLK_Div1024   ((uint32_t)0x00000500)
 
#define RTC_TamperSamplingFreq_RTCCLK_Div16384   ((uint32_t)0x000000100)
 
#define RTC_TamperSamplingFreq_RTCCLK_Div2048   ((uint32_t)0x00000400)
 
#define RTC_TamperSamplingFreq_RTCCLK_Div256   ((uint32_t)0x00000700)
 
#define RTC_TamperSamplingFreq_RTCCLK_Div32768   ((uint32_t)0x00000000)
 
#define RTC_TamperSamplingFreq_RTCCLK_Div4096   ((uint32_t)0x00000300)
 
#define RTC_TamperSamplingFreq_RTCCLK_Div512   ((uint32_t)0x00000600)
 
#define RTC_TamperSamplingFreq_RTCCLK_Div8192   ((uint32_t)0x00000200)
 
#define RTC_TamperTrigger_FallingEdge   ((uint32_t)0x00000001)
 
#define RTC_TamperTrigger_HighLevel   ((uint32_t)0x00000001)
 
#define RTC_TamperTrigger_LowLevel   ((uint32_t)0x00000000)
 
#define RTC_TamperTrigger_RisingEdge   ((uint32_t)0x00000000)
 
#define RTC_TimeStampEdge_Falling   ((uint32_t)0x00000008)
 
#define RTC_TimeStampEdge_Rising   ((uint32_t)0x00000000)
 
#define RTC_WakeUpClock_CK_SPRE_16bits   ((uint32_t)0x00000004)
 
#define RTC_WakeUpClock_CK_SPRE_17bits   ((uint32_t)0x00000006)
 
#define RTC_WakeUpClock_RTCCLK_Div16   ((uint32_t)0x00000000)
 
#define RTC_WakeUpClock_RTCCLK_Div2   ((uint32_t)0x00000003)
 
#define RTC_WakeUpClock_RTCCLK_Div4   ((uint32_t)0x00000002)
 
#define RTC_WakeUpClock_RTCCLK_Div8   ((uint32_t)0x00000001)
 
#define RTC_Weekday_Friday   ((uint8_t)0x05)
 
#define RTC_Weekday_Monday   ((uint8_t)0x01)
 
#define RTC_Weekday_Saturday   ((uint8_t)0x06)
 
#define RTC_Weekday_Sunday   ((uint8_t)0x07)
 
#define RTC_Weekday_Thursday   ((uint8_t)0x04)
 
#define RTC_Weekday_Tuesday   ((uint8_t)0x02)
 
#define RTC_Weekday_Wednesday   ((uint8_t)0x03)
 

Functions

ErrorStatus RTC_AlarmCmd (uint32_t RTC_Alarm, FunctionalState NewState)
 Enables or disables the specified RTC Alarm. More...
 
void RTC_AlarmStructInit (RTC_AlarmTypeDef *RTC_AlarmStruct)
 Fills each RTC_AlarmStruct member with its default value (Time = 00h:00mn:00sec / Date = 1st day of the month/Mask = all fields are masked). More...
 
void RTC_AlarmSubSecondConfig (uint32_t RTC_Alarm, uint32_t RTC_AlarmSubSecondValue, uint32_t RTC_AlarmSubSecondMask)
 Configures the RTC AlarmA/B Subseconds value and mask. More...
 
void RTC_BypassShadowCmd (FunctionalState NewState)
 Enables or Disables the Bypass Shadow feature. More...
 
void RTC_CalibOutputCmd (FunctionalState NewState)
 Enables or disables the RTC clock to be output through the relative pin. More...
 
void RTC_CalibOutputConfig (uint32_t RTC_CalibOutput)
 Configures the Calibration Pinout (RTC_CALIB) Selection (1Hz or 512Hz). More...
 
void RTC_ClearFlag (uint32_t RTC_FLAG)
 Clears the RTC's pending flags. More...
 
void RTC_ClearITPendingBit (uint32_t RTC_IT)
 Clears the RTC's interrupt pending bits. More...
 
void RTC_DateStructInit (RTC_DateTypeDef *RTC_DateStruct)
 Fills each RTC_DateStruct member with its default value (Monday, January 01 xx00). More...
 
void RTC_DayLightSavingConfig (uint32_t RTC_DayLightSaving, uint32_t RTC_StoreOperation)
 Adds or substract one hour from the current time. More...
 
ErrorStatus RTC_DeInit (void)
 Deinitializes the RTC registers to their default reset values. More...
 
ErrorStatus RTC_EnterInitMode (void)
 Enters the RTC Initialization mode. More...
 
void RTC_ExitInitMode (void)
 Exits the RTC Initialization mode. More...
 
void RTC_GetAlarm (uint32_t RTC_Format, uint32_t RTC_Alarm, RTC_AlarmTypeDef *RTC_AlarmStruct)
 Get the RTC Alarm value and masks. More...
 
uint32_t RTC_GetAlarmSubSecond (uint32_t RTC_Alarm)
 Gets the RTC Alarm Subseconds value. More...
 
void RTC_GetDate (uint32_t RTC_Format, RTC_DateTypeDef *RTC_DateStruct)
 Get the RTC current date. More...
 
FlagStatus RTC_GetFlagStatus (uint32_t RTC_FLAG)
 Checks whether the specified RTC flag is set or not. More...
 
ITStatus RTC_GetITStatus (uint32_t RTC_IT)
 Checks whether the specified RTC interrupt has occurred or not. More...
 
uint32_t RTC_GetStoreOperation (void)
 Returns the RTC Day Light Saving stored operation. More...
 
uint32_t RTC_GetSubSecond (void)
 Gets the RTC current Calendar Subseconds value. More...
 
void RTC_GetTime (uint32_t RTC_Format, RTC_TimeTypeDef *RTC_TimeStruct)
 Get the RTC current Time. More...
 
void RTC_GetTimeStamp (uint32_t RTC_Format, RTC_TimeTypeDef *RTC_StampTimeStruct, RTC_DateTypeDef *RTC_StampDateStruct)
 Gets the RTC TimeStamp value and masks. More...
 
uint32_t RTC_GetTimeStampSubSecond (void)
 Gets the RTC timestamp Subseconds value. More...
 
uint32_t RTC_GetWakeUpCounter (void)
 Returns the RTC WakeUp timer counter value. More...
 
ErrorStatus RTC_Init (RTC_InitTypeDef *RTC_InitStruct)
 Initializes the RTC registers according to the specified parameters in RTC_InitStruct. More...
 
void RTC_ITConfig (uint32_t RTC_IT, FunctionalState NewState)
 Enables or disables the specified RTC interrupts. More...
 
void RTC_OutputConfig (uint32_t RTC_Output, uint32_t RTC_OutputPolarity)
 Configures the RTC output source (AFO_ALARM). More...
 
void RTC_OutputTypeConfig (uint32_t RTC_OutputType)
 Configures the RTC Output Pin mode. More...
 
uint32_t RTC_ReadBackupRegister (uint32_t RTC_BKP_DR)
 Reads data from the specified RTC Backup data Register. More...
 
ErrorStatus RTC_RefClockCmd (FunctionalState NewState)
 Enables or disables the RTC reference clock detection. More...
 
void RTC_SetAlarm (uint32_t RTC_Format, uint32_t RTC_Alarm, RTC_AlarmTypeDef *RTC_AlarmStruct)
 Set the specified RTC Alarm. More...
 
ErrorStatus RTC_SetDate (uint32_t RTC_Format, RTC_DateTypeDef *RTC_DateStruct)
 Set the RTC current date. More...
 
ErrorStatus RTC_SetTime (uint32_t RTC_Format, RTC_TimeTypeDef *RTC_TimeStruct)
 Set the RTC current time. More...
 
void RTC_SetWakeUpCounter (uint32_t RTC_WakeUpCounter)
 Configures the RTC Wakeup counter. More...
 
ErrorStatus RTC_SmoothCalibConfig (uint32_t RTC_SmoothCalibPeriod, uint32_t RTC_SmoothCalibPlusPulses, uint32_t RTC_SmouthCalibMinusPulsesValue)
 Configures the Smooth Calibration Settings. More...
 
void RTC_StructInit (RTC_InitTypeDef *RTC_InitStruct)
 Fills each RTC_InitStruct member with its default value. More...
 
ErrorStatus RTC_SynchroShiftConfig (uint32_t RTC_ShiftAdd1S, uint32_t RTC_ShiftSubFS)
 Configures the Synchronization Shift Control Settings. More...
 
void RTC_TamperCmd (uint32_t RTC_Tamper, FunctionalState NewState)
 Enables or Disables the Tamper detection. More...
 
void RTC_TamperFilterConfig (uint32_t RTC_TamperFilter)
 Configures the Tampers Filter. More...
 
void RTC_TamperPinsPrechargeDuration (uint32_t RTC_TamperPrechargeDuration)
 Configures the Tampers Pins input Precharge Duration. More...
 
void RTC_TamperPullUpCmd (FunctionalState NewState)
 Enables or Disables the Precharge of Tamper pin. More...
 
void RTC_TamperSamplingFreqConfig (uint32_t RTC_TamperSamplingFreq)
 Configures the Tampers Sampling Frequency. More...
 
void RTC_TamperTriggerConfig (uint32_t RTC_Tamper, uint32_t RTC_TamperTrigger)
 Configures the select Tamper pin edge. More...
 
void RTC_TimeStampCmd (uint32_t RTC_TimeStampEdge, FunctionalState NewState)
 Enables or Disables the RTC TimeStamp functionality with the specified time stamp pin stimulating edge. More...
 
void RTC_TimeStampOnTamperDetectionCmd (FunctionalState NewState)
 Enables or Disables the TimeStamp on Tamper Detection Event. More...
 
void RTC_TimeStructInit (RTC_TimeTypeDef *RTC_TimeStruct)
 Fills each RTC_TimeStruct member with its default value (Time = 00h:00min:00sec). More...
 
ErrorStatus RTC_WaitForSynchro (void)
 Waits until the RTC Time and Date registers (RTC_TR and RTC_DR) are synchronized with RTC APB clock. More...
 
void RTC_WakeUpClockConfig (uint32_t RTC_WakeUpClock)
 Configures the RTC Wakeup clock source. More...
 
ErrorStatus RTC_WakeUpCmd (FunctionalState NewState)
 Enables or Disables the RTC WakeUp timer. More...
 
void RTC_WriteBackupRegister (uint32_t RTC_BKP_DR, uint32_t Data)
 Writes a data in a specified RTC Backup data register. More...
 
void RTC_WriteProtectionCmd (FunctionalState NewState)
 Enables or disables the RTC registers write protection. More...
 

Detailed Description

This file contains all the functions prototypes for the RTC firmware library.

Author
MCD Application Team
Version
V1.1.1
Date
04-April-2014
Attention

© COPYRIGHT 2014 STMicroelectronics

Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:

   http://www.st.com/software_license_agreement_liberty_v2

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file stm32f30x_rtc.h.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Thu Oct 24 2019 03:17:21