STM32G474xx HAL User Manual
函数
配置
RTC导出函数

函数

__STATIC_INLINE void LL_RTC_SetHourFormat (RTC_TypeDef *RTCx, uint32_t HourFormat)
 设置小时格式(24小时/天制或上午/下午制)
__STATIC_INLINE uint32_t LL_RTC_GetHourFormat (RTC_TypeDef *RTCx)
 获取小时格式(24小时/天制或上午/下午制)
__STATIC_INLINE void LL_RTC_SetAlarmOutEvent (RTC_TypeDef *RTCx, uint32_t AlarmOutput)
 选择要路由到RTC_ALARM输出的标志
__STATIC_INLINE uint32_t LL_RTC_GetAlarmOutEvent (RTC_TypeDef *RTCx)
 获取要路由到RTC_ALARM输出的标志
__STATIC_INLINE void LL_RTC_SetAlarmOutputType (RTC_TypeDef *RTCx, uint32_t Output)
 设置RTC_ALARM输出类型(推挽或开漏输出)
__STATIC_INLINE uint32_t LL_RTC_GetAlarmOutputType (RTC_TypeDef *RTCx)
 获取RTC_ALARM输出类型(推挽或开漏输出)
__STATIC_INLINE void LL_RTC_EnableInitMode (RTC_TypeDef *RTCx)
 启用初始化模式
__STATIC_INLINE void LL_RTC_DisableInitMode (RTC_TypeDef *RTCx)
 禁用初始化模式(自由运行模式)
__STATIC_INLINE void LL_RTC_SetOutputPolarity (RTC_TypeDef *RTCx, uint32_t Polarity)
 设置输出极性(当ALRAF/ALRBF/WUTF被置位时引脚为低电平)
__STATIC_INLINE uint32_t LL_RTC_GetOutputPolarity (RTC_TypeDef *RTCx)
 获取输出极性
__STATIC_INLINE void LL_RTC_EnableShadowRegBypass (RTC_TypeDef *RTCx)
 启用绕过影子寄存器
__STATIC_INLINE void LL_RTC_DisableShadowRegBypass (RTC_TypeDef *RTCx)
 禁用绕过影子寄存器
__STATIC_INLINE uint32_t LL_RTC_IsShadowRegBypassEnabled (RTC_TypeDef *RTCx)
 检查影子寄存器旁路是否已启用
__STATIC_INLINE void LL_RTC_EnableRefClock (RTC_TypeDef *RTCx)
 启用RTC_REFIN参考时钟检测(50或60 Hz)
__STATIC_INLINE void LL_RTC_DisableRefClock (RTC_TypeDef *RTCx)
 禁用RTC_REFIN参考时钟检测(50或60 Hz)
__STATIC_INLINE void LL_RTC_SetAsynchPrescaler (RTC_TypeDef *RTCx, uint32_t AsynchPrescaler)
 设置异步预分频器因子
__STATIC_INLINE void LL_RTC_SetSynchPrescaler (RTC_TypeDef *RTCx, uint32_t SynchPrescaler)
 设置同步预分频器因子
__STATIC_INLINE uint32_t LL_RTC_GetAsynchPrescaler (RTC_TypeDef *RTCx)
 获取异步预分频器因子
__STATIC_INLINE uint32_t LL_RTC_GetSynchPrescaler (RTC_TypeDef *RTCx)
 获取同步预分频器因子
__STATIC_INLINE void LL_RTC_EnableWriteProtection (RTC_TypeDef *RTCx)
 启用RTC寄存器的写保护
__STATIC_INLINE void LL_RTC_DisableWriteProtection (RTC_TypeDef *RTCx)
 禁用RTC寄存器的写保护
__STATIC_INLINE void LL_RTC_EnableTamperOutput (RTC_TypeDef *RTCx)
 启用篡改检测输出
__STATIC_INLINE void LL_RTC_DisableTamperOutput (RTC_TypeDef *RTCx)
 禁用篡改检测输出
__STATIC_INLINE uint32_t LL_RTC_IsTamperOutputEnabled (RTC_TypeDef *RTCx)
 检查篡改检测输出是否已启用
__STATIC_INLINE void LL_RTC_EnableAlarmPullUp (RTC_TypeDef *RTCx)
 在输出模式下启用内部上拉
__STATIC_INLINE void LL_RTC_DisableAlarmPullUp (RTC_TypeDef *RTCx)
 在输出模式下禁用内部上拉
__STATIC_INLINE uint32_t LL_RTC_IsAlarmPullUpEnabled (RTC_TypeDef *RTCx)
 检查输出模式中内部上拉是否已启用
__STATIC_INLINE void LL_RTC_EnableOutput2 (RTC_TypeDef *RTCx)
 启用RTC_OUT2输出
__STATIC_INLINE void LL_RTC_DisableOutput2 (RTC_TypeDef *RTCx)
 禁用RTC_OUT2输出
__STATIC_INLINE uint32_t LL_RTC_IsOutput2Enabled (RTC_TypeDef *RTCx)
 检查RTC_OUT2输出是否已启用

函数说明

__STATIC_INLINE void LL_RTC_DisableAlarmPullUp ( RTC_TypeDef *  RTCx)

在输出模式下禁用内部上拉。

参考手册到LL API交叉引用:
RTC_CR TAMPALRM_PU LL_RTC_EnableAlarmPullUp
参数:
RTCxRTC实例
返回值:

定义于文件 1127 行,文件 stm32g4xx_ll_rtc.h

__STATIC_INLINE void LL_RTC_DisableInitMode ( RTC_TypeDef *  RTCx)

禁用初始化模式(自由运行模式)。

参考手册到LL API交叉引用:
RTC_ICSR INIT LL_RTC_DisableInitMode
参数:
RTCxRTC实例
返回值:

定义于文件 912 行,文件 stm32g4xx_ll_rtc.h

被以下函数引用:LL_RTC_DATE_Init()LL_RTC_DeInit()LL_RTC_ExitInitMode()LL_RTC_Init()LL_RTC_TIME_Init()

__STATIC_INLINE void LL_RTC_DisableOutput2 ( RTC_TypeDef *  RTCx)

禁用RTC_OUT2输出。

参考手册到LL API交叉引用:
RTC_CR OUT2EN LL_RTC_DisableOutput2
参数: