STM32L486xx 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, uint32_t BreakFilter)
 Configure the break input.
__STATIC_INLINE void LL_TIM_EnableBRK2 (TIM_TypeDef *TIMx)
 Enable the break 2 function.
__STATIC_INLINE void LL_TIM_DisableBRK2 (TIM_TypeDef *TIMx)
 Disable the break 2 function.
__STATIC_INLINE void LL_TIM_ConfigBRK2 (TIM_TypeDef *TIMx, uint32_t Break2Polarity, uint32_t Break2Filter)
 Configure the break 2 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.
__STATIC_INLINE void LL_TIM_EnableBreakInputSource (TIM_TypeDef *TIMx, uint32_t BreakInput, uint32_t Source)
 Enable the signals connected to the designated timer break input.
__STATIC_INLINE void LL_TIM_DisableBreakInputSource (TIM_TypeDef *TIMx, uint32_t BreakInput, uint32_t Source)
 Disable the signals connected to the designated timer break input.
__STATIC_INLINE void LL_TIM_SetBreakInputSourcePolarity (TIM_TypeDef *TIMx, uint32_t BreakInput, uint32_t Source, uint32_t Polarity)
 Set the polarity of the break signal for the timer break input.

Function Documentation

__STATIC_INLINE void LL_TIM_ConfigBRK ( TIM_TypeDef *  TIMx,
uint32_t  BreakPolarity,
uint32_t  BreakFilter 
)

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
BDTR BKF LL_TIM_ConfigBRK
Parameters:
TIMxTimer instance
BreakPolarityThis parameter can be one of the following values:
BreakFilterThis parameter can be one of the following values:
Return values:
None

Definition at line 3481 of file stm32l4xx_ll_tim.h.

__STATIC_INLINE void LL_TIM_ConfigBRK2 ( TIM_TypeDef *  TIMx,
uint32_t  Break2Polarity,
uint32_t  Break2Filter 
)

Configure the break 2 input.

Note:
Macro IS_TIM_BKIN2_INSTANCE(TIMx) can be used to check whether or not a timer instance provides a second break input.
Reference Manual to LL API cross reference:
BDTR BK2P LL_TIM_ConfigBRK2
BDTR BK2F LL_TIM_ConfigBRK2
Parameters:
TIMxTimer instance
Break2PolarityThis parameter can be one of the following values:
Break2FilterThis parameter can be one of the following values:
Return values:
None

Definition at line 3541 of file stm32l4xx_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 3630 of file stm32l4xx_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 3587 of file stm32l4xx_ll_tim.h.

__STATIC_INLINE void LL_TIM_DisableBreakInputSource ( TIM_TypeDef *  TIMx,
uint32_t  BreakInput,
uint32_t  Source 
)

Disable the signals connected to the designated timer break input.

Note:
Macro IS_TIM_BREAKSOURCE_INSTANCE(TIMx) can be used to check whether or not a timer instance allows for break input selection.
Reference Manual to LL API cross reference:
OR2 BKINE LL_TIM_DisableBreakInputSource
OR2 BKCMP1E LL_TIM_DisableBreakInputSource
OR2 BKCMP2E LL_TIM_DisableBreakInputSource
OR2 BKDF1BK0E LL_TIM_DisableBreakInputSource
OR3 BK2INE LL_TIM_DisableBreakInputSource
OR3 BK2CMP1E LL_TIM_DisableBreakInputSource
OR3 BK2CMP2E LL_TIM_DisableBreakInputSource
OR3 BK2DF1BK1E LL_TIM_DisableBreakInputSource
Parameters:
TIMxTimer instance
BreakInputThis parameter can be one of the following values:
SourceThis parameter can be one of the following values:
Return values:
None

Definition at line 3700 of file stm32l4xx_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 3447 of file stm32l4xx_ll_tim.h.

__STATIC_INLINE void LL_TIM_DisableBRK2 ( TIM_TypeDef *  TIMx)

Disable the break 2 function.

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

Definition at line 3507 of file stm32l4xx_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 3615 of file stm32l4xx_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 3574 of file stm32l4xx_ll_tim.h.

__STATIC_INLINE void LL_TIM_EnableBreakInputSource ( TIM_TypeDef *  TIMx,
uint32_t  BreakInput,
uint32_t  Source 
)

Enable the signals connected to the designated timer break input.

Note:
Macro IS_TIM_BREAKSOURCE_INSTANCE(TIMx) can be used to check whether or not a timer instance allows for break input selection.
Reference Manual to LL API cross reference:
OR2 BKINE LL_TIM_EnableBreakInputSource
OR2 BKCMP1E LL_TIM_EnableBreakInputSource
OR2 BKCMP2E LL_TIM_EnableBreakInputSource
OR2 BKDF1BK0E LL_TIM_EnableBreakInputSource
OR3 BK2INE LL_TIM_EnableBreakInputSource
OR3 BK2CMP1E LL_TIM_EnableBreakInputSource
OR3 BK2CMP2E LL_TIM_EnableBreakInputSource
OR3 BK2DF1BK1E LL_TIM_EnableBreakInputSource
Parameters:
TIMxTimer instance
BreakInputThis parameter can be one of the following values:
SourceThis parameter can be one of the following values:
Return values:
None

Definition at line 3671 of file stm32l4xx_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 3434 of file stm32l4xx_ll_tim.h.

__STATIC_INLINE void LL_TIM_EnableBRK2 ( TIM_TypeDef *  TIMx)

Enable the break 2 function.

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

Definition at line 3494 of file stm32l4xx_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 3643 of file stm32l4xx_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 3600 of file stm32l4xx_ll_tim.h.

__STATIC_INLINE void LL_TIM_SetBreakInputSourcePolarity ( TIM_TypeDef *  TIMx,
uint32_t  BreakInput,
uint32_t  Source,
uint32_t  Polarity 
)

Set the polarity of the break signal for the timer break input.

Note:
Macro IS_TIM_BREAKSOURCE_INSTANCE(TIMx) can be used to check whether or not a timer instance allows for break input selection.
Reference Manual to LL API cross reference:
OR2 BKINP LL_TIM_SetBreakInputSourcePolarity
OR2 BKCMP1P LL_TIM_SetBreakInputSourcePolarity
OR2 BKCMP2P LL_TIM_SetBreakInputSourcePolarity
OR3 BK2INP LL_TIM_SetBreakInputSourcePolarity
OR3 BK2CMP1P LL_TIM_SetBreakInputSourcePolarity
OR3 BK2CMP2P LL_TIM_SetBreakInputSourcePolarity
Parameters:
TIMxTimer instance
BreakInputThis parameter can be one of the following values:
SourceThis parameter can be one of the following values:
PolarityThis parameter can be one of the following values:
Return values:
None

Definition at line 3729 of file stm32l4xx_ll_tim.h.

References TIM_POSITION_BRK_SOURCE, and TIMx_OR2_BKINP.

__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 3561 of file stm32l4xx_ll_tim.h.