Timer Complementary One Pulse functions.
More...
Timer Complementary One Pulse functions.
==============================================================================
##### Timer Complementary One Pulse functions #####
==============================================================================
[..]
This section provides functions allowing to:
(+) Start the Complementary One Pulse generation.
(+) Stop the Complementary One Pulse.
(+) Start the Complementary One Pulse and enable interrupts.
(+) Stop the Complementary One Pulse and disable interrupts.
◆ HAL_TIMEx_OnePulseN_Start()
| HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Start |
( |
TIM_HandleTypeDef * |
htim, |
|
|
uint32_t |
OutputChannel |
|
) |
| |
Starts the TIM One Pulse signal generation on the complementary output.
- Parameters
-
| htim | TIM One Pulse handle |
| OutputChannel | TIM Channel to be enabled This parameter can be one of the following values:
- TIM_CHANNEL_1: TIM Channel 1 selected
- TIM_CHANNEL_2: TIM Channel 2 selected
|
- Return values
-
Definition at line 1314 of file stm32l4xx_hal_tim_ex.c.
1317 assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, OutputChannel));
1323 __HAL_TIM_MOE_ENABLE(htim);
static void TIM_CCxNChannelCmd(TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ChannelNState)
Enables or disables the TIM Capture Compare Channel xN.
assert_param(IS_RTC_WAKEUP_CLOCK(WakeUpClock))
◆ HAL_TIMEx_OnePulseN_Start_IT()
| HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Start_IT |
( |
TIM_HandleTypeDef * |
htim, |
|
|
uint32_t |
OutputChannel |
|
) |
| |
Starts the TIM One Pulse signal generation in interrupt mode on the complementary channel.
- Parameters
-
| htim | TIM One Pulse handle |
| OutputChannel | TIM Channel to be enabled This parameter can be one of the following values:
- TIM_CHANNEL_1: TIM Channel 1 selected
- TIM_CHANNEL_2: TIM Channel 2 selected
|
- Return values
-
Definition at line 1368 of file stm32l4xx_hal_tim_ex.c.
1371 assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, OutputChannel));
1374 __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1);
1377 __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC2);
1383 __HAL_TIM_MOE_ENABLE(htim);
static void TIM_CCxNChannelCmd(TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ChannelNState)
Enables or disables the TIM Capture Compare Channel xN.
assert_param(IS_RTC_WAKEUP_CLOCK(WakeUpClock))
◆ HAL_TIMEx_OnePulseN_Stop()
| HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Stop |
( |
TIM_HandleTypeDef * |
htim, |
|
|
uint32_t |
OutputChannel |
|
) |
| |
Stops the TIM One Pulse signal generation on the complementary output.
- Parameters
-
| htim | TIM One Pulse handle |
| OutputChannel | TIM Channel to be disabled This parameter can be one of the following values:
- TIM_CHANNEL_1: TIM Channel 1 selected
- TIM_CHANNEL_2: TIM Channel 2 selected
|
- Return values
-
Definition at line 1339 of file stm32l4xx_hal_tim_ex.c.
1343 assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, OutputChannel));
1349 __HAL_TIM_MOE_DISABLE(htim);
1352 __HAL_TIM_DISABLE(htim);
static void TIM_CCxNChannelCmd(TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ChannelNState)
Enables or disables the TIM Capture Compare Channel xN.
assert_param(IS_RTC_WAKEUP_CLOCK(WakeUpClock))
◆ HAL_TIMEx_OnePulseN_Stop_IT()
| HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Stop_IT |
( |
TIM_HandleTypeDef * |
htim, |
|
|
uint32_t |
OutputChannel |
|
) |
| |
Stops the TIM One Pulse signal generation in interrupt mode on the complementary channel.
- Parameters
-
| htim | TIM One Pulse handle |
| OutputChannel | TIM Channel to be disabled This parameter can be one of the following values:
- TIM_CHANNEL_1: TIM Channel 1 selected
- TIM_CHANNEL_2: TIM Channel 2 selected
|
- Return values
-
Definition at line 1399 of file stm32l4xx_hal_tim_ex.c.
1402 assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, OutputChannel));
1405 __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC1);
1408 __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC2);
1414 __HAL_TIM_MOE_DISABLE(htim);
1417 __HAL_TIM_DISABLE(htim);
static void TIM_CCxNChannelCmd(TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ChannelNState)
Enables or disables the TIM Capture Compare Channel xN.
assert_param(IS_RTC_WAKEUP_CLOCK(WakeUpClock))