|
STM32L4xx_HAL_Driver
1.14.0
|
TIM Encoder functions. More...
Functions | |
| HAL_StatusTypeDef | HAL_TIM_Encoder_Init (TIM_HandleTypeDef *htim, TIM_Encoder_InitTypeDef *sConfig) |
| Initializes the TIM Encoder Interface and initialize the associated handle. More... | |
| HAL_StatusTypeDef | HAL_TIM_Encoder_DeInit (TIM_HandleTypeDef *htim) |
| DeInitializes the TIM Encoder interface. More... | |
| void | HAL_TIM_Encoder_MspInit (TIM_HandleTypeDef *htim) |
| Initializes the TIM Encoder Interface MSP. More... | |
| void | HAL_TIM_Encoder_MspDeInit (TIM_HandleTypeDef *htim) |
| DeInitializes TIM Encoder Interface MSP. More... | |
| HAL_StatusTypeDef | HAL_TIM_Encoder_Start (TIM_HandleTypeDef *htim, uint32_t Channel) |
| Starts the TIM Encoder Interface. More... | |
| HAL_StatusTypeDef | HAL_TIM_Encoder_Stop (TIM_HandleTypeDef *htim, uint32_t Channel) |
| Stops the TIM Encoder Interface. More... | |
| HAL_StatusTypeDef | HAL_TIM_Encoder_Start_IT (TIM_HandleTypeDef *htim, uint32_t Channel) |
| Starts the TIM Encoder Interface in interrupt mode. More... | |
| HAL_StatusTypeDef | HAL_TIM_Encoder_Stop_IT (TIM_HandleTypeDef *htim, uint32_t Channel) |
| Stops the TIM Encoder Interface in interrupt mode. More... | |
| HAL_StatusTypeDef | HAL_TIM_Encoder_Start_DMA (TIM_HandleTypeDef *htim, uint32_t Channel, uint32_t *pData1, uint32_t *pData2, uint16_t Length) |
| Starts the TIM Encoder Interface in DMA mode. More... | |
| HAL_StatusTypeDef | HAL_TIM_Encoder_Stop_DMA (TIM_HandleTypeDef *htim, uint32_t Channel) |
| Stops the TIM Encoder Interface in DMA mode. More... | |
TIM Encoder functions.
==============================================================================
##### TIM Encoder functions #####
==============================================================================
[..]
This section provides functions allowing to:
(+) Initialize and configure the TIM Encoder.
(+) De-initialize the TIM Encoder.
(+) Start the TIM Encoder.
(+) Stop the TIM Encoder.
(+) Start the TIM Encoder and enable interrupt.
(+) Stop the TIM Encoder and disable interrupt.
(+) Start the TIM Encoder and enable DMA transfer.
(+) Stop the TIM Encoder and disable DMA transfer. | HAL_StatusTypeDef HAL_TIM_Encoder_DeInit | ( | TIM_HandleTypeDef * | htim | ) |
DeInitializes the TIM Encoder interface.
| htim | TIM Encoder Interface handle |
| HAL | status |
Definition at line 2712 of file stm32l4xx_hal_tim.c.
| HAL_StatusTypeDef HAL_TIM_Encoder_Init | ( | TIM_HandleTypeDef * | htim, |
| TIM_Encoder_InitTypeDef * | sConfig | ||
| ) |
Initializes the TIM Encoder Interface and initialize the associated handle.
| htim | TIM Encoder Interface handle |
| sConfig | TIM Encoder Interface configuration structure |
| HAL | status |
Definition at line 2607 of file stm32l4xx_hal_tim.c.
| __weak void HAL_TIM_Encoder_MspDeInit | ( | TIM_HandleTypeDef * | htim | ) |
DeInitializes TIM Encoder Interface MSP.
| htim | TIM Encoder Interface handle |
| None |
Definition at line 2763 of file stm32l4xx_hal_tim.c.
| __weak void HAL_TIM_Encoder_MspInit | ( | TIM_HandleTypeDef * | htim | ) |
Initializes the TIM Encoder Interface MSP.
| htim | TIM Encoder Interface handle |
| None |
Definition at line 2748 of file stm32l4xx_hal_tim.c.
| HAL_StatusTypeDef HAL_TIM_Encoder_Start | ( | TIM_HandleTypeDef * | htim, |
| uint32_t | Channel | ||
| ) |
Starts the TIM Encoder Interface.
| htim | TIM Encoder Interface handle |
| Channel | TIM Channels to be enabled This parameter can be one of the following values:
|
| HAL | status |
Definition at line 2783 of file stm32l4xx_hal_tim.c.
| HAL_StatusTypeDef HAL_TIM_Encoder_Start_DMA | ( | TIM_HandleTypeDef * | htim, |
| uint32_t | Channel, | ||
| uint32_t * | pData1, | ||
| uint32_t * | pData2, | ||
| uint16_t | Length | ||
| ) |
Starts the TIM Encoder Interface in DMA mode.
| htim | TIM Encoder Interface handle |
| Channel | TIM Channels to be enabled This parameter can be one of the following values:
|
| pData1 | The destination Buffer address for IC1. |
| pData2 | The destination Buffer address for IC2. |
| Length | The length of data to be transferred from TIM peripheral to memory. |
| HAL | status |
Definition at line 2977 of file stm32l4xx_hal_tim.c.
| HAL_StatusTypeDef HAL_TIM_Encoder_Start_IT | ( | TIM_HandleTypeDef * | htim, |
| uint32_t | Channel | ||
| ) |
Starts the TIM Encoder Interface in interrupt mode.
| htim | TIM Encoder Interface handle |
| Channel | TIM Channels to be enabled This parameter can be one of the following values:
|
| HAL | status |
Definition at line 2873 of file stm32l4xx_hal_tim.c.
| HAL_StatusTypeDef HAL_TIM_Encoder_Stop | ( | TIM_HandleTypeDef * | htim, |
| uint32_t | Channel | ||
| ) |
Stops the TIM Encoder Interface.
| htim | TIM Encoder Interface handle |
| Channel | TIM Channels to be disabled This parameter can be one of the following values:
|
| HAL | status |
Definition at line 2827 of file stm32l4xx_hal_tim.c.
| HAL_StatusTypeDef HAL_TIM_Encoder_Stop_DMA | ( | TIM_HandleTypeDef * | htim, |
| uint32_t | Channel | ||
| ) |
Stops the TIM Encoder Interface in DMA mode.
| htim | TIM Encoder Interface handle |
| Channel | TIM Channels to be enabled This parameter can be one of the following values:
|
| HAL | status |
Definition at line 3112 of file stm32l4xx_hal_tim.c.
| HAL_StatusTypeDef HAL_TIM_Encoder_Stop_IT | ( | TIM_HandleTypeDef * | htim, |
| uint32_t | Channel | ||
| ) |
Stops the TIM Encoder Interface in interrupt mode.
| htim | TIM Encoder Interface handle |
| Channel | TIM Channels to be disabled This parameter can be one of the following values:
|
| HAL | status |
Definition at line 2923 of file stm32l4xx_hal_tim.c.