WB32F10x Standard Peripherals Firmware Library

Macros | Functions
wb32f10x_rtc.h File Reference

This file contains all the functions prototypes for the RTC firmware library. More...

`#include "wb32f10x.h"`

Go to the source code of this file.

## Macros
#define | RTC_IT_OW ((uint16_t)0x0004)
#define | RTC_IT_ALR ((uint16_t)0x0002)
#define | RTC_IT_SEC ((uint16_t)0x0001)
#define | IS_RTC_IT(IT) ((((IT) & (uint16_t)0xFFF8) == 0x00) && ((IT) != 0x00))
#define | IS_RTC_GET_IT(IT)
#define | RTC_FLAG_RTOFF ((uint16_t)0x0020)
#define | RTC_FLAG_RSF ((uint16_t)0x0008)
#define | RTC_FLAG_OW ((uint16_t)0x0004)
#define | RTC_FLAG_ALR ((uint16_t)0x0002)
#define | RTC_FLAG_SEC ((uint16_t)0x0001)
#define | IS_RTC_CLEAR_FLAG(FLAG) ((((FLAG) & (uint16_t)0xFFF0) == 0x00) && ((FLAG) != 0x00))
#define | IS_RTC_GET_FLAG(FLAG)
#define | IS_RTC_PRESCALER(PRESCALER) ((PRESCALER) <= 0xFFFFF)

## Functions
void | RTC_ITConfig (uint16_t RTC_IT, FunctionalState NewState)
| Enables or disables the specified RTC interrupts. More...
void | RTC_EnterConfigMode (void)
| Enters the RTC configuration mode. More...
void | RTC_ExitConfigMode (void)
| Exits from the RTC configuration mode. More...
uint32_t | RTC_GetCounter (void)
| Gets the RTC counter value. More...
void | RTC_SetCounter (uint32_t CounterValue)
| Sets the RTC counter value. More...
void | RTC_SetPrescaler (uint32_t PrescalerValue)
| Sets the RTC prescaler value. More...
void | RTC_SetAlarm (uint32_t AlarmValue)
| Sets the RTC alarm value. More...
uint32_t | RTC_GetDivider (void)
| Gets the RTC divider value. More...
void | RTC_WaitForLastTask (void)
| Waits until last write operation on RTC registers has finished. More...
void | RTC_WaitForSynchro (void)
| Waits until the RTC registers (RTC_CNT, RTC_ALR and RTC_PRL) are synchronized with RTC APB clock. More...
FlagStatus | RTC_GetFlagStatus (uint16_t RTC_FLAG)
| Checks whether the specified RTC flag is set or not. More...
void | RTC_ClearFlag (uint16_t RTC_FLAG)
| Clears the RTC's pending flags. More...
ITStatus | RTC_GetITStatus (uint16_t RTC_IT)
| Checks whether the specified RTC interrupt has occurred or not. More...
void | RTC_ClearITPendingBit (uint16_t RTC_IT)
| Clears the RTC's interrupt pending bits. More...

## Detailed Description

This file contains all the functions prototypes for the RTC firmware library.

Author
  Westberry Application Team

Version
  V0.1.10

Date
  05-January-2023