STM32F4xx_HAL_Driver
1.8.3
|
Functions | |
__STATIC_INLINE void | LL_TIM_OC_ConfigOutput (TIM_TypeDef *TIMx, uint32_t Channel, uint32_t Configuration) |
Configure an output channel. @rmtoll CCMR1 CC1S LL_TIM_OC_ConfigOutput CCMR1 CC2S LL_TIM_OC_ConfigOutput CCMR2 CC3S LL_TIM_OC_ConfigOutput CCMR2 CC4S LL_TIM_OC_ConfigOutput CCER CC1P LL_TIM_OC_ConfigOutput CCER CC2P LL_TIM_OC_ConfigOutput CCER CC3P LL_TIM_OC_ConfigOutput CCER CC4P LL_TIM_OC_ConfigOutput CR2 OIS1 LL_TIM_OC_ConfigOutput CR2 OIS2 LL_TIM_OC_ConfigOutput CR2 OIS3 LL_TIM_OC_ConfigOutput CR2 OIS4 LL_TIM_OC_ConfigOutput. More... | |
__STATIC_INLINE void | LL_TIM_OC_SetMode (TIM_TypeDef *TIMx, uint32_t Channel, uint32_t Mode) |
Define the behavior of the output reference signal OCxREF from which OCx and OCxN (when relevant) are derived. @rmtoll CCMR1 OC1M LL_TIM_OC_SetMode CCMR1 OC2M LL_TIM_OC_SetMode CCMR2 OC3M LL_TIM_OC_SetMode CCMR2 OC4M LL_TIM_OC_SetMode. More... | |
__STATIC_INLINE uint32_t | LL_TIM_OC_GetMode (const TIM_TypeDef *TIMx, uint32_t Channel) |
Get the output compare mode of an output channel. @rmtoll CCMR1 OC1M LL_TIM_OC_GetMode CCMR1 OC2M LL_TIM_OC_GetMode CCMR2 OC3M LL_TIM_OC_GetMode CCMR2 OC4M LL_TIM_OC_GetMode. More... | |
__STATIC_INLINE void | LL_TIM_OC_SetPolarity (TIM_TypeDef *TIMx, uint32_t Channel, uint32_t Polarity) |
Set the polarity of an output channel. @rmtoll CCER CC1P LL_TIM_OC_SetPolarity CCER CC1NP LL_TIM_OC_SetPolarity CCER CC2P LL_TIM_OC_SetPolarity CCER CC2NP LL_TIM_OC_SetPolarity CCER CC3P LL_TIM_OC_SetPolarity CCER CC3NP LL_TIM_OC_SetPolarity CCER CC4P LL_TIM_OC_SetPolarity. More... | |
__STATIC_INLINE uint32_t | LL_TIM_OC_GetPolarity (const TIM_TypeDef *TIMx, uint32_t Channel) |
Get the polarity of an output channel. @rmtoll CCER CC1P LL_TIM_OC_GetPolarity CCER CC1NP LL_TIM_OC_GetPolarity CCER CC2P LL_TIM_OC_GetPolarity CCER CC2NP LL_TIM_OC_GetPolarity CCER CC3P LL_TIM_OC_GetPolarity CCER CC3NP LL_TIM_OC_GetPolarity CCER CC4P LL_TIM_OC_GetPolarity. More... | |
__STATIC_INLINE void | LL_TIM_OC_SetIdleState (TIM_TypeDef *TIMx, uint32_t Channel, uint32_t IdleState) |
Set the IDLE state of an output channel. More... | |
__STATIC_INLINE uint32_t | LL_TIM_OC_GetIdleState (const TIM_TypeDef *TIMx, uint32_t Channel) |
Get the IDLE state of an output channel @rmtoll CR2 OIS1 LL_TIM_OC_GetIdleState CR2 OIS1N LL_TIM_OC_GetIdleState CR2 OIS2 LL_TIM_OC_GetIdleState CR2 OIS2N LL_TIM_OC_GetIdleState CR2 OIS3 LL_TIM_OC_GetIdleState CR2 OIS3N LL_TIM_OC_GetIdleState CR2 OIS4 LL_TIM_OC_GetIdleState. More... | |
__STATIC_INLINE void | LL_TIM_OC_EnableFast (TIM_TypeDef *TIMx, uint32_t Channel) |
Enable fast mode for the output channel. More... | |
__STATIC_INLINE void | LL_TIM_OC_DisableFast (TIM_TypeDef *TIMx, uint32_t Channel) |
Disable fast mode for the output channel. @rmtoll CCMR1 OC1FE LL_TIM_OC_DisableFast CCMR1 OC2FE LL_TIM_OC_DisableFast CCMR2 OC3FE LL_TIM_OC_DisableFast CCMR2 OC4FE LL_TIM_OC_DisableFast. More... | |
__STATIC_INLINE uint32_t | LL_TIM_OC_IsEnabledFast (const TIM_TypeDef *TIMx, uint32_t Channel) |
Indicates whether fast mode is enabled for the output channel. @rmtoll CCMR1 OC1FE LL_TIM_OC_IsEnabledFast CCMR1 OC2FE LL_TIM_OC_IsEnabledFast CCMR2 OC3FE LL_TIM_OC_IsEnabledFast CCMR2 OC4FE LL_TIM_OC_IsEnabledFast . More... | |
__STATIC_INLINE void | LL_TIM_OC_EnablePreload (TIM_TypeDef *TIMx, uint32_t Channel) |
Enable compare register (TIMx_CCRx) preload for the output channel. @rmtoll CCMR1 OC1PE LL_TIM_OC_EnablePreload CCMR1 OC2PE LL_TIM_OC_EnablePreload CCMR2 OC3PE LL_TIM_OC_EnablePreload CCMR2 OC4PE LL_TIM_OC_EnablePreload. More... | |
__STATIC_INLINE void | LL_TIM_OC_DisablePreload (TIM_TypeDef *TIMx, uint32_t Channel) |
Disable compare register (TIMx_CCRx) preload for the output channel. @rmtoll CCMR1 OC1PE LL_TIM_OC_DisablePreload CCMR1 OC2PE LL_TIM_OC_DisablePreload CCMR2 OC3PE LL_TIM_OC_DisablePreload CCMR2 OC4PE LL_TIM_OC_DisablePreload. More... | |
__STATIC_INLINE uint32_t | LL_TIM_OC_IsEnabledPreload (const TIM_TypeDef *TIMx, uint32_t Channel) |
Indicates whether compare register (TIMx_CCRx) preload is enabled for the output channel. @rmtoll CCMR1 OC1PE LL_TIM_OC_IsEnabledPreload CCMR1 OC2PE LL_TIM_OC_IsEnabledPreload CCMR2 OC3PE LL_TIM_OC_IsEnabledPreload CCMR2 OC4PE LL_TIM_OC_IsEnabledPreload . More... | |
__STATIC_INLINE void | LL_TIM_OC_EnableClear (TIM_TypeDef *TIMx, uint32_t Channel) |
Enable clearing the output channel on an external event. More... | |
__STATIC_INLINE void | LL_TIM_OC_DisableClear (TIM_TypeDef *TIMx, uint32_t Channel) |
Disable clearing the output channel on an external event. More... | |
__STATIC_INLINE uint32_t | LL_TIM_OC_IsEnabledClear (const TIM_TypeDef *TIMx, uint32_t Channel) |
Indicates clearing the output channel on an external event is enabled for the output channel. More... | |
__STATIC_INLINE void | LL_TIM_OC_SetDeadTime (TIM_TypeDef *TIMx, uint32_t DeadTime) |
Set the dead-time delay (delay inserted between the rising edge of the OCxREF signal and the rising edge of the Ocx and OCxN signals). More... | |
__STATIC_INLINE void | LL_TIM_OC_SetCompareCH1 (TIM_TypeDef *TIMx, uint32_t CompareValue) |
Set compare value for output channel 1 (TIMx_CCR1). More... | |
__STATIC_INLINE void | LL_TIM_OC_SetCompareCH2 (TIM_TypeDef *TIMx, uint32_t CompareValue) |
Set compare value for output channel 2 (TIMx_CCR2). More... | |
__STATIC_INLINE void | LL_TIM_OC_SetCompareCH3 (TIM_TypeDef *TIMx, uint32_t CompareValue) |
Set compare value for output channel 3 (TIMx_CCR3). More... | |
__STATIC_INLINE void | LL_TIM_OC_SetCompareCH4 (TIM_TypeDef *TIMx, uint32_t CompareValue) |
Set compare value for output channel 4 (TIMx_CCR4). More... | |
__STATIC_INLINE uint32_t | LL_TIM_OC_GetCompareCH1 (const TIM_TypeDef *TIMx) |
Get compare value (TIMx_CCR1) set for output channel 1. More... | |
__STATIC_INLINE uint32_t | LL_TIM_OC_GetCompareCH2 (const TIM_TypeDef *TIMx) |
Get compare value (TIMx_CCR2) set for output channel 2. More... | |
__STATIC_INLINE uint32_t | LL_TIM_OC_GetCompareCH3 (const TIM_TypeDef *TIMx) |
Get compare value (TIMx_CCR3) set for output channel 3. More... | |
__STATIC_INLINE uint32_t | LL_TIM_OC_GetCompareCH4 (const TIM_TypeDef *TIMx) |
Get compare value (TIMx_CCR4) set for output channel 4. More... | |
__STATIC_INLINE void LL_TIM_OC_ConfigOutput | ( | TIM_TypeDef * | TIMx, |
uint32_t | Channel, | ||
uint32_t | Configuration | ||
) |
Configure an output channel. @rmtoll CCMR1 CC1S LL_TIM_OC_ConfigOutput
CCMR1 CC2S LL_TIM_OC_ConfigOutput
CCMR2 CC3S LL_TIM_OC_ConfigOutput
CCMR2 CC4S LL_TIM_OC_ConfigOutput
CCER CC1P LL_TIM_OC_ConfigOutput
CCER CC2P LL_TIM_OC_ConfigOutput
CCER CC3P LL_TIM_OC_ConfigOutput
CCER CC4P LL_TIM_OC_ConfigOutput
CR2 OIS1 LL_TIM_OC_ConfigOutput
CR2 OIS2 LL_TIM_OC_ConfigOutput
CR2 OIS3 LL_TIM_OC_ConfigOutput
CR2 OIS4 LL_TIM_OC_ConfigOutput.
TIMx | Timer instance |
Channel | This parameter can be one of the following values:
|
Configuration | This parameter must be a combination of all the following values:
|
None |
Definition at line 1699 of file stm32f4xx_ll_tim.h.
__STATIC_INLINE void LL_TIM_OC_DisableClear | ( | TIM_TypeDef * | TIMx, |
uint32_t | Channel | ||
) |
Disable clearing the output channel on an external event.
TIMx | Timer instance |
Channel | This parameter can be one of the following values:
|
None |
Definition at line 2059 of file stm32f4xx_ll_tim.h.
__STATIC_INLINE void LL_TIM_OC_DisableFast | ( | TIM_TypeDef * | TIMx, |
uint32_t | Channel | ||
) |
Disable fast mode for the output channel. @rmtoll CCMR1 OC1FE LL_TIM_OC_DisableFast
CCMR1 OC2FE LL_TIM_OC_DisableFast
CCMR2 OC3FE LL_TIM_OC_DisableFast
CCMR2 OC4FE LL_TIM_OC_DisableFast.
TIMx | Timer instance |
Channel | This parameter can be one of the following values:
|
None |
Definition at line 1925 of file stm32f4xx_ll_tim.h.
__STATIC_INLINE void LL_TIM_OC_DisablePreload | ( | TIM_TypeDef * | TIMx, |
uint32_t | Channel | ||
) |
Disable compare register (TIMx_CCRx) preload for the output channel. @rmtoll CCMR1 OC1PE LL_TIM_OC_DisablePreload
CCMR1 OC2PE LL_TIM_OC_DisablePreload
CCMR2 OC3PE LL_TIM_OC_DisablePreload
CCMR2 OC4PE LL_TIM_OC_DisablePreload.
TIMx | Timer instance |
Channel | This parameter can be one of the following values:
|
None |
Definition at line 1990 of file stm32f4xx_ll_tim.h.
__STATIC_INLINE void LL_TIM_OC_EnableClear | ( | TIM_TypeDef * | TIMx, |
uint32_t | Channel | ||
) |
Enable clearing the output channel on an external event.
TIMx | Timer instance |
Channel | This parameter can be one of the following values:
|
None |
Definition at line 2036 of file stm32f4xx_ll_tim.h.
__STATIC_INLINE void LL_TIM_OC_EnableFast | ( | TIM_TypeDef * | TIMx, |
uint32_t | Channel | ||
) |
Enable fast mode for the output channel.
TIMx | Timer instance |
Channel | This parameter can be one of the following values:
|
None |
Definition at line 1903 of file stm32f4xx_ll_tim.h.
__STATIC_INLINE void LL_TIM_OC_EnablePreload | ( | TIM_TypeDef * | TIMx, |
uint32_t | Channel | ||
) |
Enable compare register (TIMx_CCRx) preload for the output channel. @rmtoll CCMR1 OC1PE LL_TIM_OC_EnablePreload
CCMR1 OC2PE LL_TIM_OC_EnablePreload
CCMR2 OC3PE LL_TIM_OC_EnablePreload
CCMR2 OC4PE LL_TIM_OC_EnablePreload.
TIMx | Timer instance |
Channel | This parameter can be one of the following values:
|
None |
Definition at line 1969 of file stm32f4xx_ll_tim.h.
__STATIC_INLINE uint32_t LL_TIM_OC_GetCompareCH1 | ( | const TIM_TypeDef * | TIMx | ) |
Get compare value (TIMx_CCR1) set for output channel 1.
TIMx | Timer instance |
CompareValue | (between Min_Data=0 and Max_Data=65535) |
Definition at line 2187 of file stm32f4xx_ll_tim.h.
__STATIC_INLINE uint32_t LL_TIM_OC_GetCompareCH2 | ( | const TIM_TypeDef * | TIMx | ) |
Get compare value (TIMx_CCR2) set for output channel 2.
TIMx | Timer instance |
CompareValue | (between Min_Data=0 and Max_Data=65535) |
Definition at line 2203 of file stm32f4xx_ll_tim.h.
__STATIC_INLINE uint32_t LL_TIM_OC_GetCompareCH3 | ( | const TIM_TypeDef * | TIMx | ) |
Get compare value (TIMx_CCR3) set for output channel 3.
TIMx | Timer instance |
CompareValue | (between Min_Data=0 and Max_Data=65535) |
Definition at line 2219 of file stm32f4xx_ll_tim.h.
__STATIC_INLINE uint32_t LL_TIM_OC_GetCompareCH4 | ( | const TIM_TypeDef * | TIMx | ) |
Get compare value (TIMx_CCR4) set for output channel 4.
TIMx | Timer instance |
CompareValue | (between Min_Data=0 and Max_Data=65535) |
Definition at line 2235 of file stm32f4xx_ll_tim.h.
__STATIC_INLINE uint32_t LL_TIM_OC_GetIdleState | ( | const TIM_TypeDef * | TIMx, |
uint32_t | Channel | ||
) |
Get the IDLE state of an output channel @rmtoll CR2 OIS1 LL_TIM_OC_GetIdleState
CR2 OIS1N LL_TIM_OC_GetIdleState
CR2 OIS2 LL_TIM_OC_GetIdleState
CR2 OIS2N LL_TIM_OC_GetIdleState
CR2 OIS3 LL_TIM_OC_GetIdleState
CR2 OIS3N LL_TIM_OC_GetIdleState
CR2 OIS4 LL_TIM_OC_GetIdleState.
TIMx | Timer instance |
Channel | This parameter can be one of the following values:
|
Returned | value can be one of the following values:
|
Definition at line 1882 of file stm32f4xx_ll_tim.h.
__STATIC_INLINE uint32_t LL_TIM_OC_GetMode | ( | const TIM_TypeDef * | TIMx, |
uint32_t | Channel | ||
) |
Get the output compare mode of an output channel. @rmtoll CCMR1 OC1M LL_TIM_OC_GetMode
CCMR1 OC2M LL_TIM_OC_GetMode
CCMR2 OC3M LL_TIM_OC_GetMode
CCMR2 OC4M LL_TIM_OC_GetMode.
TIMx | Timer instance |
Channel | This parameter can be one of the following values:
|
Returned | value can be one of the following values:
|
Definition at line 1763 of file stm32f4xx_ll_tim.h.
__STATIC_INLINE uint32_t LL_TIM_OC_GetPolarity | ( | const TIM_TypeDef * | TIMx, |
uint32_t | Channel | ||
) |
Get the polarity of an output channel. @rmtoll CCER CC1P LL_TIM_OC_GetPolarity
CCER CC1NP LL_TIM_OC_GetPolarity
CCER CC2P LL_TIM_OC_GetPolarity
CCER CC2NP LL_TIM_OC_GetPolarity
CCER CC3P LL_TIM_OC_GetPolarity
CCER CC3NP LL_TIM_OC_GetPolarity
CCER CC4P LL_TIM_OC_GetPolarity.
TIMx | Timer instance |
Channel | This parameter can be one of the following values:
|
Returned | value can be one of the following values:
|
Definition at line 1821 of file stm32f4xx_ll_tim.h.
__STATIC_INLINE uint32_t LL_TIM_OC_IsEnabledClear | ( | const TIM_TypeDef * | TIMx, |
uint32_t | Channel | ||
) |
Indicates clearing the output channel on an external event is enabled for the output channel.
TIMx | Timer instance |
Channel | This parameter can be one of the following values:
|
State | of bit (1 or 0). |
Definition at line 2084 of file stm32f4xx_ll_tim.h.
__STATIC_INLINE uint32_t LL_TIM_OC_IsEnabledFast | ( | const TIM_TypeDef * | TIMx, |
uint32_t | Channel | ||
) |
Indicates whether fast mode is enabled for the output channel. @rmtoll CCMR1 OC1FE LL_TIM_OC_IsEnabledFast
CCMR1 OC2FE LL_TIM_OC_IsEnabledFast
CCMR2 OC3FE LL_TIM_OC_IsEnabledFast
CCMR2 OC4FE LL_TIM_OC_IsEnabledFast
.
TIMx | Timer instance |
Channel | This parameter can be one of the following values:
|
State | of bit (1 or 0). |
Definition at line 1947 of file stm32f4xx_ll_tim.h.
__STATIC_INLINE uint32_t LL_TIM_OC_IsEnabledPreload | ( | const TIM_TypeDef * | TIMx, |
uint32_t | Channel | ||
) |
Indicates whether compare register (TIMx_CCRx) preload is enabled for the output channel. @rmtoll CCMR1 OC1PE LL_TIM_OC_IsEnabledPreload
CCMR1 OC2PE LL_TIM_OC_IsEnabledPreload
CCMR2 OC3PE LL_TIM_OC_IsEnabledPreload
CCMR2 OC4PE LL_TIM_OC_IsEnabledPreload
.
TIMx | Timer instance |
Channel | This parameter can be one of the following values:
|
State | of bit (1 or 0). |
Definition at line 2011 of file stm32f4xx_ll_tim.h.
__STATIC_INLINE void LL_TIM_OC_SetCompareCH1 | ( | TIM_TypeDef * | TIMx, |
uint32_t | CompareValue | ||
) |
Set compare value for output channel 1 (TIMx_CCR1).
TIMx | Timer instance |
CompareValue | between Min_Data=0 and Max_Data=65535 |
None |
Definition at line 2120 of file stm32f4xx_ll_tim.h.
__STATIC_INLINE void LL_TIM_OC_SetCompareCH2 | ( | TIM_TypeDef * | TIMx, |
uint32_t | CompareValue | ||
) |
Set compare value for output channel 2 (TIMx_CCR2).
TIMx | Timer instance |
CompareValue | between Min_Data=0 and Max_Data=65535 |
None |
Definition at line 2137 of file stm32f4xx_ll_tim.h.
__STATIC_INLINE void LL_TIM_OC_SetCompareCH3 | ( | TIM_TypeDef * | TIMx, |
uint32_t | CompareValue | ||
) |
Set compare value for output channel 3 (TIMx_CCR3).
TIMx | Timer instance |
CompareValue | between Min_Data=0 and Max_Data=65535 |
None |
Definition at line 2154 of file stm32f4xx_ll_tim.h.
__STATIC_INLINE void LL_TIM_OC_SetCompareCH4 | ( | TIM_TypeDef * | TIMx, |
uint32_t | CompareValue | ||
) |
Set compare value for output channel 4 (TIMx_CCR4).
TIMx | Timer instance |
CompareValue | between Min_Data=0 and Max_Data=65535 |
None |
Definition at line 2171 of file stm32f4xx_ll_tim.h.
__STATIC_INLINE void LL_TIM_OC_SetDeadTime | ( | TIM_TypeDef * | TIMx, |
uint32_t | DeadTime | ||
) |
Set the dead-time delay (delay inserted between the rising edge of the OCxREF signal and the rising edge of the Ocx and OCxN signals).
TIMx | Timer instance |
DeadTime | between Min_Data=0 and Max_Data=255 |
None |
Definition at line 2103 of file stm32f4xx_ll_tim.h.
__STATIC_INLINE void LL_TIM_OC_SetIdleState | ( | TIM_TypeDef * | TIMx, |
uint32_t | Channel, | ||
uint32_t | IdleState | ||
) |
Set the IDLE state of an output channel.
TIMx | Timer instance |
Channel | This parameter can be one of the following values:
|
IdleState | This parameter can be one of the following values:
|
None |
Definition at line 1854 of file stm32f4xx_ll_tim.h.
__STATIC_INLINE void LL_TIM_OC_SetMode | ( | TIM_TypeDef * | TIMx, |
uint32_t | Channel, | ||
uint32_t | Mode | ||
) |
Define the behavior of the output reference signal OCxREF from which OCx and OCxN (when relevant) are derived. @rmtoll CCMR1 OC1M LL_TIM_OC_SetMode
CCMR1 OC2M LL_TIM_OC_SetMode
CCMR2 OC3M LL_TIM_OC_SetMode
CCMR2 OC4M LL_TIM_OC_SetMode.
TIMx | Timer instance |
Channel | This parameter can be one of the following values:
|
Mode | This parameter can be one of the following values:
|
None |
Definition at line 1734 of file stm32f4xx_ll_tim.h.
__STATIC_INLINE void LL_TIM_OC_SetPolarity | ( | TIM_TypeDef * | TIMx, |
uint32_t | Channel, | ||
uint32_t | Polarity | ||
) |
Set the polarity of an output channel. @rmtoll CCER CC1P LL_TIM_OC_SetPolarity
CCER CC1NP LL_TIM_OC_SetPolarity
CCER CC2P LL_TIM_OC_SetPolarity
CCER CC2NP LL_TIM_OC_SetPolarity
CCER CC3P LL_TIM_OC_SetPolarity
CCER CC3NP LL_TIM_OC_SetPolarity
CCER CC4P LL_TIM_OC_SetPolarity.
TIMx | Timer instance |
Channel | This parameter can be one of the following values:
|
Polarity | This parameter can be one of the following values:
|
None |
Definition at line 1793 of file stm32f4xx_ll_tim.h.