STM32F439xx HAL User Manual
Functions
Break function configuration
TIM Exported Functions

Functions

__STATIC_INLINE void LL_TIM_EnableBRK (TIM_TypeDef *TIMx)
 Enable the break function.
__STATIC_INLINE void LL_TIM_DisableBRK (TIM_TypeDef *TIMx)
 Disable the break function.
__STATIC_INLINE void LL_TIM_ConfigBRK (TIM_TypeDef *TIMx, uint32_t BreakPolarity)
 Configure the break input.
__STATIC_INLINE void LL_TIM_SetOffStates (TIM_TypeDef *TIMx, uint32_t OffStateIdle, uint32_t OffStateRun)
 Select the outputs off state (enabled v.s.
__STATIC_INLINE void LL_TIM_EnableAutomaticOutput (TIM_TypeDef *TIMx)
 Enable automatic output (MOE can be set by software or automatically when a break input is active).
__STATIC_INLINE void LL_TIM_DisableAutomaticOutput (TIM_TypeDef *TIMx)
 Disable automatic output (MOE can be set only by software).
__STATIC_INLINE uint32_t LL_TIM_IsEnabledAutomaticOutput (TIM_TypeDef *TIMx)
 Indicate whether automatic output is enabled.
__STATIC_INLINE void LL_TIM_EnableAllOutputs (TIM_TypeDef *TIMx)
 Enable the outputs (set the MOE bit in TIMx_BDTR register).
__STATIC_INLINE void LL_TIM_DisableAllOutputs (TIM_TypeDef *TIMx)
 Disable the outputs (reset the MOE bit in TIMx_BDTR register).
__STATIC_INLINE uint32_t LL_TIM_IsEnabledAllOutputs (TIM_TypeDef *TIMx)
 Indicates whether outputs are enabled.

Function Documentation

__STATIC_INLINE void LL_TIM_ConfigBRK ( TIM_TypeDef *  TIMx,
uint32_t  BreakPolarity 
)

Configure the break input.

Note:
Macro IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not a timer instance provides a break input.
Reference Manual to LL API cross reference:
BDTR BKP LL_TIM_ConfigBRK
Parameters:
TIMxTimer instance
BreakPolarityThis parameter can be one of the following values:
Return values:
None

Definition at line 2831 of file stm32f4xx_ll_tim.h.

__STATIC_INLINE void LL_TIM_DisableAllOutputs ( TIM_TypeDef *  TIMx)

Disable the outputs (reset the MOE bit in TIMx_BDTR register).

Note:
The MOE bit in TIMx_BDTR register allows to enable /disable the outputs by software and is reset in case of break or break2 event.
Macro IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not a timer instance provides a break input.
Reference Manual to LL API cross reference:
BDTR MOE LL_TIM_DisableAllOutputs
Parameters:
TIMxTimer instance
Return values:
None

Definition at line 2920 of file stm32f4xx_ll_tim.h.

__STATIC_INLINE void LL_TIM_DisableAutomaticOutput ( TIM_TypeDef *  TIMx)

Disable automatic output (MOE can be set only by software).

Note:
Macro IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not a timer instance provides a break input.
Reference Manual to LL API cross reference:
BDTR AOE LL_TIM_DisableAutomaticOutput
Parameters:
TIMxTimer instance
Return values:
None

Definition at line 2877 of file stm32f4xx_ll_tim.h.

__STATIC_INLINE void LL_TIM_DisableBRK ( TIM_TypeDef *  TIMx)

Disable the break function.

Reference Manual to LL API cross reference:
BDTR BKE LL_TIM_DisableBRK
Parameters:
TIMxTimer instance
Note:
Macro IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not a timer instance provides a break input.
Return values:
None

Definition at line 2815 of file stm32f4xx_ll_tim.h.

__STATIC_INLINE void LL_TIM_EnableAllOutputs ( TIM_TypeDef *  TIMx)

Enable the outputs (set the MOE bit in TIMx_BDTR register).

Note:
The MOE bit in TIMx_BDTR register allows to enable /disable the outputs by software and is reset in case of break or break2 event
Macro IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not a timer instance provides a break input.
Reference Manual to LL API cross reference:
BDTR MOE LL_TIM_EnableAllOutputs
Parameters:
TIMxTimer instance
Return values:
None

Definition at line 2905 of file stm32f4xx_ll_tim.h.

__STATIC_INLINE void LL_TIM_EnableAutomaticOutput ( TIM_TypeDef *  TIMx)

Enable automatic output (MOE can be set by software or automatically when a break input is active).

Note:
Macro IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not a timer instance provides a break input.
Reference Manual to LL API cross reference:
BDTR AOE LL_TIM_EnableAutomaticOutput
Parameters:
TIMxTimer instance
Return values:
None

Definition at line 2864 of file stm32f4xx_ll_tim.h.

__STATIC_INLINE void LL_TIM_EnableBRK ( TIM_TypeDef *  TIMx)

Enable the break function.

Note:
Macro IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not a timer instance provides a break input.
Reference Manual to LL API cross reference:
BDTR BKE LL_TIM_EnableBRK
Parameters:
TIMxTimer instance
Return values:
None

Definition at line 2802 of file stm32f4xx_ll_tim.h.

__STATIC_INLINE uint32_t LL_TIM_IsEnabledAllOutputs ( TIM_TypeDef *  TIMx)

Indicates whether outputs are enabled.

Note:
Macro IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not a timer instance provides a break input.
Reference Manual to LL API cross reference:
BDTR MOE LL_TIM_IsEnabledAllOutputs
Parameters:
TIMxTimer instance
Return values:
Stateof bit (1 or 0).

Definition at line 2933 of file stm32f4xx_ll_tim.h.

__STATIC_INLINE uint32_t LL_TIM_IsEnabledAutomaticOutput ( TIM_TypeDef *  TIMx)

Indicate whether automatic output is enabled.

Note:
Macro IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not a timer instance provides a break input.
Reference Manual to LL API cross reference:
BDTR AOE LL_TIM_IsEnabledAutomaticOutput
Parameters:
TIMxTimer instance
Return values:
Stateof bit (1 or 0).

Definition at line 2890 of file stm32f4xx_ll_tim.h.

__STATIC_INLINE void LL_TIM_SetOffStates ( TIM_TypeDef *  TIMx,
uint32_t  OffStateIdle,
uint32_t  OffStateRun 
)

Select the outputs off state (enabled v.s.

disabled) in Idle and Run modes.

Note:
Macro IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not a timer instance provides a break input.
Reference Manual to LL API cross reference:
BDTR OSSI LL_TIM_SetOffStates
BDTR OSSR LL_TIM_SetOffStates
Parameters:
TIMxTimer instance
OffStateIdleThis parameter can be one of the following values:
OffStateRunThis parameter can be one of the following values:
Return values:
None

Definition at line 2851 of file stm32f4xx_ll_tim.h.