MG32L003 Standard Peripherals Firmware Library
Modules | Data Structures | Functions

Modules

 TIM_Exported_constants
 

Data Structures

struct  BaseTim_InitTypeDef
 BaseTim Init structure definition. More...
 

Functions

void BaseTim_DeInit (BASETIM_TypeDef *TIMx)
 Deinitializes the TIMx peripheral registers to their default reset values. More...
 
void BaseTim_Init (BASETIM_TypeDef *TIMx, BaseTim_InitTypeDef *BaseTim_InitStruct)
 Initializes the BaseTIMx Unit peripheral according to the specified parameters in the TIM_TimeBaseInitStruct. More...
 
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)
 

Detailed Description

Function Documentation

◆ BaseTim_DeInit()

void BaseTim_DeInit ( BASETIM_TypeDef TIMx)

Deinitializes the TIMx peripheral registers to their default reset values.

Parameters
TIMxwhere x can be 10 and 11 to select the BaseTIM peripheral.
Return values
None

◆ BaseTim_Init()

void BaseTim_Init ( BASETIM_TypeDef TIMx,
BaseTim_InitTypeDef BaseTim_InitStruct 
)

Initializes the BaseTIMx Unit peripheral according to the specified parameters in the TIM_TimeBaseInitStruct.

Parameters
TIMxwhere x can be 1 to 8 to select the BaseTIM peripheral.
TIM_TimeBaseInitStructpointer to a TIM_TimeBaseInitTypeDef structure that contains the configuration information for the specified BaseTIM peripheral.
Return values
None