STM32F479xx HAL User Manual
|
RTC LL module driver. More...
#include "stm32f4xx_ll_rtc.h"
#include "stm32f4xx_ll_cortex.h"
Go to the source code of this file.
Defines | |
#define | assert_param(expr) ((void)0U) |
#define | RTC_ASYNCH_PRESC_DEFAULT 0x0000007FU |
#define | RTC_SYNCH_PRESC_DEFAULT 0x000000FFU |
#define | RTC_INITMODE_TIMEOUT 1000U /* 1s when tick set to 1ms */ |
#define | RTC_SYNCHRO_TIMEOUT 1000U /* 1s when tick set to 1ms */ |
#define | IS_LL_RTC_HOURFORMAT(__VALUE__) |
#define | IS_LL_RTC_ASYNCH_PREDIV(__VALUE__) ((__VALUE__) <= 0x7FU) |
#define | IS_LL_RTC_SYNCH_PREDIV(__VALUE__) ((__VALUE__) <= 0x7FFFU) |
#define | IS_LL_RTC_FORMAT(__VALUE__) |
#define | IS_LL_RTC_TIME_FORMAT(__VALUE__) |
#define | IS_LL_RTC_HOUR12(__HOUR__) (((__HOUR__) > 0U) && ((__HOUR__) <= 12U)) |
#define | IS_LL_RTC_HOUR24(__HOUR__) ((__HOUR__) <= 23U) |
#define | IS_LL_RTC_MINUTES(__MINUTES__) ((__MINUTES__) <= 59U) |
#define | IS_LL_RTC_SECONDS(__SECONDS__) ((__SECONDS__) <= 59U) |
#define | IS_LL_RTC_WEEKDAY(__VALUE__) |
#define | IS_LL_RTC_DAY(__DAY__) (((__DAY__) >= 1U) && ((__DAY__) <= 31U)) |
#define | IS_LL_RTC_MONTH(__MONTH__) (((__MONTH__) >= 1U) && ((__MONTH__) <= 12U)) |
#define | IS_LL_RTC_YEAR(__YEAR__) ((__YEAR__) <= 99U) |
#define | IS_LL_RTC_ALMA_MASK(__VALUE__) |
#define | IS_LL_RTC_ALMB_MASK(__VALUE__) |
#define | IS_LL_RTC_ALMA_DATE_WEEKDAY_SEL(__SEL__) |
#define | IS_LL_RTC_ALMB_DATE_WEEKDAY_SEL(__SEL__) |
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_DATE_Init (RTC_TypeDef *RTCx, uint32_t RTC_Format, LL_RTC_DateTypeDef *RTC_DateStruct) |
Set the RTC current date. | |
void | LL_RTC_DATE_StructInit (LL_RTC_DateTypeDef *RTC_DateStruct) |
Set each LL_RTC_DateTypeDef field to default value (date = Monday, January 01 xx00) | |
ErrorStatus | LL_RTC_ALMA_Init (RTC_TypeDef *RTCx, uint32_t RTC_Format, LL_RTC_AlarmTypeDef *RTC_AlarmStruct) |
Set the RTC Alarm A. | |
ErrorStatus | LL_RTC_ALMB_Init (RTC_TypeDef *RTCx, uint32_t RTC_Format, LL_RTC_AlarmTypeDef *RTC_AlarmStruct) |
Set the RTC Alarm B. | |
void | LL_RTC_ALMA_StructInit (LL_RTC_AlarmTypeDef *RTC_AlarmStruct) |
Set each LL_RTC_AlarmTypeDef of ALARMA field to default value (Time = 00h:00mn:00sec / Day = 1st day of the month/Mask = all fields are masked). | |
void | LL_RTC_ALMB_StructInit (LL_RTC_AlarmTypeDef *RTC_AlarmStruct) |
Set each LL_RTC_AlarmTypeDef of ALARMA 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_WaitForSynchro (RTC_TypeDef *RTCx) |
Waits until the RTC Time and Day registers (RTC_TR and RTC_DR) are synchronized with RTC APB clock. |
RTC LL module driver.
This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause
Definition in file stm32f4xx_ll_rtc.c.
#define assert_param | ( | expr | ) | ((void)0U) |
Definition at line 27 of file stm32f4xx_ll_rtc.c.
Referenced by LL_RTC_ALMA_Init(), LL_RTC_ALMB_Init(), LL_RTC_DATE_Init(), LL_RTC_DeInit(), LL_RTC_EnterInitMode(), LL_RTC_ExitInitMode(), LL_RTC_Init(), LL_RTC_TIME_Init(), and LL_RTC_WaitForSynchro().