MG32L003 Standard Peripherals Firmware Library

成员变量
LPTIM_BaseInitTypeDef结构体 参考
MG32L003_StdPeriph_Driver » LPTIM

LPTIM Time base Configuration Structure definition 更多...

`#include <mg32l003_lptim.h>`

## 成员变量
uint32_t | GateEnable
uint32_t | GateLevel
uint32_t | ClkSel
uint32_t | TogEnable
uint32_t | CntTimSel
uint32_t | AutoReload
uint32_t | Period

## 详细描述

LPTIM Time base Configuration Structure definition

注解
  This structure is for LPTIM

## 结构体成员变量说明

## ◆ AutoReload

uint32_t AutoReload

Specifies Timer auto reload enable or disable. This parameter can be a value of LPTIM_Auto_Reload

## ◆ ClkSel

uint32_t ClkSel

Specifies low power timer clock. This parameter can be a value of LPTIM_Clock_Source_Selection

## ◆ CntTimSel

uint32_t CntTimSel

Specifies Counter/Timer function selection. This parameter can be a value of LPTIM_Counter/Timer_Selection

## ◆ GateEnable

uint32_t GateEnable

Specifies gate function enable or disable. This parameter can be a value of LPTIM_Gate_Enable

## ◆ GateLevel

uint32_t GateLevel

Specifies gate level high or low. This parameter can be a value of LPTIM_Gate_Level_Selection

## ◆ Period

uint32_t Period

Specifies the period value to be loaded into the active CNT value immediately through LOAD register or periodly through BGLOAD register refer to mode specified by LPTIM_AutoReload. Period caculation = (MaxCntLevel - Period)/(LPTIM clock) This parameter can be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF.

## ◆ TogEnable

uint32_t TogEnable

Specifies tog function enable or disable. This parameter can be a value of LPTIM_Toggle_Enable

该结构体的文档由以下文件生成:

- mg32l003_lptim.h