STM32G474xx HAL User Manual
Functions
TIM Private Functions
TIM

Private functions. More...

Functions

static ErrorStatus OC1Config (TIM_TypeDef *TIMx, const LL_TIM_OC_InitTypeDef *TIM_OCInitStruct)
 Configure the TIMx output channel 1.
static ErrorStatus OC2Config (TIM_TypeDef *TIMx, const LL_TIM_OC_InitTypeDef *TIM_OCInitStruct)
 Configure the TIMx output channel 2.
static ErrorStatus OC3Config (TIM_TypeDef *TIMx, const LL_TIM_OC_InitTypeDef *TIM_OCInitStruct)
 Configure the TIMx output channel 3.
static ErrorStatus OC4Config (TIM_TypeDef *TIMx, const LL_TIM_OC_InitTypeDef *TIM_OCInitStruct)
 Configure the TIMx output channel 4.
static ErrorStatus OC5Config (TIM_TypeDef *TIMx, const LL_TIM_OC_InitTypeDef *TIM_OCInitStruct)
 Configure the TIMx output channel 5.
static ErrorStatus OC6Config (TIM_TypeDef *TIMx, const LL_TIM_OC_InitTypeDef *TIM_OCInitStruct)
 Configure the TIMx output channel 6.
static ErrorStatus IC1Config (TIM_TypeDef *TIMx, const LL_TIM_IC_InitTypeDef *TIM_ICInitStruct)
 Configure the TIMx input channel 1.
static ErrorStatus IC2Config (TIM_TypeDef *TIMx, const LL_TIM_IC_InitTypeDef *TIM_ICInitStruct)
 Configure the TIMx input channel 2.
static ErrorStatus IC3Config (TIM_TypeDef *TIMx, const LL_TIM_IC_InitTypeDef *TIM_ICInitStruct)
 Configure the TIMx input channel 3.
static ErrorStatus IC4Config (TIM_TypeDef *TIMx, const LL_TIM_IC_InitTypeDef *TIM_ICInitStruct)
 Configure the TIMx input channel 4.

Detailed Description

Private functions.


Function Documentation

static ErrorStatus IC1Config ( TIM_TypeDef *  TIMx,
const LL_TIM_IC_InitTypeDef TIM_ICInitStruct 
) [static]

Configure the TIMx input channel 1.

Parameters:
TIMxTimer Instance
TIM_ICInitStructpointer to the the TIMx input channel 1 configuration data structure
Return values:
AnErrorStatus enumeration value:
  • SUCCESS: TIMx registers are de-initialized
  • ERROR: not applicable

Definition at line 1240 of file stm32g4xx_ll_tim.c.

References assert_param, LL_TIM_IC_InitTypeDef::ICActiveInput, LL_TIM_IC_InitTypeDef::ICFilter, LL_TIM_IC_InitTypeDef::ICPolarity, LL_TIM_IC_InitTypeDef::ICPrescaler, IS_LL_TIM_ACTIVEINPUT, IS_LL_TIM_IC_FILTER, IS_LL_TIM_IC_POLARITY, and IS_LL_TIM_ICPSC.

Referenced by LL_TIM_IC_Init().

static ErrorStatus IC2Config ( TIM_TypeDef *  TIMx,
const LL_TIM_IC_InitTypeDef TIM_ICInitStruct 
) [static]

Configure the TIMx input channel 2.

Parameters:
TIMxTimer Instance
TIM_ICInitStructpointer to the the TIMx input channel 2 configuration data structure
Return values:
AnErrorStatus enumeration value:
  • SUCCESS: TIMx registers are de-initialized
  • ERROR: not applicable

Definition at line 1273 of file stm32g4xx_ll_tim.c.

References assert_param, LL_TIM_IC_InitTypeDef::ICActiveInput, LL_TIM_IC_InitTypeDef::ICFilter, LL_TIM_IC_InitTypeDef::ICPolarity, LL_TIM_IC_InitTypeDef::ICPrescaler, IS_LL_TIM_ACTIVEINPUT, IS_LL_TIM_IC_FILTER, IS_LL_TIM_IC_POLARITY, and IS_LL_TIM_ICPSC.

Referenced by LL_TIM_IC_Init().

static ErrorStatus IC3Config ( TIM_TypeDef *  TIMx,
const LL_TIM_IC_InitTypeDef TIM_ICInitStruct 
) [static]

Configure the TIMx input channel 3.

Parameters:
TIMxTimer Instance
TIM_ICInitStructpointer to the the TIMx input channel 3 configuration data structure
Return values:
AnErrorStatus enumeration value:
  • SUCCESS: TIMx registers are de-initialized
  • ERROR: not applicable

Definition at line 1306 of file stm32g4xx_ll_tim.c.

References assert_param, LL_TIM_IC_InitTypeDef::ICActiveInput, LL_TIM_IC_InitTypeDef::ICFilter, LL_TIM_IC_InitTypeDef::ICPolarity, LL_TIM_IC_InitTypeDef::ICPrescaler, IS_LL_TIM_ACTIVEINPUT, IS_LL_TIM_IC_FILTER, IS_LL_TIM_IC_POLARITY, and IS_LL_TIM_ICPSC.

Referenced by LL_TIM_IC_Init().

static ErrorStatus IC4Config ( TIM_TypeDef *  TIMx,
const LL_TIM_IC_InitTypeDef TIM_ICInitStruct 
) [static]

Configure the TIMx input channel 4.

Parameters:
TIMxTimer Instance
TIM_ICInitStructpointer to the the TIMx input channel 4 configuration data structure
Return values:
AnErrorStatus enumeration value:
  • SUCCESS: TIMx registers are de-initialized
  • ERROR: not applicable

Definition at line 1339 of file stm32g4xx_ll_tim.c.

References assert_param, LL_TIM_IC_InitTypeDef::ICActiveInput, LL_TIM_IC_InitTypeDef::ICFilter, LL_TIM_IC_InitTypeDef::ICPolarity, LL_TIM_IC_InitTypeDef::ICPrescaler, IS_LL_TIM_ACTIVEINPUT, IS_LL_TIM_IC_FILTER, IS_LL_TIM_IC_POLARITY, and IS_LL_TIM_ICPSC.

Referenced by LL_TIM_IC_Init().

static ErrorStatus OC1Config ( TIM_TypeDef *  TIMx,
const LL_TIM_OC_InitTypeDef TIM_OCInitStruct 
) [static]

Configure the TIMx output channel 1.

Parameters:
TIMxTimer Instance
TIM_OCInitStructpointer to the the TIMx output channel 1 configuration data structure
Return values:
AnErrorStatus enumeration value:
  • SUCCESS: TIMx registers are de-initialized
  • ERROR: not applicable

Definition at line 803 of file stm32g4xx_ll_tim.c.

References assert_param, LL_TIM_OC_InitTypeDef::CompareValue, IS_LL_TIM_OCIDLESTATE, IS_LL_TIM_OCMODE, IS_LL_TIM_OCPOLARITY, IS_LL_TIM_OCSTATE, LL_TIM_OC_SetCompareCH1(), LL_TIM_ReadReg, LL_TIM_WriteReg, LL_TIM_OC_InitTypeDef::OCIdleState, LL_TIM_OC_InitTypeDef::OCMode, LL_TIM_OC_InitTypeDef::OCNIdleState, LL_TIM_OC_InitTypeDef::OCNPolarity, LL_TIM_OC_InitTypeDef::OCNState,