WB32L003 Standard Peripherals Firmware Library
函数
wb32l003_lptim.c 文件参考

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

#include "wb32l003_lptim.h"
#include "wb32l003_rcc.h"

函数

void LPTIM_DeInit (void)
 Deinitializes the LPTIM peripheral registers to their default reset values. 更多...
 
void LPTIM_BaseInit (LPTIM_BaseInitTypeDef *Base_InitStruct)
 Low Power Time base configuration 更多...
 
void LPTIM_TCKCmd (FunctionalState NewState)
 Enables or disables the LPTIM time clock. 更多...
 
void LPTIM_Cmd (FunctionalState NewState)
 Enables or disables the LPTIM peripheral. 更多...
 
void LPTIM_ITCmd (FunctionalState NewState)
 Enables or disables the LPTIM interrupt. 更多...
 
FlagStatus LPTIM_GetFlagStatus (void)
 Checks whether the LPTIM interrupt flag is set or not. 更多...
 
ITStatus LPTIM_GetITStatus (void)
 Checks whether the LPTIM interrupt is set or not. 更多...
 
void LPTIM_ClearFlag (void)
 Clears the LPTIM pending interrupt flag. 更多...
 
void LPTIM_ClearITPendingBit (void)
 Clears the LPTIM pending interrupt bit. 更多...
 
void LPTIM_SetCounter (uint32_t Counter)
 Sets the LPTIM counter register value on runtime. 更多...
 
uint32_t LPTIM_GetCounter (void)
 Gets LPTIM counter. 更多...
 
void LPTIM_GateCmd (FunctionalState NewState)
 Enables or disables the LPTIM gate function. 更多...
 
void LPTIM_ToggleCmd (FunctionalState NewState)
 Enables or disables the LPTIM toggle function. 更多...
 
void LPTIM_SetGateLevel (uint32_t Level)
 Sets gate level high or low. 更多...
 
FlagStatus LPTIM_GetSyncFlag (void)
 Waits for LPTIM WT sync finish. 更多...
 

详细描述

This file provides all the LPTIM firmware functions.

作者
Westberry Application Team
版本
V0.0.4
日期
23-April-2023