|
STM32L4xx_HAL_Driver
1.14.0
|
TIM 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 initializes the associated handle. More... | |
| HAL_StatusTypeDef | HAL_TIM_PWM_DeInit (TIM_HandleTypeDef *htim) |
| DeInitializes the TIM peripheral. More... | |
| void | HAL_TIM_PWM_MspInit (TIM_HandleTypeDef *htim) |
| Initializes the TIM PWM MSP. More... | |
| void | HAL_TIM_PWM_MspDeInit (TIM_HandleTypeDef *htim) |
| DeInitializes TIM PWM MSP. More... | |
| HAL_StatusTypeDef | HAL_TIM_PWM_Start (TIM_HandleTypeDef *htim, uint32_t Channel) |
| Starts the PWM signal generation. More... | |
| HAL_StatusTypeDef | HAL_TIM_PWM_Stop (TIM_HandleTypeDef *htim, uint32_t Channel) |
| Stops the PWM signal generation. More... | |
| HAL_StatusTypeDef | HAL_TIM_PWM_Start_IT (TIM_HandleTypeDef *htim, uint32_t Channel) |
| Starts the PWM signal generation in interrupt mode. More... | |
| HAL_StatusTypeDef | HAL_TIM_PWM_Stop_IT (TIM_HandleTypeDef *htim, uint32_t Channel) |
| Stops the PWM signal generation in interrupt mode. More... | |
| 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. More... | |
| HAL_StatusTypeDef | HAL_TIM_PWM_Stop_DMA (TIM_HandleTypeDef *htim, uint32_t Channel) |
| Stops the TIM PWM signal generation in DMA mode. More... | |
TIM PWM functions.
==============================================================================
##### TIM PWM functions #####
==============================================================================
[..]
This section provides functions allowing to:
(+) Initialize and configure the TIM PWM.
(+) De-initialize the TIM PWM.
(+) Start the TIM PWM.
(+) Stop the TIM PWM.
(+) Start the TIM PWM and enable interrupt.
(+) Stop the TIM PWM and disable interrupt.
(+) Start the TIM PWM and enable DMA transfer.
(+) Stop the TIM PWM and disable DMA transfer. | HAL_StatusTypeDef HAL_TIM_PWM_DeInit | ( | TIM_HandleTypeDef * | htim | ) |
DeInitializes the TIM peripheral.
| htim | TIM PWM handle |
| HAL | status |
Definition at line 1229 of file stm32l4xx_hal_tim.c.
| 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 initializes the associated handle.
| htim | TIM PWM handle |
| HAL | status |
Definition at line 1177 of file stm32l4xx_hal_tim.c.
| __weak void HAL_TIM_PWM_MspDeInit | ( | TIM_HandleTypeDef * | htim | ) |
DeInitializes TIM PWM MSP.
| htim | TIM PWM handle |
| None |
Definition at line 1280 of file stm32l4xx_hal_tim.c.
| __weak void HAL_TIM_PWM_MspInit | ( | TIM_HandleTypeDef * | htim | ) |
Initializes the TIM PWM MSP.
| htim | TIM PWM handle |
| None |
Definition at line 1265 of file stm32l4xx_hal_tim.c.
| HAL_StatusTypeDef HAL_TIM_PWM_Start | ( | TIM_HandleTypeDef * | htim, |
| uint32_t | Channel | ||
| ) |
Starts the PWM signal generation.
| htim | TIM handle |
| Channel | TIM Channels to be enabled This parameter can be one of the following values:
|
| HAL | status |
Definition at line 1303 of file stm32l4xx_hal_tim.c.
| 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 | TIM PWM handle |
| 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 1517 of file stm32l4xx_hal_tim.c.
| HAL_StatusTypeDef HAL_TIM_PWM_Start_IT | ( | TIM_HandleTypeDef * | htim, |
| uint32_t | Channel | ||
| ) |
Starts the PWM signal generation in interrupt mode.
| htim | TIM PWM handle |
| Channel | TIM Channel to be enabled This parameter can be one of the following values:
|
| HAL | status |
Definition at line 1378 of file stm32l4xx_hal_tim.c.
| HAL_StatusTypeDef HAL_TIM_PWM_Stop | ( | TIM_HandleTypeDef * | htim, |
| uint32_t | Channel | ||
| ) |
Stops the PWM signal generation.
| htim | TIM PWM handle |
| Channel | TIM Channels to be disabled This parameter can be one of the following values:
|
| HAL | status |
Definition at line 1343 of file stm32l4xx_hal_tim.c.
| HAL_StatusTypeDef HAL_TIM_PWM_Stop_DMA | ( | TIM_HandleTypeDef * | htim, |
| uint32_t | Channel | ||
| ) |
Stops the TIM PWM signal generation in DMA mode.
| htim | TIM PWM handle |
| Channel | TIM Channels to be disabled This parameter can be one of the following values:
|
| HAL | status |
Definition at line 1658 of file stm32l4xx_hal_tim.c.
| HAL_StatusTypeDef HAL_TIM_PWM_Stop_IT | ( | TIM_HandleTypeDef * | htim, |
| uint32_t | Channel | ||
| ) |
Stops the PWM signal generation in interrupt mode.
| htim | TIM PWM handle |
| Channel | TIM Channels to be disabled This parameter can be one of the following values:
|
| HAL | status |
Definition at line 1449 of file stm32l4xx_hal_tim.c.