|
STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
|
Peripheral Control functions. More...
Functions | |
| HAL_StatusTypeDef | HAL_TIMEx_ConfigCommutEvent (TIM_HandleTypeDef *htim, uint32_t InputTrigger, uint32_t CommutationSource) |
| Configure the TIM commutation event sequence. | |
| HAL_StatusTypeDef | HAL_TIMEx_ConfigCommutEvent_IT (TIM_HandleTypeDef *htim, uint32_t InputTrigger, uint32_t CommutationSource) |
| Configure the TIM commutation event sequence with interrupt. | |
| HAL_StatusTypeDef | HAL_TIMEx_ConfigCommutEvent_DMA (TIM_HandleTypeDef *htim, uint32_t InputTrigger, uint32_t CommutationSource) |
| Configure the TIM commutation event sequence with DMA. | |
| HAL_StatusTypeDef | HAL_TIMEx_MasterConfigSynchronization (TIM_HandleTypeDef *htim, const TIM_MasterConfigTypeDef *sMasterConfig) |
| Configures the TIM in master mode. | |
| HAL_StatusTypeDef | HAL_TIMEx_ConfigBreakDeadTime (TIM_HandleTypeDef *htim, const TIM_BreakDeadTimeConfigTypeDef *sBreakDeadTimeConfig) |
| Configures the Break feature, dead time, Lock level, OSSI/OSSR State and the AOE(automatic output enable). | |
| HAL_StatusTypeDef | HAL_TIMEx_RemapConfig (TIM_HandleTypeDef *htim, uint32_t Remap) |
| Configures the TIMx Remapping input capabilities. | |
Peripheral Control functions.
==============================================================================
##### Peripheral Control functions #####
==============================================================================
[..]
This section provides functions allowing to:
(+) Configure the commutation event in case of use of the Hall sensor interface.
(+) Configure Output channels for OC and PWM mode.
(+) Configure Complementary channels, break features and dead time.
(+) Configure Master synchronization.
(+) Configure timer remapping capabilities.| HAL_StatusTypeDef HAL_TIMEx_ConfigCommutEvent | ( | TIM_HandleTypeDef * | htim, |
| uint32_t | InputTrigger, | ||
| uint32_t | CommutationSource ) |
#include <stm32f4xx_hal_tim_ex.h>
Configure the TIM commutation event sequence.
| htim | TIM handle |
| InputTrigger | the Internal trigger corresponding to the Timer Interfacing with the Hall sensor This parameter can be one of the following values:
|
| CommutationSource | the Commutation Event source This parameter can be one of the following values:
|
| HAL | status |
Definition at line 1792 of file stm32f4xx_hal_tim_ex.c.
References __HAL_LOCK, __HAL_TIM_DISABLE_DMA, __HAL_TIM_DISABLE_IT, __HAL_UNLOCK, assert_param, HAL_OK, TIM_HandleTypeDef::Instance, IS_TIM_INTERNAL_TRIGGEREVENT_SELECTION, TIM_DMA_COM, TIM_IT_COM, TIM_TS_ITR0, TIM_TS_ITR1, TIM_TS_ITR2, and TIM_TS_ITR3.
| HAL_StatusTypeDef HAL_TIMEx_ConfigCommutEvent_IT | ( | TIM_HandleTypeDef * | htim, |
| uint32_t | InputTrigger, | ||
| uint32_t | CommutationSource ) |
#include <stm32f4xx_hal_tim_ex.h>
Configure the TIM commutation event sequence with interrupt.
| htim | TIM handle |
| InputTrigger | the Internal trigger corresponding to the Timer Interfacing with the Hall sensor This parameter can be one of the following values:
|
| CommutationSource | the Commutation Event source This parameter can be one of the following values:
|
| HAL | status |
Definition at line 1848 of file stm32f4xx_hal_tim_ex.c.
References __HAL_LOCK, __HAL_TIM_DISABLE_DMA, __HAL_TIM_ENABLE_IT, __HAL_UNLOCK, assert_param, HAL_OK, TIM_HandleTypeDef::Instance, IS_TIM_INTERNAL_TRIGGEREVENT_SELECTION, TIM_DMA_COM, TIM_IT_COM, TIM_TS_ITR0, TIM_TS_ITR1, TIM_TS_ITR2, and TIM_TS_ITR3.
| HAL_StatusTypeDef HAL_TIMEx_ConfigCommutEvent_DMA | ( | TIM_HandleTypeDef * | htim, |
| uint32_t | InputTrigger, | ||
| uint32_t | CommutationSource ) |
#include <stm32f4xx_hal_tim_ex.h>
Configure the TIM commutation event sequence with DMA.
| htim | TIM handle |
| InputTrigger | the Internal trigger corresponding to the Timer Interfacing with the Hall sensor This parameter can be one of the following values:
|
| CommutationSource | the Commutation Event source This parameter can be one of the following values:
|
| HAL | status |
Definition at line 1905 of file stm32f4xx_hal_tim_ex.c.
References __HAL_LOCK, __HAL_TIM_DISABLE_IT, __HAL_TIM_ENABLE_DMA, __HAL_UNLOCK, assert_param, HAL_OK, TIM_HandleTypeDef::hdma, TIM_HandleTypeDef::Instance, IS_TIM_INTERNAL_TRIGGEREVENT_SELECTION, TIM_DMA_COM, TIM_DMA_ID_COMMUTATION, TIM_DMAError(), TIM_IT_COM, TIM_TS_ITR0, TIM_TS_ITR1, TIM_TS_ITR2, TIM_TS_ITR3, TIMEx_DMACommutationCplt(), TIMEx_DMACommutationHalfCplt(), __DMA_HandleTypeDef::XferCpltCallback, __DMA_HandleTypeDef::XferErrorCallback, and __DMA_HandleTypeDef::XferHalfCpltCallback.
| HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization | ( | TIM_HandleTypeDef * | htim, |
| const TIM_MasterConfigTypeDef * | sMasterConfig ) |
#include <stm32f4xx_hal_tim_ex.h>
Configures the TIM in master mode.
| htim | TIM handle. |
| sMasterConfig | pointer to a TIM_MasterConfigTypeDef structure that contains the selected trigger output (TRGO) and the Master/Slave mode. |
| HAL | status |
Definition at line 1954 of file stm32f4xx_hal_tim_ex.c.
References __HAL_LOCK, __HAL_UNLOCK, assert_param, HAL_OK, HAL_TIM_STATE_BUSY, HAL_TIM_STATE_READY, TIM_HandleTypeDef::Instance, IS_TIM_MSM_STATE, IS_TIM_TRGO_SOURCE, TIM_MasterConfigTypeDef::MasterOutputTrigger, TIM_MasterConfigTypeDef::MasterSlaveMode, and TIM_HandleTypeDef::State.
| HAL_StatusTypeDef HAL_TIMEx_ConfigBreakDeadTime | ( | TIM_HandleTypeDef * | htim, |
| const TIM_BreakDeadTimeConfigTypeDef * | sBreakDeadTimeConfig ) |
#include <stm32f4xx_hal_tim_ex.h>
Configures the Break feature, dead time, Lock level, OSSI/OSSR State and the AOE(automatic output enable).
| htim | TIM handle |
| sBreakDeadTimeConfig | pointer to a TIM_ConfigBreakDeadConfigTypeDef structure that contains the BDTR Register configuration information for the TIM peripheral. |
| HAL | status |
Definition at line 2015 of file stm32f4xx_hal_tim_ex.c.
References __HAL_LOCK, __HAL_UNLOCK, assert_param, TIM_BreakDeadTimeConfigTypeDef::AutomaticOutput, TIM_BreakDeadTimeConfigTypeDef::BreakPolarity, TIM_BreakDeadTimeConfigTypeDef::BreakState, TIM_BreakDeadTimeConfigTypeDef::DeadTime, HAL_OK, TIM_HandleTypeDef::Instance, IS_TIM_AUTOMATIC_OUTPUT_STATE, IS_TIM_BREAK_POLARITY, IS_TIM_BREAK_STATE, IS_TIM_DEADTIME, IS_TIM_LOCK_LEVEL, IS_TIM_OSSI_STATE, IS_TIM_OSSR_STATE, TIM_BreakDeadTimeConfigTypeDef::LockLevel, TIM_BreakDeadTimeConfigTypeDef::OffStateIDLEMode, and TIM_BreakDeadTimeConfigTypeDef::OffStateRunMode.
| HAL_StatusTypeDef HAL_TIMEx_RemapConfig | ( | TIM_HandleTypeDef * | htim, |
| uint32_t | Remap ) |
#include <stm32f4xx_hal_tim_ex.h>
Configures the TIMx Remapping input capabilities.
| htim | TIM handle. |
| Remap | specifies the TIM remapping source. For TIM1, the parameter can have the following values: (**)
(**) Register not available in all devices. |
| HAL | status |
Definition at line 2091 of file stm32f4xx_hal_tim_ex.c.
References __HAL_LOCK, __HAL_UNLOCK, assert_param, HAL_OK, TIM_HandleTypeDef::Instance, and IS_TIM_REMAP.