stm32f7xx_hal_rtc.h
Go to the documentation of this file.
1 
20 /* Define to prevent recursive inclusion -------------------------------------*/
21 #ifndef __STM32F7xx_HAL_RTC_H
22 #define __STM32F7xx_HAL_RTC_H
23 
24 #ifdef __cplusplus
25  extern "C" {
26 #endif
27 
28 /* Includes ------------------------------------------------------------------*/
29 #include "stm32f7xx_hal_def.h"
30 
39 /* Exported types ------------------------------------------------------------*/
47 typedef enum
48 {
56 
60 typedef struct
61 {
62  uint32_t HourFormat;
65  uint32_t AsynchPrediv;
68  uint32_t SynchPrediv;
71  uint32_t OutPut;
74  uint32_t OutPutPolarity;
77  uint32_t OutPutType;
80 
84 typedef struct
85 {
86  uint8_t Hours;
90  uint8_t Minutes;
93  uint8_t Seconds;
96  uint32_t SubSeconds;
100  uint32_t SecondFraction;
106  uint8_t TimeFormat;
109  uint32_t DayLightSaving;
112  uint32_t StoreOperation;
116 
120 typedef struct
121 {
122  uint8_t WeekDay;
125  uint8_t Month;
128  uint8_t Date;
131  uint8_t Year;
135 
139 typedef struct
140 {
141  RTC_TimeTypeDef AlarmTime;
143  uint32_t AlarmMask;
146  uint32_t AlarmSubSecondMask;
149  uint32_t AlarmDateWeekDaySel;
152  uint8_t AlarmDateWeekDay;
156  uint32_t Alarm;
159 
163 #if (USE_HAL_RTC_REGISTER_CALLBACKS == 1)
164 typedef struct __RTC_HandleTypeDef
165 #else
166 typedef struct
167 #endif /* (USE_HAL_RTC_REGISTER_CALLBACKS) */
168 {
169  RTC_TypeDef *Instance;
173  HAL_LockTypeDef Lock;
175  __IO HAL_RTCStateTypeDef State;
177 #if (USE_HAL_RTC_REGISTER_CALLBACKS == 1)
178  void (* AlarmAEventCallback) ( struct __RTC_HandleTypeDef * hrtc);
180  void (* AlarmBEventCallback) ( struct __RTC_HandleTypeDef * hrtc);
182  void (* TimeStampEventCallback) ( struct __RTC_HandleTypeDef * hrtc);
184  void (* WakeUpTimerEventCallback) ( struct __RTC_HandleTypeDef * hrtc);
186  void (* Tamper1EventCallback) ( struct __RTC_HandleTypeDef * hrtc);
188  void (* Tamper2EventCallback) ( struct __RTC_HandleTypeDef * hrtc);
190  void (* Tamper3EventCallback) ( struct __RTC_HandleTypeDef * hrtc);
192  void (* MspInitCallback) ( struct __RTC_HandleTypeDef * hrtc);
194  void (* MspDeInitCallback) ( struct __RTC_HandleTypeDef * hrtc);
196 #endif /* (USE_HAL_RTC_REGISTER_CALLBACKS) */
197 
199 
200 #if (USE_HAL_RTC_REGISTER_CALLBACKS == 1)
201 
204 typedef enum
205 {
206  HAL_RTC_ALARM_A_EVENT_CB_ID = 0x00u,
207  HAL_RTC_ALARM_B_EVENT_CB_ID = 0x01u,
208  HAL_RTC_TIMESTAMP_EVENT_CB_ID = 0x02u,
209  HAL_RTC_WAKEUPTIMER_EVENT_CB_ID = 0x03u,
210  HAL_RTC_TAMPER1_EVENT_CB_ID = 0x04u,
211  HAL_RTC_TAMPER2_EVENT_CB_ID = 0x05u,
212  HAL_RTC_TAMPER3_EVENT_CB_ID = 0x06u,
213  HAL_RTC_MSPINIT_CB_ID = 0x0Eu,
214  HAL_RTC_MSPDEINIT_CB_ID = 0x0Fu
215 }HAL_RTC_CallbackIDTypeDef;
216 
220 typedef void (*pRTC_CallbackTypeDef)(RTC_HandleTypeDef * hrtc);
221 #endif /* USE_HAL_RTC_REGISTER_CALLBACKS */
222 
227 /* Exported constants --------------------------------------------------------*/
235 #define RTC_HOURFORMAT_24 0x00000000U
236 #define RTC_HOURFORMAT_12 0x00000040U
237 
245 #define RTC_OUTPUT_POLARITY_HIGH 0x00000000U
246 #define RTC_OUTPUT_POLARITY_LOW 0x00100000U
247 
254 #define RTC_OUTPUT_TYPE_OPENDRAIN 0x00000000U
255 #define RTC_OUTPUT_TYPE_PUSHPULL RTC_OR_ALARMTYPE /* 0x00000008 */
256 
263 #define RTC_HOURFORMAT12_AM ((uint8_t)0x00U)
264 #define RTC_HOURFORMAT12_PM ((uint8_t)0x40U)
265 
272 #define RTC_DAYLIGHTSAVING_SUB1H 0x00020000U
273 #define RTC_DAYLIGHTSAVING_ADD1H 0x00010000U
274 #define RTC_DAYLIGHTSAVING_NONE 0x00000000U
275 
282 #define RTC_STOREOPERATION_RESET 0x00000000U
283 #define RTC_STOREOPERATION_SET 0x00040000U
284 
291 #define RTC_FORMAT_BIN 0x00000000U
292 #define RTC_FORMAT_BCD 0x00000001U
293 
300 /* Coded in BCD format */
301 #define RTC_MONTH_JANUARY ((uint8_t)0x01U)
302 #define RTC_MONTH_FEBRUARY ((uint8_t)0x02U)
303 #define RTC_MONTH_MARCH ((uint8_t)0x03U)
304 #define RTC_MONTH_APRIL ((uint8_t)0x04U)
305 #define RTC_MONTH_MAY ((uint8_t)0x05U)
306 #define RTC_MONTH_JUNE ((uint8_t)0x06U)
307 #define RTC_MONTH_JULY ((uint8_t)0x07U)
308 #define RTC_MONTH_AUGUST ((uint8_t)0x08U)
309 #define RTC_MONTH_SEPTEMBER ((uint8_t)0x09U)
310 #define RTC_MONTH_OCTOBER ((uint8_t)0x10U)
311 #define RTC_MONTH_NOVEMBER ((uint8_t)0x11U)
312 #define RTC_MONTH_DECEMBER ((uint8_t)0x12U)
313 
320 #define RTC_WEEKDAY_MONDAY ((uint8_t)0x01U)
321 #define RTC_WEEKDAY_TUESDAY ((uint8_t)0x02U)
322 #define RTC_WEEKDAY_WEDNESDAY ((uint8_t)0x03U)
323 #define RTC_WEEKDAY_THURSDAY ((uint8_t)0x04U)
324 #define RTC_WEEKDAY_FRIDAY ((uint8_t)0x05U)
325 #define RTC_WEEKDAY_SATURDAY ((uint8_t)0x06U)
326 #define RTC_WEEKDAY_SUNDAY ((uint8_t)0x07U)
327 
334 #define RTC_ALARMDATEWEEKDAYSEL_DATE 0x00000000U
335 #define RTC_ALARMDATEWEEKDAYSEL_WEEKDAY 0x40000000U
336 
343 #define RTC_ALARMMASK_NONE 0x00000000U
344 #define RTC_ALARMMASK_DATEWEEKDAY RTC_ALRMAR_MSK4
345 #define RTC_ALARMMASK_HOURS RTC_ALRMAR_MSK3
346 #define RTC_ALARMMASK_MINUTES RTC_ALRMAR_MSK2
347 #define RTC_ALARMMASK_SECONDS RTC_ALRMAR_MSK1
348 #define RTC_ALARMMASK_ALL 0x80808080U
349 
356 #define RTC_ALARM_A RTC_CR_ALRAE
357 #define RTC_ALARM_B RTC_CR_ALRBE
358 
365 #define RTC_ALARMSUBSECONDMASK_ALL 0x00000000U
368 #define RTC_ALARMSUBSECONDMASK_SS14_1 0x01000000U
370 #define RTC_ALARMSUBSECONDMASK_SS14_2 0x02000000U
372 #define RTC_ALARMSUBSECONDMASK_SS14_3 0x03000000U
374 #define RTC_ALARMSUBSECONDMASK_SS14_4 0x04000000U
376 #define RTC_ALARMSUBSECONDMASK_SS14_5 0x05000000U
378 #define RTC_ALARMSUBSECONDMASK_SS14_6 0x06000000U
380 #define RTC_ALARMSUBSECONDMASK_SS14_7 0x07000000U
382 #define RTC_ALARMSUBSECONDMASK_SS14_8 0x08000000U
384 #define RTC_ALARMSUBSECONDMASK_SS14_9 0x09000000U
386 #define RTC_ALARMSUBSECONDMASK_SS14_10 0x0A000000U
388 #define RTC_ALARMSUBSECONDMASK_SS14_11 0x0B000000U
390 #define RTC_ALARMSUBSECONDMASK_SS14_12 0x0C000000U
392 #define RTC_ALARMSUBSECONDMASK_SS14_13 0x0D000000U
394 #define RTC_ALARMSUBSECONDMASK_SS14 0x0E000000U
396 #define RTC_ALARMSUBSECONDMASK_NONE 0x0F000000U
405 #define RTC_IT_TS RTC_CR_TSIE
406 #define RTC_IT_WUT RTC_CR_WUTIE
407 #define RTC_IT_ALRA RTC_CR_ALRAIE
408 #define RTC_IT_ALRB RTC_CR_ALRBIE
409 #define RTC_IT_TAMP RTC_TAMPCR_TAMPIE /* Used only to Enable the Tamper Interrupt */
410 #define RTC_IT_TAMP1 RTC_TAMPCR_TAMP1IE
411 #define RTC_IT_TAMP2 RTC_TAMPCR_TAMP2IE
412 #define RTC_IT_TAMP3 RTC_TAMPCR_TAMP3IE
413 
420 #define RTC_FLAG_RECALPF RTC_ISR_RECALPF
421 #define RTC_FLAG_TAMP3F RTC_ISR_TAMP3F
422 #define RTC_FLAG_TAMP2F RTC_ISR_TAMP2F
423 #define RTC_FLAG_TAMP1F RTC_ISR_TAMP1F
424 #define RTC_FLAG_TSOVF RTC_ISR_TSOVF
425 #define RTC_FLAG_TSF RTC_ISR_TSF
426 #define RTC_FLAG_ITSF RTC_ISR_ITSF
427 #define RTC_FLAG_WUTF RTC_ISR_WUTF
428 #define RTC_FLAG_ALRBF RTC_ISR_ALRBF
429 #define RTC_FLAG_ALRAF RTC_ISR_ALRAF
430 #define RTC_FLAG_INITF RTC_ISR_INITF
431 #define RTC_FLAG_RSF RTC_ISR_RSF
432 #define RTC_FLAG_INITS RTC_ISR_INITS
433 #define RTC_FLAG_SHPF RTC_ISR_SHPF
434 #define RTC_FLAG_WUTWF RTC_ISR_WUTWF
435 #define RTC_FLAG_ALRBWF RTC_ISR_ALRBWF
436 #define RTC_FLAG_ALRAWF RTC_ISR_ALRAWF
437 
445 /* Exported macro ------------------------------------------------------------*/
454 #if (USE_HAL_RTC_REGISTER_CALLBACKS == 1)
455 #define __HAL_RTC_RESET_HANDLE_STATE(__HANDLE__) do{\
456  (__HANDLE__)->State = HAL_RTC_STATE_RESET;\
457  (__HANDLE__)->MspInitCallback = NULL;\
458  (__HANDLE__)->MspDeInitCallback = NULL;\
459  }while(0u)
460 #else
461 #define __HAL_RTC_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_RTC_STATE_RESET)
462 #endif /* USE_HAL_RTC_REGISTER_CALLBACKS */
463 
469 #define __HAL_RTC_WRITEPROTECTION_DISABLE(__HANDLE__) \
470  do{ \
471  (__HANDLE__)->Instance->WPR = 0xCAU; \
472  (__HANDLE__)->Instance->WPR = 0x53U; \
473  } while(0U)
474 
480 #define __HAL_RTC_WRITEPROTECTION_ENABLE(__HANDLE__) \
481  do{ \
482  (__HANDLE__)->Instance->WPR = 0xFFU; \
483  } while(0U)
484 
490 #define __HAL_RTC_ALARMA_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR |= (RTC_CR_ALRAE))
491 
497 #define __HAL_RTC_ALARMA_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~(RTC_CR_ALRAE))
498 
504 #define __HAL_RTC_ALARMB_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR |= (RTC_CR_ALRBE))
505 
511 #define __HAL_RTC_ALARMB_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~(RTC_CR_ALRBE))
512 
522 #define __HAL_RTC_ALARM_ENABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->CR |= (__INTERRUPT__))
523 
533 #define __HAL_RTC_ALARM_DISABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->CR &= ~(__INTERRUPT__))
534 
544 #define __HAL_RTC_ALARM_GET_IT(__HANDLE__, __INTERRUPT__) ((((((__HANDLE__)->Instance->ISR)& ((__INTERRUPT__)>> 4U)) & 0x0000FFFFU) != RESET)? SET : RESET)
545 
557 #define __HAL_RTC_ALARM_GET_FLAG(__HANDLE__, __FLAG__) (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) != RESET)? SET : RESET)
558 
568 #define __HAL_RTC_ALARM_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->ISR) = (~(((__FLAG__) | RTC_ISR_INIT)& 0x0000FFFFU)|((__HANDLE__)->Instance->ISR & RTC_ISR_INIT))
569 
579 #define __HAL_RTC_ALARM_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) (((((__HANDLE__)->Instance->CR) & (__INTERRUPT__)) != RESET) ? SET : RESET)
580 
585 #define __HAL_RTC_ALARM_EXTI_ENABLE_IT() (EXTI->IMR |= RTC_EXTI_LINE_ALARM_EVENT)
586 
591 #define __HAL_RTC_ALARM_EXTI_DISABLE_IT() (EXTI->IMR &= ~(RTC_EXTI_LINE_ALARM_EVENT))
592 
597 #define __HAL_RTC_ALARM_EXTI_ENABLE_EVENT() (EXTI->EMR |= RTC_EXTI_LINE_ALARM_EVENT)
598 
603 #define __HAL_RTC_ALARM_EXTI_DISABLE_EVENT() (EXTI->EMR &= ~(RTC_EXTI_LINE_ALARM_EVENT))
604 
609 #define __HAL_RTC_ALARM_EXTI_ENABLE_FALLING_EDGE() (EXTI->FTSR |= RTC_EXTI_LINE_ALARM_EVENT)
610 
615 #define __HAL_RTC_ALARM_EXTI_DISABLE_FALLING_EDGE() (EXTI->FTSR &= ~(RTC_EXTI_LINE_ALARM_EVENT))
616 
621 #define __HAL_RTC_ALARM_EXTI_ENABLE_RISING_EDGE() (EXTI->RTSR |= RTC_EXTI_LINE_ALARM_EVENT)
622 
627 #define __HAL_RTC_ALARM_EXTI_DISABLE_RISING_EDGE() (EXTI->RTSR &= ~(RTC_EXTI_LINE_ALARM_EVENT))
628 
633 #define __HAL_RTC_ALARM_EXTI_ENABLE_RISING_FALLING_EDGE() __HAL_RTC_ALARM_EXTI_ENABLE_RISING_EDGE();__HAL_RTC_ALARM_EXTI_ENABLE_FALLING_EDGE();
634 
639 #define __HAL_RTC_ALARM_EXTI_DISABLE_RISING_FALLING_EDGE() __HAL_RTC_ALARM_EXTI_DISABLE_RISING_EDGE();__HAL_RTC_ALARM_EXTI_DISABLE_FALLING_EDGE();
640 
645 #define __HAL_RTC_ALARM_EXTI_GET_FLAG() (EXTI->PR & RTC_EXTI_LINE_ALARM_EVENT)
646 
651 #define __HAL_RTC_ALARM_EXTI_CLEAR_FLAG() (EXTI->PR = RTC_EXTI_LINE_ALARM_EVENT)
652 
657 #define __HAL_RTC_ALARM_EXTI_GENERATE_SWIT() (EXTI->SWIER |= RTC_EXTI_LINE_ALARM_EVENT)
658 
662 /* Include RTC HAL Extension module */
663 #include "stm32f7xx_hal_rtc_ex.h"
664 
665 /* Exported functions --------------------------------------------------------*/
673 /* Initialization and de-initialization functions ****************************/
678 
679 /* Callbacks Register/UnRegister functions ***********************************/
680 #if (USE_HAL_RTC_REGISTER_CALLBACKS == 1)
681 HAL_StatusTypeDef HAL_RTC_RegisterCallback(RTC_HandleTypeDef *hrtc, HAL_RTC_CallbackIDTypeDef CallbackID, pRTC_CallbackTypeDef pCallback);
682 HAL_StatusTypeDef HAL_RTC_UnRegisterCallback(RTC_HandleTypeDef *hrtc, HAL_RTC_CallbackIDTypeDef CallbackID);
683 #endif /* USE_HAL_RTC_REGISTER_CALLBACKS */
684 
691 /* RTC Time and Date functions ************************************************/
703 /* RTC Alarm functions ********************************************************/
707 HAL_StatusTypeDef HAL_RTC_GetAlarm(RTC_HandleTypeDef *hrtc, RTC_AlarmTypeDef *sAlarm, uint32_t Alarm, uint32_t Format);
718 /* Peripheral Control functions ***********************************************/
727 /* Peripheral State functions *************************************************/
737 /* Private types -------------------------------------------------------------*/
738 /* Private variables ---------------------------------------------------------*/
739 /* Private constants ---------------------------------------------------------*/
743 /* Masks Definition */
744 #define RTC_TR_RESERVED_MASK 0x007F7F7FU
745 #define RTC_DR_RESERVED_MASK 0x00FFFF3FU
746 #define RTC_INIT_MASK 0xFFFFFFFFU
747 #define RTC_RSF_MASK 0xFFFFFF5FU
748 
749 #define RTC_TIMEOUT_VALUE 1000U
750 
751 #define RTC_EXTI_LINE_ALARM_EVENT EXTI_IMR_IM17
756 /* Private macros ------------------------------------------------------------*/
757 
764 #define IS_RTC_HOUR_FORMAT(__FORMAT__) (((__FORMAT__) == RTC_HOURFORMAT_12) || \
765  ((__FORMAT__) == RTC_HOURFORMAT_24))
766 #define IS_RTC_OUTPUT_POL(__POL__) (((__POL__) == RTC_OUTPUT_POLARITY_HIGH) || \
767  ((__POL__) == RTC_OUTPUT_POLARITY_LOW))
768 #define IS_RTC_OUTPUT_TYPE(__TYPE__) (((__TYPE__) == RTC_OUTPUT_TYPE_OPENDRAIN) || \
769  ((__TYPE__) == RTC_OUTPUT_TYPE_PUSHPULL))
770 #define IS_RTC_ASYNCH_PREDIV(__PREDIV__) ((__PREDIV__) <= 0x7FU)
771 #define IS_RTC_SYNCH_PREDIV(__PREDIV__) ((__PREDIV__) <= 0x7FFFU)
772 #define IS_RTC_HOUR12(__HOUR__) (((__HOUR__) > 0U) && ((__HOUR__) <= 12U))
773 #define IS_RTC_HOUR24(__HOUR__) ((__HOUR__) <= 23U)
774 #define IS_RTC_MINUTES(__MINUTES__) ((__MINUTES__) <= 59U)
775 #define IS_RTC_SECONDS(__SECONDS__) ((__SECONDS__) <= 59U)
776 #define IS_RTC_HOURFORMAT12(__PM__) (((__PM__) == RTC_HOURFORMAT12_AM) || ((__PM__) == RTC_HOURFORMAT12_PM))
777 #define IS_RTC_DAYLIGHT_SAVING(__SAVE__) (((__SAVE__) == RTC_DAYLIGHTSAVING_SUB1H) || \
778  ((__SAVE__) == RTC_DAYLIGHTSAVING_ADD1H) || \
779  ((__SAVE__) == RTC_DAYLIGHTSAVING_NONE))
780 #define IS_RTC_STORE_OPERATION(__OPERATION__) (((__OPERATION__) == RTC_STOREOPERATION_RESET) || \
781  ((__OPERATION__) == RTC_STOREOPERATION_SET))
782 #define IS_RTC_FORMAT(__FORMAT__) (((__FORMAT__) == RTC_FORMAT_BIN) || ((__FORMAT__) == RTC_FORMAT_BCD))
783 #define IS_RTC_YEAR(__YEAR__) ((__YEAR__) <= 99U)
784 #define IS_RTC_MONTH(__MONTH__) (((__MONTH__) >= 1U) && ((__MONTH__) <= 12U))
785 #define IS_RTC_DATE(__DATE__) (((__DATE__) >= 1U) && ((__DATE__) <= 31U))
786 #define IS_RTC_WEEKDAY(__WEEKDAY__) (((__WEEKDAY__) == RTC_WEEKDAY_MONDAY) || \
787  ((__WEEKDAY__) == RTC_WEEKDAY_TUESDAY) || \
788  ((__WEEKDAY__) == RTC_WEEKDAY_WEDNESDAY) || \
789  ((__WEEKDAY__) == RTC_WEEKDAY_THURSDAY) || \
790  ((__WEEKDAY__) == RTC_WEEKDAY_FRIDAY) || \
791  ((__WEEKDAY__) == RTC_WEEKDAY_SATURDAY) || \
792  ((__WEEKDAY__) == RTC_WEEKDAY_SUNDAY))
793 
794 #define IS_RTC_ALARM_DATE_WEEKDAY_DATE(__DATE__) (((__DATE__) >0U) && ((__DATE__) <= 31U))
795 #define IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY(__WEEKDAY__) (((__WEEKDAY__) == RTC_WEEKDAY_MONDAY) || \
796  ((__WEEKDAY__) == RTC_WEEKDAY_TUESDAY) || \
797  ((__WEEKDAY__) == RTC_WEEKDAY_WEDNESDAY) || \
798  ((__WEEKDAY__) == RTC_WEEKDAY_THURSDAY) || \
799  ((__WEEKDAY__) == RTC_WEEKDAY_FRIDAY) || \
800  ((__WEEKDAY__) == RTC_WEEKDAY_SATURDAY) || \
801  ((__WEEKDAY__) == RTC_WEEKDAY_SUNDAY))
802 #define IS_RTC_ALARM_DATE_WEEKDAY_SEL(__SEL__) (((__SEL__) == RTC_ALARMDATEWEEKDAYSEL_DATE) || \
803  ((__SEL__) == RTC_ALARMDATEWEEKDAYSEL_WEEKDAY))
804 #define IS_RTC_ALARM_MASK(__MASK__) (((__MASK__) & 0x7F7F7F7FU) == (uint32_t)RESET)
805 #define IS_RTC_ALARM(__ALARM__) (((__ALARM__) == RTC_ALARM_A) || ((__ALARM__) == RTC_ALARM_B))
806 #define IS_RTC_ALARM_SUB_SECOND_VALUE(__VALUE__) ((__VALUE__) <= 0x00007FFFU)
807 #define IS_RTC_ALARM_SUB_SECOND_MASK(__MASK__) (((__MASK__) == RTC_ALARMSUBSECONDMASK_ALL) || \
808  ((__MASK__) == RTC_ALARMSUBSECONDMASK_SS14_1) || \
809  ((__MASK__) == RTC_ALARMSUBSECONDMASK_SS14_2) || \
810  ((__MASK__) == RTC_ALARMSUBSECONDMASK_SS14_3) || \
811  ((__MASK__) == RTC_ALARMSUBSECONDMASK_SS14_4) || \
812  ((__MASK__) == RTC_ALARMSUBSECONDMASK_SS14_5) || \
813  ((__MASK__) == RTC_ALARMSUBSECONDMASK_SS14_6) || \
814  ((__MASK__) == RTC_ALARMSUBSECONDMASK_SS14_7) || \
815  ((__MASK__) == RTC_ALARMSUBSECONDMASK_SS14_8) || \
816  ((__MASK__) == RTC_ALARMSUBSECONDMASK_SS14_9) || \
817  ((__MASK__) == RTC_ALARMSUBSECONDMASK_SS14_10) || \
818  ((__MASK__) == RTC_ALARMSUBSECONDMASK_SS14_11) || \
819  ((__MASK__) == RTC_ALARMSUBSECONDMASK_SS14_12) || \
820  ((__MASK__) == RTC_ALARMSUBSECONDMASK_SS14_13) || \
821  ((__MASK__) == RTC_ALARMSUBSECONDMASK_SS14) || \
822  ((__MASK__) == RTC_ALARMSUBSECONDMASK_NONE))
823 
832 /* Private functions ---------------------------------------------------------*/
837 uint8_t RTC_ByteToBcd2(uint8_t Value);
838 uint8_t RTC_Bcd2ToByte(uint8_t Value);
851 #ifdef __cplusplus
852 }
853 #endif
854 
855 #endif /* __STM32F7xx_HAL_RTC_H */
856 
857 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
__IO
#define __IO
Definition: imxrt1050/imxrt1050-evkb/CMSIS/core_cm7.h:237
RTC_InitTypeDef
RTC Configuration Structure definition.
Definition: stm32f4xx_hal_rtc.h:59
Init
napi_value Init(napi_env env, napi_value exports)
Definition: porcupine/demo/c/pvrecorder/node/pv_recorder_napi.c:197
HAL_StatusTypeDef
HAL_StatusTypeDef
HAL Status structures definition
Definition: stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h:40
HAL_RTC_DeInit
HAL_StatusTypeDef HAL_RTC_DeInit(RTC_HandleTypeDef *hrtc)
HAL_RTC_GetDate
HAL_StatusTypeDef HAL_RTC_GetDate(RTC_HandleTypeDef *hrtc, RTC_DateTypeDef *sDate, uint32_t Format)
RTC_HandleTypeDef
RTC Handle Structure definition.
Definition: stm32f4xx_hal_rtc.h:165
HAL_RTC_DeactivateAlarm
HAL_StatusTypeDef HAL_RTC_DeactivateAlarm(RTC_HandleTypeDef *hrtc, uint32_t Alarm)
HAL_RTC_PollForAlarmAEvent
HAL_StatusTypeDef HAL_RTC_PollForAlarmAEvent(RTC_HandleTypeDef *hrtc, uint32_t Timeout)
RTC_EnterInitMode
HAL_StatusTypeDef RTC_EnterInitMode(RTC_HandleTypeDef *hrtc)
HAL_LockTypeDef
HAL_LockTypeDef
HAL Lock structures definition
Definition: stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h:51
HAL_RTC_MspDeInit
void HAL_RTC_MspDeInit(RTC_HandleTypeDef *hrtc)
HAL_RTC_WaitForSynchro
HAL_StatusTypeDef HAL_RTC_WaitForSynchro(RTC_HandleTypeDef *hrtc)
HAL_RTC_STATE_ERROR
@ HAL_RTC_STATE_ERROR
Definition: stm32f7xx_hal_rtc.h:53
RTC_TimeTypeDef
RTC Time structure definition.
Definition: stm32f4xx_hal_rtc.h:83
HAL_RTC_AlarmIRQHandler
void HAL_RTC_AlarmIRQHandler(RTC_HandleTypeDef *hrtc)
RTC_Bcd2ToByte
uint8_t RTC_Bcd2ToByte(uint8_t Value)
HAL_RTC_AlarmAEventCallback
void HAL_RTC_AlarmAEventCallback(RTC_HandleTypeDef *hrtc)
HAL_RTC_STATE_READY
@ HAL_RTC_STATE_READY
Definition: stm32f7xx_hal_rtc.h:50
RTC_AlarmTypeDef
RTC Alarm structure definition.
Definition: stm32f4xx_hal_rtc.h:138
HAL_RTC_SetAlarm_IT
HAL_StatusTypeDef HAL_RTC_SetAlarm_IT(RTC_HandleTypeDef *hrtc, RTC_AlarmTypeDef *sAlarm, uint32_t Format)
RTC_ByteToBcd2
uint8_t RTC_ByteToBcd2(uint8_t Value)
HAL_RTCStateTypeDef
HAL_RTCStateTypeDef
HAL State structures definition.
Definition: stm32f7xx_hal_rtc.h:47
HAL_RTC_MspInit
void HAL_RTC_MspInit(RTC_HandleTypeDef *hrtc)
HAL_RTC_SetDate
HAL_StatusTypeDef HAL_RTC_SetDate(RTC_HandleTypeDef *hrtc, RTC_DateTypeDef *sDate, uint32_t Format)
HAL_RTC_SetAlarm
HAL_StatusTypeDef HAL_RTC_SetAlarm(RTC_HandleTypeDef *hrtc, RTC_AlarmTypeDef *sAlarm, uint32_t Format)
HAL_RTC_STATE_RESET
@ HAL_RTC_STATE_RESET
Definition: stm32f7xx_hal_rtc.h:49
HAL_RTC_GetTime
HAL_StatusTypeDef HAL_RTC_GetTime(RTC_HandleTypeDef *hrtc, RTC_TimeTypeDef *sTime, uint32_t Format)
stm32f7xx_hal_def.h
This file contains HAL common defines, enumeration, macros and structures definitions.
HAL_RTC_STATE_BUSY
@ HAL_RTC_STATE_BUSY
Definition: stm32f7xx_hal_rtc.h:51
stm32f7xx_hal_rtc_ex.h
Header file of RTC HAL Extension module.
HAL_RTC_GetState
HAL_RTCStateTypeDef HAL_RTC_GetState(RTC_HandleTypeDef *hrtc)
RTC_DateTypeDef
RTC Date structure definition.
Definition: stm32f4xx_hal_rtc.h:119
HAL_RTC_Init
HAL_StatusTypeDef HAL_RTC_Init(RTC_HandleTypeDef *hrtc)
HAL_RTC_SetTime
HAL_StatusTypeDef HAL_RTC_SetTime(RTC_HandleTypeDef *hrtc, RTC_TimeTypeDef *sTime, uint32_t Format)
HAL_RTC_GetAlarm
HAL_StatusTypeDef HAL_RTC_GetAlarm(RTC_HandleTypeDef *hrtc, RTC_AlarmTypeDef *sAlarm, uint32_t Alarm, uint32_t Format)
RTC_TypeDef
Real-Time Clock.
Definition: stm32f407xx.h:635
HAL_RTC_STATE_TIMEOUT
@ HAL_RTC_STATE_TIMEOUT
Definition: stm32f7xx_hal_rtc.h:52


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:14:53