|
STM32F439xx HAL User Manual
|
Time PWM functions. More...
Functions | |
| HAL_StatusTypeDef | HAL_TIM_PWM_Init (TIM_HandleTypeDef *htim) |
| Initializes the TIM PWM Time Base according to the specified parameters in the TIM_HandleTypeDef and create the associated handle. | |
| HAL_StatusTypeDef | HAL_TIM_PWM_DeInit (TIM_HandleTypeDef *htim) |
| DeInitializes the TIM peripheral. | |
| __weak void | HAL_TIM_PWM_MspInit (TIM_HandleTypeDef *htim) |
| Initializes the TIM PWM MSP. | |
| __weak void | HAL_TIM_PWM_MspDeInit (TIM_HandleTypeDef *htim) |
| DeInitializes TIM PWM MSP. | |
| HAL_StatusTypeDef | HAL_TIM_PWM_Start (TIM_HandleTypeDef *htim, uint32_t Channel) |
| Starts the PWM signal generation. | |
| HAL_StatusTypeDef | HAL_TIM_PWM_Stop (TIM_HandleTypeDef *htim, uint32_t Channel) |
| Stops the PWM signal generation. | |
| HAL_StatusTypeDef | HAL_TIM_PWM_Start_IT (TIM_HandleTypeDef *htim, uint32_t Channel) |
| Starts the PWM signal generation in interrupt mode. | |
| HAL_StatusTypeDef | HAL_TIM_PWM_Stop_IT (TIM_HandleTypeDef *htim, uint32_t Channel) |
| Stops the PWM signal generation in interrupt mode. | |
| HAL_StatusTypeDef | HAL_TIM_PWM_Start_DMA (TIM_HandleTypeDef *htim, uint32_t Channel, uint32_t *pData, uint16_t Length) |
| Starts the TIM PWM signal generation in DMA mode. | |
| HAL_StatusTypeDef | HAL_TIM_PWM_Stop_DMA (TIM_HandleTypeDef *htim, uint32_t Channel) |
| Stops the TIM PWM signal generation in DMA mode. | |
Time PWM functions.
==============================================================================
##### Time PWM functions #####
==============================================================================
[..]
This section provides functions allowing to:
(+) Initialize and configure the TIM OPWM.
(+) De-initialize the TIM PWM.
(+) Start the Time PWM.
(+) Stop the Time PWM.
(+) Start the Time PWM and enable interrupt.
(+) Stop the Time PWM and disable interrupt.
(+) Start the Time PWM and enable DMA transfer.
(+) Stop the Time PWM and disable DMA transfer.
| HAL_StatusTypeDef HAL_TIM_PWM_DeInit | ( | TIM_HandleTypeDef * | htim | ) |
DeInitializes the TIM peripheral.
| htim | pointer to a TIM_HandleTypeDef structure that contains the configuration information for TIM module. |
| HAL | status |
Definition at line 1039 of file stm32f4xx_hal_tim.c.
References __HAL_TIM_DISABLE, assert_param, HAL_TIM_PWM_MspDeInit(), HAL_TIM_STATE_BUSY, HAL_TIM_STATE_RESET, TIM_HandleTypeDef::Instance, and TIM_HandleTypeDef::State.
| HAL_StatusTypeDef HAL_TIM_PWM_Init | ( | TIM_HandleTypeDef * | htim | ) |
Initializes the TIM PWM Time Base according to the specified parameters in the TIM_HandleTypeDef and create the associated handle.
| htim | pointer to a TIM_HandleTypeDef structure that contains the configuration information for TIM module. |
| HAL | status |
Definition at line 1000 of file stm32f4xx_hal_tim.c.
References assert_param, TIM_Base_InitTypeDef::ClockDivision, TIM_Base_InitTypeDef::CounterMode, HAL_TIM_PWM_MspInit(), HAL_TIM_STATE_BUSY, HAL_TIM_STATE_READY, HAL_TIM_STATE_RESET, TIM_HandleTypeDef::Init, TIM_HandleTypeDef::Instance, IS_TIM_CLOCKDIVISION_DIV, IS_TIM_COUNTER_MODE, TIM_HandleTypeDef::Lock, TIM_HandleTypeDef::State, and TIM_Base_SetConfig().
| void HAL_TIM_PWM_MspDeInit | ( | TIM_HandleTypeDef * | htim | ) |
DeInitializes TIM PWM MSP.
| htim | pointer to a TIM_HandleTypeDef structure that contains the configuration information for TIM module. |
| None |
Definition at line 1082 of file stm32f4xx_hal_tim.c.
Referenced by HAL_TIM_PWM_DeInit().
| void HAL_TIM_PWM_MspInit | ( | TIM_HandleTypeDef * | htim | ) |
Initializes the TIM PWM MSP.
| htim | pointer to a TIM_HandleTypeDef structure that contains the configuration information for TIM module. |
| None |
Definition at line 1067 of file stm32f4xx_hal_tim.c.
Referenced by HAL_TIM_PWM_Init().
| HAL_StatusTypeDef HAL_TIM_PWM_Start | ( | TIM_HandleTypeDef * | htim, |
| uint32_t | Channel | ||
| ) |
Starts the PWM signal generation.
| htim | pointer to a TIM_HandleTypeDef structure that contains the configuration information for TIM module. |
| Channel | TIM Channels to be enabled. This parameter can be one of the following values:
|
| HAL | status |
Definition at line 1103 of file stm32f4xx_hal_tim.c.
References __HAL_TIM_ENABLE, __HAL_TIM_MOE_ENABLE, assert_param, TIM_HandleTypeDef::Instance, TIM_CCx_ENABLE, and TIM_CCxChannelCmd().
| HAL_StatusTypeDef HAL_TIM_PWM_Start_DMA | ( | TIM_HandleTypeDef * | htim, |
| uint32_t | Channel, | ||
| uint32_t * | pData, | ||
| uint16_t | Length | ||
| ) |
Starts the TIM PWM signal generation in DMA mode.
| htim | pointer to a TIM_HandleTypeDef structure that contains the configuration information for TIM module. |
| Channel | TIM Channels to be enabled. This parameter can be one of the following values:
|
| pData | The source Buffer address. |
| Length | The length of data to be transferred from memory to TIM peripheral |
| HAL | status |
Definition at line 1308 of file stm32f4xx_hal_tim.c.
References __HAL_TIM_ENABLE, __HAL_TIM_ENABLE_DMA, __HAL_TIM_MOE_ENABLE, assert_param, HAL_DMA_Start_IT(), HAL_TIM_STATE_BUSY, HAL_TIM_STATE_READY, TIM_HandleTypeDef::hdma, TIM_HandleTypeDef::Instance, TIM_HandleTypeDef::State, TIM_CCx_ENABLE, TIM_CCxChannelCmd(), TIM_CHANNEL_1, TIM_CHANNEL_2, TIM_CHANNEL_3, TIM_CHANNEL_4, TIM_DMA_CC1, TIM_DMA_CC2, TIM_DMA_CC3, TIM_DMA_CC4, TIM_DMA_ID_CC1, TIM_DMA_ID_CC2, TIM_DMA_ID_CC3, TIM_DMA_ID_CC4, TIM_DMADelayPulseCplt(), TIM_DMAError(), __DMA_HandleTypeDef::XferCpltCallback, and __DMA_HandleTypeDef::XferErrorCallback.
| HAL_StatusTypeDef HAL_TIM_PWM_Start_IT | ( | TIM_HandleTypeDef * | htim, |
| uint32_t | Channel | ||
| ) |
Starts the PWM signal generation in interrupt mode.
| htim | pointer to a TIM_HandleTypeDef structure that contains the configuration information for TIM module. |
| Channel | TIM Channel to be enabled. This parameter can be one of the following values:
|
| HAL | status |
Definition at line 1172 of file stm32f4xx_hal_tim.c.
References __HAL_TIM_ENABLE, __HAL_TIM_ENABLE_IT, __HAL_TIM_MOE_ENABLE, assert_param, TIM_HandleTypeDef::Instance, TIM_CCx_ENABLE, TIM_CCxChannelCmd(), TIM_CHANNEL_1, TIM_CHANNEL_2, TIM_CHANNEL_3, TIM_CHANNEL_4, TIM_IT_CC1, TIM_IT_CC2, TIM_IT_CC3, and TIM_IT_CC4.
| HAL_StatusTypeDef HAL_TIM_PWM_Stop | ( | TIM_HandleTypeDef * | htim, |
| uint32_t | Channel | ||
| ) |
Stops the PWM signal generation.
| htim | pointer to a TIM_HandleTypeDef structure that contains the configuration information for TIM module. |
| Channel | TIM Channels to be disabled. This parameter can be one of the following values:
|
| HAL | status |
Definition at line 1136 of file stm32f4xx_hal_tim.c.
References __HAL_TIM_DISABLE, __HAL_TIM_MOE_DISABLE, assert_param, HAL_TIM_STATE_READY, TIM_HandleTypeDef::Instance, TIM_HandleTypeDef::State, TIM_CCx_DISABLE, and TIM_CCxChannelCmd().
| HAL_StatusTypeDef HAL_TIM_PWM_Stop_DMA | ( | TIM_HandleTypeDef * | htim, |
| uint32_t | Channel | ||
| ) |
Stops the TIM PWM signal generation in DMA mode.
| htim | pointer to a TIM_HandleTypeDef structure that contains the configuration information for TIM module. |
| Channel | TIM Channels to be disabled. This parameter can be one of the following values:
|
| HAL | status |
Definition at line 1426 of file stm32f4xx_hal_tim.c.
References __HAL_TIM_DISABLE, __HAL_TIM_DISABLE_DMA, __HAL_TIM_MOE_DISABLE, assert_param, HAL_TIM_STATE_READY, TIM_HandleTypeDef::Instance, TIM_HandleTypeDef::State, TIM_CCx_DISABLE, TIM_CCxChannelCmd(), TIM_CHANNEL_1, TIM_CHANNEL_2, TIM_CHANNEL_3, TIM_CHANNEL_4, TIM_DMA_CC1, TIM_DMA_CC2, TIM_DMA_CC3, and TIM_DMA_CC4.
| HAL_StatusTypeDef HAL_TIM_PWM_Stop_IT | ( | TIM_HandleTypeDef * | htim, |
| uint32_t | Channel | ||
| ) |
Stops the PWM signal generation in interrupt mode.
| htim | pointer to a TIM_HandleTypeDef structure that contains the configuration information for TIM module. |
| Channel | TIM Channels to be disabled. This parameter can be one of the following values:
|
| HAL | status |
Definition at line 1239 of file stm32f4xx_hal_tim.c.
References __HAL_TIM_DISABLE, __HAL_TIM_DISABLE_IT, __HAL_TIM_MOE_DISABLE, assert_param, TIM_HandleTypeDef::Instance, TIM_CCx_DISABLE, TIM_CCxChannelCmd(), TIM_CHANNEL_1, TIM_CHANNEL_2, TIM_CHANNEL_3, TIM_CHANNEL_4, TIM_IT_CC1, TIM_IT_CC2, TIM_IT_CC3, and TIM_IT_CC4.
1.7.6.1