STM32F103xB HAL User Manual
|
Functions | |
ErrorStatus | LL_RTC_DeInit (RTC_TypeDef *RTCx) |
De-Initializes the RTC registers to their default reset values. | |
ErrorStatus | LL_RTC_Init (RTC_TypeDef *RTCx, LL_RTC_InitTypeDef *RTC_InitStruct) |
Initializes the RTC registers according to the specified parameters in RTC_InitStruct. | |
void | LL_RTC_StructInit (LL_RTC_InitTypeDef *RTC_InitStruct) |
Set each LL_RTC_InitTypeDef field to default value. | |
ErrorStatus | LL_RTC_TIME_Init (RTC_TypeDef *RTCx, uint32_t RTC_Format, LL_RTC_TimeTypeDef *RTC_TimeStruct) |
Set the RTC current time. | |
void | LL_RTC_TIME_StructInit (LL_RTC_TimeTypeDef *RTC_TimeStruct) |
Set each LL_RTC_TimeTypeDef field to default value (Time = 00h:00min:00sec). | |
ErrorStatus | LL_RTC_ALARM_Init (RTC_TypeDef *RTCx, uint32_t RTC_Format, LL_RTC_AlarmTypeDef *RTC_AlarmStruct) |
Set the RTC Alarm. | |
void | LL_RTC_ALARM_StructInit (LL_RTC_AlarmTypeDef *RTC_AlarmStruct) |
Set each LL_RTC_AlarmTypeDef of ALARM field to default value (Time = 00h:00mn:00sec / Day = 1st day of the month/Mask = all fields are masked). | |
ErrorStatus | LL_RTC_EnterInitMode (RTC_TypeDef *RTCx) |
Enters the RTC Initialization mode. | |
ErrorStatus | LL_RTC_ExitInitMode (RTC_TypeDef *RTCx) |
Exit the RTC Initialization mode. | |
ErrorStatus | LL_RTC_TIME_SetCounter (RTC_TypeDef *RTCx, uint32_t TimeCounter) |
Set the Time Counter. | |
ErrorStatus | LL_RTC_ALARM_SetCounter (RTC_TypeDef *RTCx, uint32_t AlarmCounter) |
Set Alarm Counter. | |
ErrorStatus | LL_RTC_WaitForSynchro (RTC_TypeDef *RTCx) |
Waits until the RTC registers are synchronized with RTC APB clock. |
ErrorStatus LL_RTC_ALARM_Init | ( | RTC_TypeDef * | RTCx, |
uint32_t | RTC_Format, | ||
LL_RTC_AlarmTypeDef * | RTC_AlarmStruct | ||
) |
Set the RTC Alarm.
RTCx | RTC Instance |
RTC_Format | This parameter can be one of the following values: |
RTC_AlarmStruct | pointer to a LL_RTC_AlarmTypeDef structure that contains the alarm configuration parameters. |
An | ErrorStatus enumeration value:
|
Definition at line 297 of file stm32f1xx_ll_rtc.c.
References __LL_RTC_CONVERT_BCD2BIN, LL_RTC_AlarmTypeDef::AlarmTime, assert_param, LL_RTC_TimeTypeDef::Hours, IS_LL_RTC_FORMAT, IS_LL_RTC_HOUR24, IS_LL_RTC_MINUTES, IS_LL_RTC_SECONDS, LL_RTC_ALARM_Set(), LL_RTC_EnterInitMode(), LL_RTC_ExitInitMode(), LL_RTC_FORMAT_BIN, LL_RTC_TimeTypeDef::Minutes, and LL_RTC_TimeTypeDef::Seconds.
ErrorStatus LL_RTC_ALARM_SetCounter | ( | RTC_TypeDef * | RTCx, |
uint32_t | AlarmCounter | ||
) |
Set Alarm Counter.
RTCx | RTC Instance |
AlarmCounter | this value can be from 0 to 0xFFFFFFFF |
An | ErrorStatus enumeration value:
|
Definition at line 467 of file stm32f1xx_ll_rtc.c.
References assert_param, LL_RTC_ALARM_Set(), LL_RTC_EnterInitMode(), and LL_RTC_ExitInitMode().
void LL_RTC_ALARM_StructInit | ( | LL_RTC_AlarmTypeDef * | RTC_AlarmStruct | ) |
Set each LL_RTC_AlarmTypeDef of ALARM field to default value (Time = 00h:00mn:00sec / Day = 1st day of the month/Mask = all fields are masked).
RTC_AlarmStruct | pointer to a LL_RTC_AlarmTypeDef structure which will be initialized. |
None |
Definition at line 350 of file stm32f1xx_ll_rtc.c.
References LL_RTC_AlarmTypeDef::AlarmTime, LL_RTC_TimeTypeDef::Hours, LL_RTC_TimeTypeDef::Minutes, and LL_RTC_TimeTypeDef::Seconds.
ErrorStatus LL_RTC_DeInit | ( | RTC_TypeDef * | RTCx | ) |
De-Initializes the RTC registers to their default reset values.
RTCx | RTC Instance |
An | ErrorStatus enumeration value:
|
Definition at line 96 of file stm32f1xx_ll_rtc.c.
References assert_param, LL_RTC_ClearFlag_RS(), LL_RTC_DisableWriteProtection(), LL_RTC_EnableWriteProtection(), LL_RTC_EnterInitMode(), LL_RTC_ExitInitMode(), LL_RTC_WaitForSynchro(), and LL_RTC_WriteReg.
ErrorStatus LL_RTC_EnterInitMode | ( | RTC_TypeDef * | RTCx | ) |
Enters the RTC Initialization mode.
RTCx | RTC Instance |
An | ErrorStatus enumeration value:
|
Definition at line 365 of file stm32f1xx_ll_rtc.c.
References assert_param, LL_RTC_DisableWriteProtection(), LL_RTC_IsActiveFlag_RTOF(), LL_SYSTICK_IsActiveCounterFlag(), and RTC_INITMODE_TIMEOUT.
Referenced by LL_RTC_ALARM_Init(), LL_RTC_ALARM_SetCounter(), LL_RTC_DeInit(), LL_RTC_Init(), LL_RTC_TIME_Init(), and LL_RTC_TIME_SetCounter().
ErrorStatus LL_RTC_ExitInitMode | ( | RTC_TypeDef * | RTCx | ) |
Exit the RTC Initialization mode.
RTCx | RTC Instance |
An | ErrorStatus enumeration value:
|
Definition at line 404 of file stm32f1xx_ll_rtc.c.
References assert_param, LL_RTC_EnableWriteProtection(), LL_RTC_IsActiveFlag_RTOF(), LL_SYSTICK_IsActiveCounterFlag(), and RTC_INITMODE_TIMEOUT.
Referenced by LL_RTC_ALARM_Init(), LL_RTC_ALARM_SetCounter(), LL_RTC_DeInit(), LL_RTC_Init(), LL_RTC_TIME_Init(), and LL_RTC_TIME_SetCounter().
ErrorStatus LL_RTC_Init | ( | RTC_TypeDef * | RTCx, |
LL_RTC_InitTypeDef * | RTC_InitStruct | ||
) |
Initializes the RTC registers according to the specified parameters in RTC_InitStruct.
RTCx | RTC Instance |
RTC_InitStruct | pointer to a LL_RTC_InitTypeDef structure that contains the configuration information for the RTC peripheral. |
An | ErrorStatus enumeration value:
|
Definition at line 157 of file stm32f1xx_ll_rtc.c.
References assert_param, LL_RTC_InitTypeDef::AsynchPrescaler, IS_LL_RTC_ASYNCH_PREDIV, IS_LL_RTC_CALIB_OUTPUT, LL_RTC_CALIB_OUTPUT_NONE, LL_RTC_ClearFlag_ALR(), LL_RTC_ClearFlag_OW(), LL_RTC_ClearFlag_SEC(), LL_RTC_EnterInitMode(), LL_RTC_ExitInitMode(), LL_RTC_SetAsynchPrescaler(), LL_RTC_SetOutputSource(), LL_RTC_TAMPER_Disable(), LL_RTC_WaitForSynchro(), and LL_RTC_InitTypeDef::OutPutSource.
void LL_RTC_StructInit | ( | LL_RTC_InitTypeDef * | RTC_InitStruct | ) |
Set each LL_RTC_InitTypeDef field to default value.
RTC_InitStruct | pointer to a LL_RTC_InitTypeDef structure which will be initialized. |
None |
Definition at line 201 of file stm32f1xx_ll_rtc.c.
References LL_RTC_InitTypeDef::AsynchPrescaler, LL_RTC_CALIB_OUTPUT_NONE, LL_RTC_InitTypeDef::OutPutSource, and RTC_ASYNCH_PRESC_DEFAULT.
ErrorStatus LL_RTC_TIME_Init | ( | RTC_TypeDef * | RTCx, |
uint32_t | RTC_Format, | ||
LL_RTC_TimeTypeDef * | RTC_TimeStruct | ||
) |
Set the RTC current time.
RTCx | RTC Instance |
RTC_Format | This parameter can be one of the following values: |
RTC_TimeStruct | pointer to a RTC_TimeTypeDef structure that contains the time configuration information for the RTC. |
An | ErrorStatus enumeration value:
|
Definition at line 222 of file stm32f1xx_ll_rtc.c.
References __LL_RTC_CONVERT_BCD2BIN, assert_param, LL_RTC_TimeTypeDef::Hours, IS_LL_RTC_FORMAT, IS_LL_RTC_HOUR24, IS_LL_RTC_MINUTES, IS_LL_RTC_SECONDS, LL_RTC_EnterInitMode(), LL_RTC_ExitInitMode(), LL_RTC_FORMAT_BIN, LL_RTC_TIME_Set(), LL_RTC_TimeTypeDef::Minutes, and LL_RTC_TimeTypeDef::Seconds.
ErrorStatus LL_RTC_TIME_SetCounter | ( | RTC_TypeDef * | RTCx, |
uint32_t | TimeCounter | ||
) |
Set the Time Counter.
RTCx | RTC Instance |
TimeCounter | this value can be from 0 to 0xFFFFFFFF |
An | ErrorStatus enumeration value:
|
Definition at line 441 of file stm32f1xx_ll_rtc.c.
References assert_param, LL_RTC_EnterInitMode(), LL_RTC_ExitInitMode(), and LL_RTC_TIME_Set().
void LL_RTC_TIME_StructInit | ( | LL_RTC_TimeTypeDef * | RTC_TimeStruct | ) |
Set each LL_RTC_TimeTypeDef field to default value (Time = 00h:00min:00sec).
RTC_TimeStruct | pointer to a LL_RTC_TimeTypeDef structure which will be initialized. |
None |
Definition at line 275 of file stm32f1xx_ll_rtc.c.
References LL_RTC_TimeTypeDef::Hours, LL_RTC_TimeTypeDef::Minutes, and LL_RTC_TimeTypeDef::Seconds.
ErrorStatus LL_RTC_WaitForSynchro | ( | RTC_TypeDef * | RTCx | ) |
Waits until the RTC registers are synchronized with RTC APB clock.
RTCx | RTC Instance |
An | ErrorStatus enumeration value:
|
Definition at line 494 of file stm32f1xx_ll_rtc.c.
References assert_param, LL_RTC_ClearFlag_RS(), LL_RTC_IsActiveFlag_RS(), LL_SYSTICK_IsActiveCounterFlag(), and RTC_SYNCHRO_TIMEOUT.
Referenced by LL_RTC_DeInit(), and LL_RTC_Init().