MG32L003 Standard Peripherals Firmware Library

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

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

`#include "mg32l003.h"`

浏览源代码.

## 结构体
struct | BaseTim_InitTypeDef
| BaseTim Init structure definition 更多...

## 宏定义
#define | IS_BaseTIM_ALL_PERIPH(PERIPH)
#define | BaseTim_Gate_Enable ((uint32_t)(0x01U << 10))
#define | BaseTim_Gate_Disable ((uint32_t)0x00)
#define | BaseTim_GatePolarity_Low ((uint32_t)(0x01U << 11))
#define | BaseTim_GatePolarity_High ((uint32_t)0x00)
#define | BaseTim_Tog_Enable ((uint32_t)(0x01U << 9))
#define | BaseTim_Tog_Disable ((uint32_t)0x00)
#define | BaseTim_Function_Count ((uint32_t)(0x01U << 8))
#define | BaseTim_Function_Timer ((uint32_t)0x00)
#define | BaseTim_AutoReload_Enable ((uint32_t)(0x01U << 6))
#define | BaseTim_AutoReload_Disable ((uint32_t)0x00)
#define | BaseTim_CountLevel_32BIT ((uint32_t)(0x01U << 4))
#define | BaseTim_CountLevel_16BIT ((uint32_t)0x00)
#define | BaseTim_CountMode_OneShot ((uint32_t)(0x01U << 3))
#define | BaseTim_CountMode_Repeat ((uint32_t)0x00)
#define | BaseTim_Prescaler_DIV1 ((uint32_t)0x00)
#define | BaseTim_Prescaler_DIV2 ((uint32_t)0x01)
#define | BaseTim_Prescaler_DIV4 ((uint32_t)0x02)
#define | BaseTim_Prescaler_DIV8 ((uint32_t)0x03)
#define | BaseTim_Prescaler_DIV16 ((uint32_t)0x04)
#define | BaseTim_Prescaler_DIV32 ((uint32_t)0x05)
#define | BaseTim_Prescaler_DIV64 ((uint32_t)0x06)
#define | BaseTim_Prescaler_DIV128 ((uint32_t)0x07)

## 函数
void | BaseTim_DeInit (BASETIM_TypeDef *TIMx)
| Deinitializes the TIMx peripheral registers to their default reset values. 更多...
void | BaseTim_Init (BASETIM_TypeDef *TIMx, BaseTim_InitTypeDef *BaseTim_InitStruct)
| Initializes the BaseTIMx Unit peripheral according to the specified parameters in the TIM_TimeBaseInitStruct. 更多...
void | BaseTim_Cmd (BASETIM_TypeDef *TIMx, FunctionalState NewState)
void | BaseTim_ITConfig (BASETIM_TypeDef *TIMx, FunctionalState NewState)
uint32_t | BaseTim_GetCounter (BASETIM_TypeDef *TIMx)
void | BaseTim_SetLoad (BASETIM_TypeDef *TIMx, uint16_t load)
void | BaseTim_SetBkLoad (BASETIM_TypeDef *TIMx, uint16_t bgLoad)
FlagStatus | BaseTim_GetFlagStatus (BASETIM_TypeDef *TIMx)
void | BaseTim_ClearFlag (BASETIM_TypeDef *TIMx)

## 详细描述

This file contains all the functions prototypes for the base TIM firmware library.

作者
  megawinTech Application Team

版本
  V0.0.5

日期
  13-August-2024