Prusa MINI Firmware overview
TIM_Base_InitTypeDef Struct Reference

TIM Time base Configuration Structure definition. More...

#include <stm32f4xx_hal_tim.h>

Collaboration diagram for TIM_Base_InitTypeDef:

Public Attributes

uint32_t Prescaler
 
uint32_t CounterMode
 
uint32_t Period
 
uint32_t ClockDivision
 
uint32_t RepetitionCounter
 

Detailed Description

TIM Time base Configuration Structure definition.

Member Data Documentation

◆ Prescaler

uint32_t TIM_Base_InitTypeDef::Prescaler

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

◆ CounterMode

uint32_t TIM_Base_InitTypeDef::CounterMode

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

◆ Period

uint32_t TIM_Base_InitTypeDef::Period

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 = 0x0000U and Max_Data = 0xFFFF.

◆ ClockDivision

uint32_t TIM_Base_InitTypeDef::ClockDivision

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

◆ RepetitionCounter

uint32_t TIM_Base_InitTypeDef::RepetitionCounter

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 Min_Data = 0x00 and Max_Data = 0xFF.
    Note
    This parameter is valid only for TIM1 and TIM8.