STM32F439xx 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(__VALUE__) |
#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.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file stm32f4xx_ll_rtc.c.
#define assert_param | ( | expr | ) | ((void)0U) |
Definition at line 43 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().