STM32L4xx_HAL_Driver  1.14.0
OCREF_Clear_Management

Functions

__STATIC_INLINE void LL_TIM_SetOCRefClearInputSource (TIM_TypeDef *TIMx, uint32_t OCRefClearInputSource)
 Set the OCREF clear input source. More...
 

Detailed Description

Function Documentation

◆ LL_TIM_SetOCRefClearInputSource()

__STATIC_INLINE void LL_TIM_SetOCRefClearInputSource ( TIM_TypeDef *  TIMx,
uint32_t  OCRefClearInputSource 
)

Set the OCREF clear input source.

Note
The OCxREF signal of a given channel can be cleared when a high level is applied on the OCREF_CLR_INPUT
This function can only be used in Output compare and PWM modes. SMCR OCCS LL_TIM_SetOCRefClearInputSource
Parameters
TIMxTimer instance
OCRefClearInputSourceThis parameter can be one of the following values:
  • LL_TIM_OCREF_CLR_INT_NC
  • LL_TIM_OCREF_CLR_INT_ETR
Return values
None

Definition at line 3998 of file stm32l4xx_ll_tim.h.

3999 {
4000  MODIFY_REG(TIMx->SMCR, TIM_SMCR_OCCS, OCRefClearInputSource);
4001 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)