|
STM32H735xx HAL User Manual
|
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, TIM_MasterConfigTypeDef *sMasterConfig) |
| Configures the TIM in master mode. | |
| HAL_StatusTypeDef | HAL_TIMEx_ConfigBreakDeadTime (TIM_HandleTypeDef *htim, TIM_BreakDeadTimeConfigTypeDef *sBreakDeadTimeConfig) |
| Configures the Break feature, dead time, Lock level, OSSI/OSSR State and the AOE(automatic output enable). | |
| HAL_StatusTypeDef | HAL_TIMEx_ConfigBreakInput (TIM_HandleTypeDef *htim, uint32_t BreakInput, TIMEx_BreakInputConfigTypeDef *sBreakInputConfig) |
| Configures the break input source. | |
| HAL_StatusTypeDef | HAL_TIMEx_RemapConfig (TIM_HandleTypeDef *htim, uint32_t Remap) |
| Configures the TIMx Remapping input capabilities. | |
| HAL_StatusTypeDef | HAL_TIMEx_TISelection (TIM_HandleTypeDef *htim, uint32_t TISelection, uint32_t Channel) |
| Select the timer input source. | |
| HAL_StatusTypeDef | HAL_TIMEx_GroupChannel5 (TIM_HandleTypeDef *htim, uint32_t Channels) |
| Group channel 5 and channel 1, 2 or 3. | |
| HAL_StatusTypeDef | HAL_TIMEx_DisarmBreakInput (TIM_HandleTypeDef *htim, uint32_t BreakInput) |
| Disarm the designated break input (when it operates in bidirectional mode). | |
| HAL_StatusTypeDef | HAL_TIMEx_ReArmBreakInput (TIM_HandleTypeDef *htim, uint32_t BreakInput) |
| Arm the designated break input (when it operates in bidirectional mode). | |
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.
(+) Select timer input source.
(+) Enable or disable channel grouping.
| HAL_StatusTypeDef HAL_TIMEx_ConfigBreakDeadTime | ( | TIM_HandleTypeDef * | htim, |
| TIM_BreakDeadTimeConfigTypeDef * | sBreakDeadTimeConfig | ||
| ) |
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 2063 of file stm32h7xx_hal_tim_ex.c.
References assert_param, TIM_BreakDeadTimeConfigTypeDef::AutomaticOutput, TIM_BreakDeadTimeConfigTypeDef::Break2AFMode, TIM_BreakDeadTimeConfigTypeDef::Break2Filter, TIM_BreakDeadTimeConfigTypeDef::Break2Polarity, TIM_BreakDeadTimeConfigTypeDef::Break2State, TIM_BreakDeadTimeConfigTypeDef::BreakAFMode, TIM_BreakDeadTimeConfigTypeDef::BreakFilter, TIM_BreakDeadTimeConfigTypeDef::BreakPolarity, TIM_BreakDeadTimeConfigTypeDef::BreakState, TIM_BreakDeadTimeConfigTypeDef::DeadTime, __TIM_HandleTypeDef::Instance, IS_TIM_AUTOMATIC_OUTPUT_STATE, IS_TIM_BREAK2_AFMODE, IS_TIM_BREAK2_POLARITY, IS_TIM_BREAK2_STATE, IS_TIM_BREAK_AFMODE, IS_TIM_BREAK_FILTER, 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_ConfigBreakInput | ( | TIM_HandleTypeDef * | htim, |
| uint32_t | BreakInput, | ||
| TIMEx_BreakInputConfigTypeDef * | sBreakInputConfig | ||
| ) |
Configures the break input source.
| htim | TIM handle. |
| BreakInput | Break input to configure This parameter can be one of the following values:
|
| sBreakInputConfig | Break input source configuration |
| HAL | status |
Definition at line 2150 of file stm32h7xx_hal_tim_ex.c.
References assert_param, TIMEx_BreakInputConfigTypeDef::Enable, __TIM_HandleTypeDef::Instance, IS_TIM_BREAKINPUT, IS_TIM_BREAKINPUTSOURCE, IS_TIM_BREAKINPUTSOURCE_POLARITY, IS_TIM_BREAKINPUTSOURCE_STATE, TIMEx_BreakInputConfigTypeDef::Polarity, TIMEx_BreakInputConfigTypeDef::Source, TIM_BREAKINPUT_BRK, TIM_BREAKINPUT_BRK2, TIM_BREAKINPUTSOURCE_BKIN, TIM_BREAKINPUTSOURCE_COMP1, TIM_BREAKINPUTSOURCE_COMP2, and TIM_BREAKINPUTSOURCE_DFSDM1.
| HAL_StatusTypeDef HAL_TIMEx_ConfigCommutEvent | ( | TIM_HandleTypeDef * | htim, |
| uint32_t | InputTrigger, | ||
| uint32_t | CommutationSource | ||
| ) |
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 1818 of file stm32h7xx_hal_tim_ex.c.
References __HAL_TIM_DISABLE_DMA, __HAL_TIM_DISABLE_IT, assert_param, __TIM_HandleTypeDef::Instance, IS_TIM_INTERNAL_TRIGGEREVENT_SELECTION, TIM_DMA_COM, TIM_IT_COM, TIM_TS_ITR0, TIM_TS_ITR1, TIM_TS_ITR12, TIM_TS_ITR13, TIM_TS_ITR2, and TIM_TS_ITR3.
| HAL_StatusTypeDef HAL_TIMEx_ConfigCommutEvent_DMA | ( | TIM_HandleTypeDef * | htim, |
| uint32_t | InputTrigger, | ||
| uint32_t | CommutationSource | ||
| ) |
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 1940 of file stm32h7xx_hal_tim_ex.c.
References __HAL_TIM_DISABLE_IT, __HAL_TIM_ENABLE_DMA, assert_param, __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_ITR12, TIM_TS_ITR13, TIM_TS_ITR2, TIM_TS_ITR3, TIMEx_DMACommutationCplt(), TIMEx_DMACommutationHalfCplt(), __DMA_HandleTypeDef::XferCpltCallback, __DMA_HandleTypeDef::XferErrorCallback, and __DMA_HandleTypeDef::XferHalfCpltCallback.
| HAL_StatusTypeDef HAL_TIMEx_ConfigCommutEvent_IT | ( | TIM_HandleTypeDef * | htim, |
| uint32_t | InputTrigger, | ||
| uint32_t | CommutationSource | ||
| ) |
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 1877 of file stm32h7xx_hal_tim_ex.c.
References __HAL_TIM_DISABLE_DMA, __HAL_TIM_ENABLE_IT, assert_param, __TIM_HandleTypeDef::Instance, IS_TIM_INTERNAL_TRIGGEREVENT_SELECTION, TIM_DMA_COM, TIM_IT_COM, TIM_TS_ITR0, TIM_TS_ITR1, TIM_TS_ITR12, TIM_TS_ITR13, TIM_TS_ITR2, and TIM_TS_ITR3.
| HAL_StatusTypeDef HAL_TIMEx_DisarmBreakInput | ( | TIM_HandleTypeDef * | htim, |
| uint32_t | BreakInput | ||
| ) |
Disarm the designated break input (when it operates in bidirectional mode).
| htim | TIM handle. |
| BreakInput | Break input to disarm This parameter can be one of the following values:
|
| HAL | status |
Definition at line 2512 of file stm32h7xx_hal_tim_ex.c.
References assert_param, __TIM_HandleTypeDef::Instance, IS_TIM_BREAKINPUT, TIM_BREAKINPUT_BRK, and TIM_BREAKINPUT_BRK2.
| HAL_StatusTypeDef HAL_TIMEx_GroupChannel5 | ( | TIM_HandleTypeDef * | htim, |
| uint32_t | Channels | ||
| ) |
Group channel 5 and channel 1, 2 or 3.
| htim | TIM handle. |
| Channels | specifies the reference signal(s) the OC5REF is combined with. This parameter can be any combination of the following values: TIM_GROUPCH5_NONE: No effect of OC5REF on OC1REFC, OC2REFC and OC3REFC TIM_GROUPCH5_OC1REFC: OC1REFC is the logical AND of OC1REFC and OC5REF TIM_GROUPCH5_OC2REFC: OC2REFC is the logical AND of OC2REFC and OC5REF TIM_GROUPCH5_OC3REFC: OC3REFC is the logical AND of OC3REFC and OC5REF |
| HAL | status |
Definition at line 2473 of file stm32h7xx_hal_tim_ex.c.
References assert_param, HAL_TIM_STATE_BUSY, HAL_TIM_STATE_READY, __TIM_HandleTypeDef::Instance, IS_TIM_GROUPCH5, and __TIM_HandleTypeDef::State.
| HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization | ( | TIM_HandleTypeDef * | htim, |
| TIM_MasterConfigTypeDef * | sMasterConfig | ||
| ) |
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 1990 of file stm32h7xx_hal_tim_ex.c.
References assert_param, HAL_TIM_STATE_BUSY, HAL_TIM_STATE_READY, __TIM_HandleTypeDef::Instance, IS_TIM_MSM_STATE, IS_TIM_TRGO2_SOURCE, IS_TIM_TRGO_SOURCE, TIM_MasterConfigTypeDef::MasterOutputTrigger, TIM_MasterConfigTypeDef::MasterOutputTrigger2, TIM_MasterConfigTypeDef::MasterSlaveMode, and __TIM_HandleTypeDef::State.
| HAL_StatusTypeDef HAL_TIMEx_ReArmBreakInput | ( | TIM_HandleTypeDef * | htim, |
| uint32_t | BreakInput | ||
| ) |
Arm the designated break input (when it operates in bidirectional mode).
| htim | TIM handle. |
| BreakInput | Break input to arm This parameter can be one of the following values:
|
| HAL | status |
Definition at line 2567 of file stm32h7xx_hal_tim_ex.c.
References assert_param, HAL_GetTick(), __TIM_HandleTypeDef::Instance, IS_TIM_BREAKINPUT, TIM_BREAKINPUT_BRK, TIM_BREAKINPUT_BRK2, and TIM_BREAKINPUT_REARM_TIMEOUT.
| HAL_StatusTypeDef HAL_TIMEx_RemapConfig | ( | TIM_HandleTypeDef * | htim, |
| uint32_t | Remap | ||
| ) |
Configures the TIMx Remapping input capabilities.
| htim | TIM handle. |
| Remap | specifies the TIM remapping source. For TIM1, the parameter is one of the following values:
|
| HAL | status |
Definition at line 2334 of file stm32h7xx_hal_tim_ex.c.
References assert_param, __TIM_HandleTypeDef::Instance, and IS_TIM_REMAP.
| HAL_StatusTypeDef HAL_TIMEx_TISelection | ( | TIM_HandleTypeDef * | htim, |
| uint32_t | TISelection, | ||
| uint32_t | Channel | ||
| ) |
Select the timer input source.
| htim | TIM handle. |
| Channel | specifies the TIM Channel This parameter can be one of the following values:
|
| TISelection | parameter of the TIM_TISelectionStruct structure is detailed as follows: For TIM1, the parameter is one of the following values:
|
| HAL | status |
Definition at line 2428 of file stm32h7xx_hal_tim_ex.c.
References assert_param, __TIM_HandleTypeDef::Instance, IS_TIM_TISEL, TIM_CHANNEL_1, TIM_CHANNEL_2, TIM_CHANNEL_3, and TIM_CHANNEL_4.
1.7.6.1