Modules | |
Initialization and Configuration functions | |
Initialization and Configuration functions. | |
Time and Date configuration functions | |
Time and Date configuration functions. | |
Alarms configuration functions | |
Alarms (Alarm A and Alarm B) configuration functions. | |
WakeUp Timer configuration functions | |
WakeUp Timer configuration functions. | |
Daylight Saving configuration functions | |
Daylight Saving configuration functions. | |
Output pin Configuration function | |
Output pin Configuration function. | |
Digital Calibration configuration functions | |
Coarse Calibration configuration functions. | |
TimeStamp configuration functions | |
TimeStamp configuration functions. | |
Tampers configuration functions | |
Tampers configuration functions. | |
Backup Data Registers configuration functions | |
Backup Data Registers configuration functions. | |
RTC Tamper and TimeStamp Pins Selection and Output Type Config configuration functions | |
RTC Tamper and TimeStamp Pins Selection and Output Type Config configuration functions. | |
Shift control synchronisation functions | |
Shift control synchronisation functions. | |
Interrupts and flags management functions | |
Interrupts and flags management functions. | |
Functions | |
static uint8_t | RTC_Bcd2ToByte (uint8_t Value) |
Convert from 2 digit BCD to Binary. More... | |
static uint8_t | RTC_ByteToBcd2 (uint8_t Value) |
Converts a 2 digit decimal to BCD format. More... | |
void | RTC_ClearFlag (uint16_t RTC_FLAG) |
Clears the RTC's pending flags. More... | |
void | RTC_ClearITPendingBit (uint16_t RTC_IT) |
Clears the RTC's interrupt pending bits. More... | |
void | RTC_EnterConfigMode (void) |
Enters the RTC configuration mode. More... | |
void | RTC_ExitConfigMode (void) |
Exits from the RTC configuration mode. More... | |
uint32_t | RTC_GetCounter (void) |
Gets the RTC counter value. More... | |
uint32_t | RTC_GetDivider (void) |
Gets the RTC divider value. More... | |
FlagStatus | RTC_GetFlagStatus (uint16_t RTC_FLAG) |
Checks whether the specified RTC flag is set or not. More... | |
ITStatus | RTC_GetITStatus (uint16_t RTC_IT) |
Checks whether the specified RTC interrupt has occurred or not. More... | |
void | RTC_ITConfig (uint16_t RTC_IT, FunctionalState NewState) |
Enables or disables the specified RTC interrupts. More... | |
void | RTC_SetAlarm (uint32_t AlarmValue) |
Sets the RTC alarm value. More... | |
void | RTC_SetCounter (uint32_t CounterValue) |
Sets the RTC counter value. More... | |
void | RTC_SetPrescaler (uint32_t PrescalerValue) |
Sets the RTC prescaler value. More... | |
void | RTC_WaitForLastTask (void) |
Waits until last write operation on RTC registers has finished. More... | |
void | RTC_WaitForSynchro (void) |
Waits until the RTC registers (RTC_CNT, RTC_ALR and RTC_PRL) are synchronized with RTC APB clock. More... | |
|
static |
Convert from 2 digit BCD to Binary.
Value | BCD value to be converted. |
Converted | word |
Definition at line 2579 of file stm32f30x_rtc.c.
|
static |
Converts a 2 digit decimal to BCD format.
Value | Byte to be converted. |
Converted | byte |
Definition at line 2561 of file stm32f30x_rtc.c.
void RTC_ClearFlag | ( | uint16_t | RTC_FLAG | ) |
Clears the RTC's pending flags.
RTC_FLAG | specifies the flag to clear. This parameter can be any combination of the following values:
|
None |
Definition at line 273 of file stm32f10x_rtc.c.
void RTC_ClearITPendingBit | ( | uint16_t | RTC_IT | ) |
Clears the RTC's interrupt pending bits.
RTC_IT | specifies the interrupt pending bit to clear. This parameter can be any combination of the following values:
|
None |
Definition at line 318 of file stm32f10x_rtc.c.
void RTC_EnterConfigMode | ( | void | ) |
Enters the RTC configuration mode.
None |
None |
Definition at line 111 of file stm32f10x_rtc.c.
void RTC_ExitConfigMode | ( | void | ) |
Exits from the RTC configuration mode.
None |
None |
Definition at line 122 of file stm32f10x_rtc.c.
uint32_t RTC_GetCounter | ( | void | ) |
Gets the RTC counter value.
None |
RTC | counter value. |
Definition at line 133 of file stm32f10x_rtc.c.
uint32_t RTC_GetDivider | ( | void | ) |
Gets the RTC divider value.
None |
RTC | Divider value. |
Definition at line 193 of file stm32f10x_rtc.c.
FlagStatus RTC_GetFlagStatus | ( | uint16_t | RTC_FLAG | ) |
Checks whether the specified RTC flag is set or not.
RTC_FLAG | specifies the flag to check. This parameter can be one the following values:
|
The | new state of RTC_FLAG (SET or RESET). |
Definition at line 244 of file stm32f10x_rtc.c.
ITStatus RTC_GetITStatus | ( | uint16_t | RTC_IT | ) |
Checks whether the specified RTC interrupt has occurred or not.
RTC_IT | specifies the RTC interrupts sources to check. This parameter can be one of the following values:
|
The | new state of the RTC_IT (SET or RESET). |
Definition at line 291 of file stm32f10x_rtc.c.
void RTC_ITConfig | ( | uint16_t | RTC_IT, |
FunctionalState | NewState | ||
) |
Enables or disables the specified RTC interrupts.
RTC_IT | specifies the RTC interrupts sources to be enabled or disabled. This parameter can be any combination of the following values:
|
NewState | new state of the specified RTC interrupts. This parameter can be: ENABLE or DISABLE. |
None |
Definition at line 90 of file stm32f10x_rtc.c.
void RTC_SetAlarm | ( | uint32_t | AlarmValue | ) |
Sets the RTC alarm value.
AlarmValue | RTC alarm new value. |
None |
Definition at line 178 of file stm32f10x_rtc.c.
void RTC_SetCounter | ( | uint32_t | CounterValue | ) |
Sets the RTC counter value.
CounterValue | RTC counter new value. |
None |
Definition at line 145 of file stm32f10x_rtc.c.
void RTC_SetPrescaler | ( | uint32_t | PrescalerValue | ) |
Sets the RTC prescaler value.
PrescalerValue | RTC prescaler new value. |
None |
Definition at line 160 of file stm32f10x_rtc.c.
void RTC_WaitForLastTask | ( | void | ) |
Waits until last write operation on RTC registers has finished.
None |
None |
Definition at line 207 of file stm32f10x_rtc.c.
void RTC_WaitForSynchro | ( | void | ) |
Waits until the RTC registers (RTC_CNT, RTC_ALR and RTC_PRL) are synchronized with RTC APB clock.
Waits until the RTC Time and Date registers (RTC_TR and RTC_DR) are synchronized with RTC APB clock.
None |
None |
Definition at line 223 of file stm32f10x_rtc.c.