MG32F10x Standard Peripherals Firmware Library
宏定义 | 函数
mg32f10x_rtc.c 文件参考

This file provides all the RTC firmware functions. 更多...

#include "mg32f10x_rtc.h"

宏定义

#define RTC_LSB_MASK   ((uint32_t)0x0000FFFF)
 
#define PRLH_MSB_MASK   ((uint32_t)0x000F0000)
 

函数

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

详细描述

This file provides all the RTC firmware functions.

作者
megawin Application Team
版本
V0.1.10
日期
05-January-2023