MG32L003 Standard Peripherals Firmware Library

成员变量
BaseTim_InitTypeDef结构体 参考
MG32L003_StdPeriph_Driver » BASETIM

BaseTim Init structure definition 更多...

`#include <mg32l003_basetim.h>`

## 成员变量
uint32_t | BaseTim_Gate
uint32_t | BaseTim_GatePolarity
uint32_t | BaseTim_Tog
uint32_t | BaseTim_Function
uint32_t | BaseTim_AutoReload
uint32_t | BaseTim_CountLevel
uint32_t | BaseTim_CountMode
uint32_t | BaseTim_Prescaler
uint32_t | BaseTim_BGLoad

## 详细描述

BaseTim Init structure definition

注解
  This structure is used for TIM10 and TIM11.

## 结构体成员变量说明

## ◆ BaseTim_AutoReload

uint32_t BaseTim_AutoReload

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

## ◆ BaseTim_BGLoad

uint32_t BaseTim_BGLoad

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 BaseTim_AutoReload. Period caculation = (MaxCntLevel - Period)/((BaseTim clock)/Prescaler) This parameter can be a number between Min_Data = 0x00000000 and Max_Data = 0xFFFFFFFF.

## ◆ BaseTim_CountLevel

uint32_t BaseTim_CountLevel

Specifies Timer maxim counter value is 0xFFFF or 0xFFFFFFFF. This parameter can be a value of BaseTim_CountLevel

## ◆ BaseTim_CountMode

uint32_t BaseTim_CountMode

Specifies Timer oneshot or repeat mode. This parameter can be a value of BaseTim_CountMode

## ◆ BaseTim_Function

uint32_t BaseTim_Function

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

## ◆ BaseTim_Gate

uint32_t BaseTim_Gate

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

## ◆ BaseTim_GatePolarity

uint32_t BaseTim_GatePolarity

Specifies gate polarity high or low. This parameter can be a value of BaseTim_GatePolarity

## ◆ BaseTim_Prescaler

uint32_t BaseTim_Prescaler

Specifies the prescaler value used to divide the BaseTim clock. This parameter can be a value of BaseTim_Prescaler

## ◆ BaseTim_Tog

uint32_t BaseTim_Tog

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

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

- mg32l003_basetim.h