WB32L003 Standard Peripherals Firmware Library

Data Structures | Macros | Functions
wb32l003_basetim.h File Reference

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

`#include "wb32l003.h"`

Go to the source code of this file.

## Data Structures
struct | BaseTim_InitTypeDef
| BaseTim Init structure definition. More...

## Macros
#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)

## 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

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

Author
  WestberryTech Application Team

Version
  V0.0.4

Date
  23-April-2023