MG32L003 Standard Peripherals Firmware Library

结构体 | 宏定义 | 函数
mg32l003_lptim.h 文件参考

This file contains all the functions prototypes for the LPTIM firmware library. 更多...

`#include "mg32l003.h"`

浏览源代码.

## 结构体
struct | LPTIM_BaseInitTypeDef
| LPTIM Time base Configuration Structure definition 更多...

## 宏定义
#define | LPTIM_GATE_ENABLE (LPTIM_CR_GATE_EN)
#define | LPTIM_GATE_DISABLE 0x00000000U
#define | IS_LPTIM_GATE_ENABLE(GATE)
#define | LPTIM_GATELEVEL_LOW (LPTIM_CR_GATE_P)
#define | LPTIM_GATELEVEL_HIGH 0x00000000U
#define | IS_LPTIM_GATE_LEVEL(GATE_LEVEL)
#define | LPTIM_CLOCK_SOURCE_PCLK 0x00000000U
#define | LPTIM_CLOCK_SOURCE_LSE (LPTIM_CR_TCK_SEL_1)
#define | LPTIM_CLOCK_SOURCE_LSI (LPTIM_CR_TCK_SEL_1 | LPTIM_CR_TCK_SEL_0)
#define | IS_LPTIM_CLOCK_SOURCE(CLOCK_SOURCE)
#define | LPTIM_TOG_ENABLE (LPTIM_CR_TOG_EN)
#define | LPTIM_TOG_DISABLE 0x00000000U
#define | IS_LPTIM_TOG(TOG)
#define | LPTIM_COUNTER_SELECT (LPTIM_CR_CT_SEL)
#define | LPTIM_TIMER_SELECT 0x00000000U
#define | IS_LPTIM_COUNTER(COUNTER)
#define | LPTIM_AUTORELOAD_ENABLE (LPTIM_CR_MODE)
#define | LPTIM_AUTORELOAD_DISABLE 0x00000000U
#define | IS_LPTIM_AUTORELOAD(AUTORELOAD)

## 函数
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 contains all the functions prototypes for the LPTIM firmware library.

作者
  megawin Application Team

版本
  V0.0.5

日期
  13-August-2024