STM32L486xx HAL User Manual
Data Fields
TIM_Base_InitTypeDef Struct Reference

TIM Time base Configuration Structure definition. More...

#include <stm32l4xx_hal_tim.h>

Data Fields

uint32_t Prescaler
uint32_t CounterMode
uint32_t Period
uint32_t ClockDivision
uint32_t RepetitionCounter
uint32_t AutoReloadPreload

Detailed Description

TIM Time base Configuration Structure definition.

Definition at line 63 of file stm32l4xx_hal_tim.h.


Field Documentation

Specifies the period value to be loaded into the active Auto-Reload Register at the next update event. This parameter can be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF.

Definition at line 71 of file stm32l4xx_hal_tim.h.

Referenced by TIM_Base_SetConfig().

Specifies the prescaler value used to divide the TIM clock. This parameter can be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF

Definition at line 65 of file stm32l4xx_hal_tim.h.

Referenced by TIM_Base_SetConfig().

Specifies the repetition counter value. Each time the RCR downcounter reaches zero, an update event is generated and counting restarts from the RCR value (N). This means in PWM mode that (N+1) corresponds to:

  • the number of PWM periods in edge-aligned mode
  • the number of half PWM period in center-aligned mode GP timers: this parameter must be a number between Min_Data = 0x00 and Max_Data = 0xFF. Advanced timers: this parameter must be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF.

Definition at line 78 of file stm32l4xx_hal_tim.h.

Referenced by TIM_Base_SetConfig().


The documentation for this struct was generated from the following file: