Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Capture Compare configuration
[TIM Exported Functions]
Functions | |
__STATIC_INLINE void | LL_TIM_CC_EnablePreload (TIM_TypeDef *TIMx) |
Enable the capture/compare control bits (CCxE, CCxNE and OCxM) preload. | |
__STATIC_INLINE void | LL_TIM_CC_DisablePreload (TIM_TypeDef *TIMx) |
Disable the capture/compare control bits (CCxE, CCxNE and OCxM) preload. | |
__STATIC_INLINE void | LL_TIM_CC_SetUpdate (TIM_TypeDef *TIMx, uint32_t CCUpdateSource) |
Set the updated source of the capture/compare control bits (CCxE, CCxNE and OCxM). | |
__STATIC_INLINE void | LL_TIM_CC_SetDMAReqTrigger (TIM_TypeDef *TIMx, uint32_t DMAReqTrigger) |
Set the trigger of the capture/compare DMA request. | |
__STATIC_INLINE uint32_t | LL_TIM_CC_GetDMAReqTrigger (TIM_TypeDef *TIMx) |
Get actual trigger of the capture/compare DMA request. | |
__STATIC_INLINE void | LL_TIM_CC_SetLockLevel (TIM_TypeDef *TIMx, uint32_t LockLevel) |
Set the lock level to freeze the configuration of several capture/compare parameters. | |
__STATIC_INLINE void | LL_TIM_CC_EnableChannel (TIM_TypeDef *TIMx, uint32_t Channels) |
Enable capture/compare channels. | |
__STATIC_INLINE void | LL_TIM_CC_DisableChannel (TIM_TypeDef *TIMx, uint32_t Channels) |
Disable capture/compare channels. | |
__STATIC_INLINE uint32_t | LL_TIM_CC_IsEnabledChannel (TIM_TypeDef *TIMx, uint32_t Channels) |
Indicate whether channel(s) is(are) enabled. |
Function Documentation
__STATIC_INLINE void LL_TIM_CC_DisableChannel | ( | TIM_TypeDef * | TIMx, |
uint32_t | Channels | ||
) |
Disable capture/compare channels.
CCER CC1E LL_TIM_CC_DisableChannel
CCER CC1NE LL_TIM_CC_DisableChannel
CCER CC2E LL_TIM_CC_DisableChannel
CCER CC2NE LL_TIM_CC_DisableChannel
CCER CC3E LL_TIM_CC_DisableChannel
CCER CC3NE LL_TIM_CC_DisableChannel
CCER CC4E LL_TIM_CC_DisableChannel
CCER CC5E LL_TIM_CC_DisableChannel
CCER CC6E LL_TIM_CC_DisableChannel
- Parameters:
-
TIMx Timer instance Channels This parameter can be a combination of the following values: - LL_TIM_CHANNEL_CH1
- LL_TIM_CHANNEL_CH1N
- LL_TIM_CHANNEL_CH2
- LL_TIM_CHANNEL_CH2N
- LL_TIM_CHANNEL_CH3
- LL_TIM_CHANNEL_CH3N
- LL_TIM_CHANNEL_CH4
- LL_TIM_CHANNEL_CH5
- LL_TIM_CHANNEL_CH6
- Return values:
-
None
Definition at line 1856 of file stm32l4xx_ll_tim.h.
__STATIC_INLINE void LL_TIM_CC_DisablePreload | ( | TIM_TypeDef * | TIMx ) |
Disable the capture/compare control bits (CCxE, CCxNE and OCxM) preload.
- Note:
- Macro IS_TIM_COMMUTATION_EVENT_INSTANCE(TIMx) can be used to check whether or not a timer instance is able to generate a commutation event. CR2 CCPC LL_TIM_CC_DisablePreload
- Parameters:
-
TIMx Timer instance
- Return values:
-
None
Definition at line 1736 of file stm32l4xx_ll_tim.h.
__STATIC_INLINE void LL_TIM_CC_EnableChannel | ( | TIM_TypeDef * | TIMx, |
uint32_t | Channels | ||
) |
Enable capture/compare channels.
CCER CC1E LL_TIM_CC_EnableChannel
CCER CC1NE LL_TIM_CC_EnableChannel
CCER CC2E LL_TIM_CC_EnableChannel
CCER CC2NE LL_TIM_CC_EnableChannel
CCER CC3E LL_TIM_CC_EnableChannel
CCER CC3NE LL_TIM_CC_EnableChannel
CCER CC4E LL_TIM_CC_EnableChannel
CCER CC5E LL_TIM_CC_EnableChannel
CCER CC6E LL_TIM_CC_EnableChannel
- Parameters:
-
TIMx Timer instance Channels This parameter can be a combination of the following values: - LL_TIM_CHANNEL_CH1
- LL_TIM_CHANNEL_CH1N
- LL_TIM_CHANNEL_CH2
- LL_TIM_CHANNEL_CH2N
- LL_TIM_CHANNEL_CH3
- LL_TIM_CHANNEL_CH3N
- LL_TIM_CHANNEL_CH4
- LL_TIM_CHANNEL_CH5
- LL_TIM_CHANNEL_CH6
- Return values:
-
None
Definition at line 1827 of file stm32l4xx_ll_tim.h.
__STATIC_INLINE void LL_TIM_CC_EnablePreload | ( | TIM_TypeDef * | TIMx ) |
Enable the capture/compare control bits (CCxE, CCxNE and OCxM) preload.
- Note:
- CCxE, CCxNE and OCxM bits are preloaded, after having been written, they are updated only when a commutation event (COM) occurs.
- Only on channels that have a complementary output.
- Macro IS_TIM_COMMUTATION_EVENT_INSTANCE(TIMx) can be used to check whether or not a timer instance is able to generate a commutation event. CR2 CCPC LL_TIM_CC_EnablePreload
- Parameters:
-
TIMx Timer instance
- Return values:
-
None
Definition at line 1723 of file stm32l4xx_ll_tim.h.
__STATIC_INLINE uint32_t LL_TIM_CC_GetDMAReqTrigger | ( | TIM_TypeDef * | TIMx ) |
Get actual trigger of the capture/compare DMA request.
CR2 CCDS LL_TIM_CC_GetDMAReqTrigger
- Parameters:
-
TIMx Timer instance
- Return values:
-
Returned value can be one of the following values: - LL_TIM_CCDMAREQUEST_CC
- LL_TIM_CCDMAREQUEST_UPDATE
Definition at line 1779 of file stm32l4xx_ll_tim.h.
__STATIC_INLINE uint32_t LL_TIM_CC_IsEnabledChannel | ( | TIM_TypeDef * | TIMx, |
uint32_t | Channels | ||
) |
Indicate whether channel(s) is(are) enabled.
CCER CC1E LL_TIM_CC_IsEnabledChannel
CCER CC1NE LL_TIM_CC_IsEnabledChannel
CCER CC2E LL_TIM_CC_IsEnabledChannel
CCER CC2NE LL_TIM_CC_IsEnabledChannel
CCER CC3E LL_TIM_CC_IsEnabledChannel
CCER CC3NE LL_TIM_CC_IsEnabledChannel
CCER CC4E LL_TIM_CC_IsEnabledChannel
CCER CC5E LL_TIM_CC_IsEnabledChannel
CCER CC6E LL_TIM_CC_IsEnabledChannel
- Parameters:
-
TIMx Timer instance Channels This parameter can be a combination of the following values: - LL_TIM_CHANNEL_CH1
- LL_TIM_CHANNEL_CH1N
- LL_TIM_CHANNEL_CH2
- LL_TIM_CHANNEL_CH2N
- LL_TIM_CHANNEL_CH3
- LL_TIM_CHANNEL_CH3N
- LL_TIM_CHANNEL_CH4
- LL_TIM_CHANNEL_CH5
- LL_TIM_CHANNEL_CH6
- Return values:
-
State of bit (1 or 0).
Definition at line 1885 of file stm32l4xx_ll_tim.h.
__STATIC_INLINE void LL_TIM_CC_SetDMAReqTrigger | ( | TIM_TypeDef * | TIMx, |
uint32_t | DMAReqTrigger | ||
) |
Set the trigger of the capture/compare DMA request.
CR2 CCDS LL_TIM_CC_SetDMAReqTrigger
- Parameters:
-
TIMx Timer instance DMAReqTrigger This parameter can be one of the following values: - LL_TIM_CCDMAREQUEST_CC
- LL_TIM_CCDMAREQUEST_UPDATE
- Return values:
-
None
Definition at line 1766 of file stm32l4xx_ll_tim.h.
__STATIC_INLINE void LL_TIM_CC_SetLockLevel | ( | TIM_TypeDef * | TIMx, |
uint32_t | LockLevel | ||
) |
Set the lock level to freeze the configuration of several capture/compare parameters.
- Note:
- Macro IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not the lock mechanism is supported by a timer instance. BDTR LOCK LL_TIM_CC_SetLockLevel
- Parameters:
-
TIMx Timer instance LockLevel This parameter can be one of the following values: - LL_TIM_LOCKLEVEL_OFF
- LL_TIM_LOCKLEVEL_1
- LL_TIM_LOCKLEVEL_2
- LL_TIM_LOCKLEVEL_3
- Return values:
-
None
Definition at line 1798 of file stm32l4xx_ll_tim.h.
__STATIC_INLINE void LL_TIM_CC_SetUpdate | ( | TIM_TypeDef * | TIMx, |
uint32_t | CCUpdateSource | ||
) |
Set the updated source of the capture/compare control bits (CCxE, CCxNE and OCxM).
- Note:
- Macro IS_TIM_COMMUTATION_EVENT_INSTANCE(TIMx) can be used to check whether or not a timer instance is able to generate a commutation event. CR2 CCUS LL_TIM_CC_SetUpdate
- Parameters:
-
TIMx Timer instance CCUpdateSource This parameter can be one of the following values: - LL_TIM_CCUPDATESOURCE_COMG_ONLY
- LL_TIM_CCUPDATESOURCE_COMG_AND_TRGI
- Return values:
-
None
Definition at line 1752 of file stm32l4xx_ll_tim.h.
Generated on Tue Jul 12 2022 18:10:51 by
