HAL
LL_TIM_SetRemap() is only used within HAL.
 
Symbols
loading...
Files
loading...

LL_TIM_SetRemap() function

Remap TIM inputs (input channel, internal/external triggers). Below description summarizes "Timer Instance" and "Remap" param combinations: TIM1: one of the following values ITR2_RMP can be one of the following values @arg LL_TIM_TIM1_ITR2_RMP_TIM3_TRGO (*) @arg LL_TIM_TIM1_ITR2_RMP_LPTIM (*) TIM2: one of the following values ITR1_RMP can be one of the following values @arg LL_TIM_TIM2_ITR1_RMP_TIM8_TRGO @arg LL_TIM_TIM2_ITR1_RMP_OTG_FS_SOF @arg LL_TIM_TIM2_ITR1_RMP_OTG_HS_SOF TIM5: one of the following values @arg LL_TIM_TIM5_TI4_RMP_GPIO @arg LL_TIM_TIM5_TI4_RMP_LSI @arg LL_TIM_TIM5_TI4_RMP_LSE @arg LL_TIM_TIM5_TI4_RMP_RTC @arg LL_TIM_TIM5_ITR1_RMP_TIM3_TRGO (*) @arg LL_TIM_TIM5_ITR1_RMP_LPTIM (*) TIM9: one of the following values ITR1_RMP can be one of the following values @arg LL_TIM_TIM9_ITR1_RMP_TIM3_TRGO (*) @arg LL_TIM_TIM9_ITR1_RMP_LPTIM (*) TIM11: one of the following values @arg LL_TIM_TIM11_TI1_RMP_GPIO @arg LL_TIM_TIM11_TI1_RMP_GPIO1 (*) @arg LL_TIM_TIM11_TI1_RMP_HSE_RTC @arg LL_TIM_TIM11_TI1_RMP_GPIO2 @arg LL_TIM_TIM11_TI1_RMP_SPDIFRX (*) (*) Value not defined in all devices. \n

Syntax

__STATIC_INLINE void LL_TIM_SetRemap(TIM_TypeDef *TIMx,     uint32_t Remap);

Arguments

TIMx

Timer instance

Remap

Remap param depends on the TIMx. Description available only in CHM version of the User Manual (not in .pdf). Otherwise see Reference Manual description of OR registers.

Return value

None

Notes

Macro IS_TIM_REMAP_INSTANCE(TIMx) can be used to check whether or not a some timer inputs can be remapped. TIM2_OR ITR1_RMP LL_TIM_SetRemap\n TIM5_OR ITR1_RMP LL_TIM_SetRemap\n TIM5_OR TI4_RMP LL_TIM_SetRemap\n TIM9_OR ITR1_RMP LL_TIM_SetRemap\n TIM11_OR TI1_RMP LL_TIM_SetRemap\n LPTIM1_OR OR LL_TIM_SetRemap

References

LocationText
stm32f4xx_ll_tim.h:3152
__STATIC_INLINE void LL_TIM_SetRemap(TIM_TypeDef *TIMx, uint32_t Remap)

Data Use

Data read by LL_TIM_SetRemap()
LL_TIM_SetRemap()