Header file of RTC HAL module. More...
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_HandleTypeDef |
RTC Handle Structure definition. More... | |
struct | RTC_InitTypeDef |
RTC Configuration Structure definition. More... | |
struct | RTC_TimeTypeDef |
RTC Time structure definition. More... | |
Macros | |
#define | __HAL_RTC_ALARM_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->ISR) = (~(((__FLAG__) | RTC_ISR_INIT)& 0x0000FFFFU)|((__HANDLE__)->Instance->ISR & RTC_ISR_INIT)) |
Clear the RTC Alarm's pending flags. More... | |
#define | __HAL_RTC_ALARM_DISABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->CR &= ~(__INTERRUPT__)) |
Disable the RTC Alarm interrupt. More... | |
#define | __HAL_RTC_ALARM_ENABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->CR |= (__INTERRUPT__)) |
Enable the RTC Alarm interrupt. More... | |
#define | __HAL_RTC_ALARM_EXTI_CLEAR_FLAG() (EXTI->PR = RTC_EXTI_LINE_ALARM_EVENT) |
Clear the RTC Alarm associated Exti line flag. More... | |
#define | __HAL_RTC_ALARM_EXTI_DISABLE_EVENT() (EXTI->EMR &= ~(RTC_EXTI_LINE_ALARM_EVENT)) |
Disable event on the RTC Alarm associated Exti line. More... | |
#define | __HAL_RTC_ALARM_EXTI_DISABLE_FALLING_EDGE() (EXTI->FTSR &= ~(RTC_EXTI_LINE_ALARM_EVENT)) |
Disable falling edge trigger on the RTC Alarm associated Exti line. More... | |
#define | __HAL_RTC_ALARM_EXTI_DISABLE_IT() (EXTI->IMR &= ~(RTC_EXTI_LINE_ALARM_EVENT)) |
Disable interrupt on the RTC Alarm associated Exti line. More... | |
#define | __HAL_RTC_ALARM_EXTI_DISABLE_RISING_EDGE() (EXTI->RTSR &= ~(RTC_EXTI_LINE_ALARM_EVENT)) |
Disable rising edge trigger on the RTC Alarm associated Exti line. More... | |
#define | __HAL_RTC_ALARM_EXTI_DISABLE_RISING_FALLING_EDGE() __HAL_RTC_ALARM_EXTI_DISABLE_RISING_EDGE();__HAL_RTC_ALARM_EXTI_DISABLE_FALLING_EDGE(); |
Disable rising & falling edge trigger on the RTC Alarm associated Exti line. More... | |
#define | __HAL_RTC_ALARM_EXTI_ENABLE_EVENT() (EXTI->EMR |= RTC_EXTI_LINE_ALARM_EVENT) |
Enable event on the RTC Alarm associated Exti line. More... | |
#define | __HAL_RTC_ALARM_EXTI_ENABLE_FALLING_EDGE() (EXTI->FTSR |= RTC_EXTI_LINE_ALARM_EVENT) |
Enable falling edge trigger on the RTC Alarm associated Exti line. More... | |
#define | __HAL_RTC_ALARM_EXTI_ENABLE_IT() (EXTI->IMR |= RTC_EXTI_LINE_ALARM_EVENT) |
Enable interrupt on the RTC Alarm associated Exti line. More... | |
#define | __HAL_RTC_ALARM_EXTI_ENABLE_RISING_EDGE() (EXTI->RTSR |= RTC_EXTI_LINE_ALARM_EVENT) |
Enable rising edge trigger on the RTC Alarm associated Exti line. More... | |
#define | __HAL_RTC_ALARM_EXTI_ENABLE_RISING_FALLING_EDGE() __HAL_RTC_ALARM_EXTI_ENABLE_RISING_EDGE();__HAL_RTC_ALARM_EXTI_ENABLE_FALLING_EDGE(); |
Enable rising & falling edge trigger on the RTC Alarm associated Exti line. More... | |
#define | __HAL_RTC_ALARM_EXTI_GENERATE_SWIT() (EXTI->SWIER |= RTC_EXTI_LINE_ALARM_EVENT) |
Generate a Software interrupt on RTC Alarm associated Exti line. More... | |
#define | __HAL_RTC_ALARM_EXTI_GET_FLAG() (EXTI->PR & RTC_EXTI_LINE_ALARM_EVENT) |
Check whether the RTC Alarm associated Exti line interrupt flag is set or not. More... | |
#define | __HAL_RTC_ALARM_GET_FLAG(__HANDLE__, __FLAG__) (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) != RESET)? SET : RESET) |
Get the selected RTC Alarm's flag status. More... | |
#define | __HAL_RTC_ALARM_GET_IT(__HANDLE__, __INTERRUPT__) ((((((__HANDLE__)->Instance->ISR)& ((__INTERRUPT__)>> 4U)) & 0x0000FFFFU) != RESET)? SET : RESET) |
Check whether the specified RTC Alarm interrupt has occurred or not. More... | |
#define | __HAL_RTC_ALARM_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) (((((__HANDLE__)->Instance->CR) & (__INTERRUPT__)) != RESET) ? SET : RESET) |
Check whether the specified RTC Alarm interrupt has been enabled or not. More... | |
#define | __HAL_RTC_ALARMA_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~(RTC_CR_ALRAE)) |
Disable the RTC ALARMA peripheral. More... | |
#define | __HAL_RTC_ALARMA_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR |= (RTC_CR_ALRAE)) |
Enable the RTC ALARMA peripheral. More... | |
#define | __HAL_RTC_ALARMB_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~(RTC_CR_ALRBE)) |
Disable the RTC ALARMB peripheral. More... | |
#define | __HAL_RTC_ALARMB_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR |= (RTC_CR_ALRBE)) |
Enable the RTC ALARMB peripheral. More... | |
#define | __HAL_RTC_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_RTC_STATE_RESET) |
Reset RTC handle state. More... | |
#define | __HAL_RTC_WRITEPROTECTION_DISABLE(__HANDLE__) |
Disable the write protection for RTC registers. More... | |
#define | __HAL_RTC_WRITEPROTECTION_ENABLE(__HANDLE__) |
Enable the write protection for RTC registers. More... | |
#define | IS_RTC_ALARM(__ALARM__) (((__ALARM__) == RTC_ALARM_A) || ((__ALARM__) == RTC_ALARM_B)) |
#define | IS_RTC_ALARM_DATE_WEEKDAY_DATE(__DATE__) (((__DATE__) >0U) && ((__DATE__) <= 31U)) |
#define | IS_RTC_ALARM_DATE_WEEKDAY_SEL(__SEL__) |
#define | IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY(__WEEKDAY__) |
#define | IS_RTC_ALARM_MASK(__MASK__) (((__MASK__) & 0x7F7F7F7FU) == (uint32_t)RESET) |
#define | IS_RTC_ALARM_SUB_SECOND_MASK(__MASK__) |
#define | IS_RTC_ALARM_SUB_SECOND_VALUE(__VALUE__) ((__VALUE__) <= 0x00007FFFU) |
#define | IS_RTC_ASYNCH_PREDIV(__PREDIV__) ((__PREDIV__) <= 0x7FU) |
#define | IS_RTC_DATE(__DATE__) (((__DATE__) >= 1U) && ((__DATE__) <= 31U)) |
#define | IS_RTC_DAYLIGHT_SAVING(__SAVE__) |
#define | IS_RTC_FORMAT(__FORMAT__) (((__FORMAT__) == RTC_FORMAT_BIN) || ((__FORMAT__) == RTC_FORMAT_BCD)) |
#define | IS_RTC_HOUR12(__HOUR__) (((__HOUR__) > 0U) && ((__HOUR__) <= 12U)) |
#define | IS_RTC_HOUR24(__HOUR__) ((__HOUR__) <= 23U) |
#define | IS_RTC_HOUR_FORMAT(__FORMAT__) |
#define | IS_RTC_HOURFORMAT12(__PM__) (((__PM__) == RTC_HOURFORMAT12_AM) || ((__PM__) == RTC_HOURFORMAT12_PM)) |
#define | IS_RTC_MINUTES(__MINUTES__) ((__MINUTES__) <= 59U) |
#define | IS_RTC_MONTH(__MONTH__) (((__MONTH__) >= 1U) && ((__MONTH__) <= 12U)) |
#define | IS_RTC_OUTPUT_POL(__POL__) |
#define | IS_RTC_OUTPUT_TYPE(__TYPE__) |
#define | IS_RTC_SECONDS(__SECONDS__) ((__SECONDS__) <= 59U) |
#define | IS_RTC_STORE_OPERATION(__OPERATION__) |
#define | IS_RTC_SYNCH_PREDIV(__PREDIV__) ((__PREDIV__) <= 0x7FFFU) |
#define | IS_RTC_WEEKDAY(__WEEKDAY__) |
#define | IS_RTC_YEAR(__YEAR__) ((__YEAR__) <= 99U) |
#define | RTC_ALARM_A RTC_CR_ALRAE |
#define | RTC_ALARM_B RTC_CR_ALRBE |
#define | RTC_ALARMDATEWEEKDAYSEL_DATE 0x00000000U |
#define | RTC_ALARMDATEWEEKDAYSEL_WEEKDAY 0x40000000U |
#define | RTC_ALARMMASK_ALL 0x80808080U |
#define | RTC_ALARMMASK_DATEWEEKDAY RTC_ALRMAR_MSK4 |
#define | RTC_ALARMMASK_HOURS RTC_ALRMAR_MSK3 |
#define | RTC_ALARMMASK_MINUTES RTC_ALRMAR_MSK2 |
#define | RTC_ALARMMASK_NONE 0x00000000U |
#define | RTC_ALARMMASK_SECONDS RTC_ALRMAR_MSK1 |
#define | RTC_ALARMSUBSECONDMASK_ALL 0x00000000U |
#define | RTC_ALARMSUBSECONDMASK_NONE 0x0F000000U |
#define | RTC_ALARMSUBSECONDMASK_SS14 0x0E000000U |
#define | RTC_ALARMSUBSECONDMASK_SS14_1 0x01000000U |
#define | RTC_ALARMSUBSECONDMASK_SS14_10 0x0A000000U |
#define | RTC_ALARMSUBSECONDMASK_SS14_11 0x0B000000U |
#define | RTC_ALARMSUBSECONDMASK_SS14_12 0x0C000000U |
#define | RTC_ALARMSUBSECONDMASK_SS14_13 0x0D000000U |
#define | RTC_ALARMSUBSECONDMASK_SS14_2 0x02000000U |
#define | RTC_ALARMSUBSECONDMASK_SS14_3 0x03000000U |
#define | RTC_ALARMSUBSECONDMASK_SS14_4 0x04000000U |
#define | RTC_ALARMSUBSECONDMASK_SS14_5 0x05000000U |
#define | RTC_ALARMSUBSECONDMASK_SS14_6 0x06000000U |
#define | RTC_ALARMSUBSECONDMASK_SS14_7 0x07000000U |
#define | RTC_ALARMSUBSECONDMASK_SS14_8 0x08000000U |
#define | RTC_ALARMSUBSECONDMASK_SS14_9 0x09000000U |
#define | RTC_DAYLIGHTSAVING_ADD1H 0x00010000U |
#define | RTC_DAYLIGHTSAVING_NONE 0x00000000U |
#define | RTC_DAYLIGHTSAVING_SUB1H 0x00020000U |
#define | RTC_DR_RESERVED_MASK 0x00FFFF3FU |
#define | RTC_EXTI_LINE_ALARM_EVENT EXTI_IMR_IM17 |
#define | RTC_FLAG_ALRAF RTC_ISR_ALRAF |
#define | RTC_FLAG_ALRAWF RTC_ISR_ALRAWF |
#define | RTC_FLAG_ALRBF RTC_ISR_ALRBF |
#define | RTC_FLAG_ALRBWF RTC_ISR_ALRBWF |
#define | RTC_FLAG_INITF RTC_ISR_INITF |
#define | RTC_FLAG_INITS RTC_ISR_INITS |
#define | RTC_FLAG_ITSF RTC_ISR_ITSF |
#define | RTC_FLAG_RECALPF RTC_ISR_RECALPF |
#define | RTC_FLAG_RSF RTC_ISR_RSF |
#define | RTC_FLAG_SHPF RTC_ISR_SHPF |
#define | RTC_FLAG_TAMP1F RTC_ISR_TAMP1F |
#define | RTC_FLAG_TAMP2F RTC_ISR_TAMP2F |
#define | RTC_FLAG_TAMP3F RTC_ISR_TAMP3F |
#define | RTC_FLAG_TSF RTC_ISR_TSF |
#define | RTC_FLAG_TSOVF RTC_ISR_TSOVF |
#define | RTC_FLAG_WUTF RTC_ISR_WUTF |
#define | RTC_FLAG_WUTWF RTC_ISR_WUTWF |
#define | RTC_FORMAT_BCD 0x00000001U |
#define | RTC_FORMAT_BIN 0x00000000U |
#define | RTC_HOURFORMAT12_AM ((uint8_t)0x00U) |
#define | RTC_HOURFORMAT12_PM ((uint8_t)0x40U) |
#define | RTC_HOURFORMAT_12 0x00000040U |
#define | RTC_HOURFORMAT_24 0x00000000U |
#define | RTC_INIT_MASK 0xFFFFFFFFU |
#define | RTC_IT_ALRA RTC_CR_ALRAIE |
#define | RTC_IT_ALRB RTC_CR_ALRBIE |
#define | RTC_IT_TAMP RTC_TAMPCR_TAMPIE /* Used only to Enable the Tamper Interrupt */ |
#define | RTC_IT_TAMP1 RTC_TAMPCR_TAMP1IE |
#define | RTC_IT_TAMP2 RTC_TAMPCR_TAMP2IE |
#define | RTC_IT_TAMP3 RTC_TAMPCR_TAMP3IE |
#define | RTC_IT_TS RTC_CR_TSIE |
#define | RTC_IT_WUT RTC_CR_WUTIE |
#define | RTC_MONTH_APRIL ((uint8_t)0x04U) |
#define | RTC_MONTH_AUGUST ((uint8_t)0x08U) |
#define | RTC_MONTH_DECEMBER ((uint8_t)0x12U) |
#define | RTC_MONTH_FEBRUARY ((uint8_t)0x02U) |
#define | RTC_MONTH_JANUARY ((uint8_t)0x01U) |
#define | RTC_MONTH_JULY ((uint8_t)0x07U) |
#define | RTC_MONTH_JUNE ((uint8_t)0x06U) |
#define | RTC_MONTH_MARCH ((uint8_t)0x03U) |
#define | RTC_MONTH_MAY ((uint8_t)0x05U) |
#define | RTC_MONTH_NOVEMBER ((uint8_t)0x11U) |
#define | RTC_MONTH_OCTOBER ((uint8_t)0x10U) |
#define | RTC_MONTH_SEPTEMBER ((uint8_t)0x09U) |
#define | RTC_OUTPUT_POLARITY_HIGH 0x00000000U |
#define | RTC_OUTPUT_POLARITY_LOW 0x00100000U |
#define | RTC_OUTPUT_TYPE_OPENDRAIN 0x00000000U |
#define | RTC_OUTPUT_TYPE_PUSHPULL RTC_OR_ALARMTYPE /* 0x00000008 */ |
#define | RTC_RSF_MASK 0xFFFFFF5FU |
#define | RTC_STOREOPERATION_RESET 0x00000000U |
#define | RTC_STOREOPERATION_SET 0x00040000U |
#define | RTC_TIMEOUT_VALUE 1000U |
#define | RTC_TR_RESERVED_MASK 0x007F7F7FU |
#define | RTC_WEEKDAY_FRIDAY ((uint8_t)0x05U) |
#define | RTC_WEEKDAY_MONDAY ((uint8_t)0x01U) |
#define | RTC_WEEKDAY_SATURDAY ((uint8_t)0x06U) |
#define | RTC_WEEKDAY_SUNDAY ((uint8_t)0x07U) |
#define | RTC_WEEKDAY_THURSDAY ((uint8_t)0x04U) |
#define | RTC_WEEKDAY_TUESDAY ((uint8_t)0x02U) |
#define | RTC_WEEKDAY_WEDNESDAY ((uint8_t)0x03U) |
Enumerations | |
enum | HAL_RTCStateTypeDef { HAL_RTC_STATE_RESET = 0x00U, HAL_RTC_STATE_READY = 0x01U, HAL_RTC_STATE_BUSY = 0x02U, HAL_RTC_STATE_TIMEOUT = 0x03U, HAL_RTC_STATE_ERROR = 0x04U, HAL_RTC_STATE_RESET = 0x00U, HAL_RTC_STATE_READY = 0x01U, HAL_RTC_STATE_BUSY = 0x02U, HAL_RTC_STATE_TIMEOUT = 0x03U, HAL_RTC_STATE_ERROR = 0x04U } |
HAL State structures definition. More... | |
Header file of RTC HAL module.
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 stm32f7xx_hal_rtc.h.