STM32F439xx HAL User Manual
Data Fields
LL_TIM_InitTypeDef Struct Reference

TIM Time Base configuration structure definition. More...

#include <stm32f4xx_ll_tim.h>

Data Fields

uint16_t Prescaler
uint32_t CounterMode
uint32_t Autoreload
uint32_t ClockDivision
uint8_t RepetitionCounter

Detailed Description

TIM Time Base configuration structure definition.

Definition at line 200 of file stm32f4xx_ll_tim.h.


Field Documentation

Specifies the auto reload value to be loaded into the active Auto-Reload Register at the next update event. This parameter must be a number between Min_Data=0x0000 and Max_Data=0xFFFF. Some timer instances may support 32 bits counters. In that case this parameter must be a number between 0x0000 and 0xFFFFFFFF.

This feature can be modified afterwards using unitary function LL_TIM_SetAutoReload().

Definition at line 212 of file stm32f4xx_ll_tim.h.

Referenced by LL_TIM_Init(), and LL_TIM_StructInit().

Specifies the clock division. This parameter can be a value of Clock Division.

This feature can be modified afterwards using unitary function LL_TIM_SetClockDivision().

Definition at line 219 of file stm32f4xx_ll_tim.h.

Referenced by LL_TIM_Init(), and LL_TIM_StructInit().

Specifies the counter mode. This parameter can be a value of Counter Mode.

This feature can be modified afterwards using unitary function LL_TIM_SetCounterMode().

Definition at line 207 of file stm32f4xx_ll_tim.h.

Referenced by LL_TIM_Init(), and LL_TIM_StructInit().

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

This feature can be modified afterwards using unitary function LL_TIM_SetPrescaler().

Definition at line 202 of file stm32f4xx_ll_tim.h.

Referenced by LL_TIM_Init(), and LL_TIM_StructInit().

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 This parameter must be a number between 0x00 and 0xFF.

This feature can be modified afterwards using unitary function LL_TIM_SetRepetitionCounter().

Definition at line 224 of file stm32f4xx_ll_tim.h.

Referenced by LL_TIM_Init(), and LL_TIM_StructInit().


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