STM32F439xx HAL User Manual
|
Modules | |
Time Base functions | |
Time Base functions. | |
Time Output Compare functions | |
Time Output Compare functions. | |
Time PWM functions | |
Time PWM functions. | |
Time Input Capture functions | |
Time Input Capture functions. | |
Time One Pulse functions | |
Time One Pulse functions. | |
Time Encoder functions | |
Time Encoder functions. | |
TIM IRQ handler management | |
IRQ handler management. | |
Peripheral Control functions | |
Peripheral Control functions. | |
TIM Callbacks functions | |
TIM Callbacks functions. | |
Peripheral State functions | |
Peripheral State functions. | |
Functions | |
void | TIM_Base_SetConfig (TIM_TypeDef *TIMx, TIM_Base_InitTypeDef *Structure) |
Time Base configuration. | |
void | TIM_TI1_SetConfig (TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection, uint32_t TIM_ICFilter) |
Configure the TI1 as Input. | |
void | TIM_OC2_SetConfig (TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config) |
Time Output Compare 2 configuration. | |
void | TIM_DMADelayPulseCplt (DMA_HandleTypeDef *hdma) |
TIM DMA Delay Pulse complete callback. | |
void | TIM_DMAError (DMA_HandleTypeDef *hdma) |
TIM DMA error callback. | |
void | TIM_DMACaptureCplt (DMA_HandleTypeDef *hdma) |
TIM DMA Capture complete callback. | |
void | TIM_CCxChannelCmd (TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ChannelState) |
Enables or disables the TIM Capture Compare Channel x. | |
static void | TIM_DMAPeriodElapsedCplt (DMA_HandleTypeDef *hdma) |
TIM DMA Period Elapse complete callback. | |
static void | TIM_DMATriggerCplt (DMA_HandleTypeDef *hdma) |
TIM DMA Trigger callback. | |
static void | TIM_OC1_SetConfig (TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config) |
Time Output Compare 1 configuration. | |
static void | TIM_OC3_SetConfig (TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config) |
Time Output Compare 3 configuration. | |
static void | TIM_OC4_SetConfig (TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config) |
Time Output Compare 4 configuration. | |
static void | TIM_SlaveTimer_SetConfig (TIM_HandleTypeDef *htim, TIM_SlaveConfigTypeDef *sSlaveConfig) |
Time Output Compare 4 configuration. | |
static void | TIM_TI1_ConfigInputStage (TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter) |
Configure the Polarity and Filter for TI1. | |
static void | TIM_TI2_SetConfig (TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection, uint32_t TIM_ICFilter) |
Configure the TI2 as Input. | |
static void | TIM_TI2_ConfigInputStage (TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter) |
Configure the Polarity and Filter for TI2. | |
static void | TIM_TI3_SetConfig (TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection, uint32_t TIM_ICFilter) |
Configure the TI3 as Input. | |
static void | TIM_TI4_SetConfig (TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection, uint32_t TIM_ICFilter) |
Configure the TI4 as Input. | |
static void | TIM_ITRx_SetConfig (TIM_TypeDef *TIMx, uint16_t TIM_ITRx) |
Selects the Input Trigger source. | |
static void | TIM_ETR_SetConfig (TIM_TypeDef *TIMx, uint32_t TIM_ExtTRGPrescaler, uint32_t TIM_ExtTRGPolarity, uint32_t ExtTRGFilter) |
Configures the TIMx External Trigger (ETR). |
void TIM_Base_SetConfig | ( | TIM_TypeDef * | TIMx, |
TIM_Base_InitTypeDef * | Structure | ||
) |
Time Base configuration.
TIMx | TIM peripheral |
Structure | pointer on TIM Time Base required parameters |
None |
Definition at line 4481 of file stm32f4xx_hal_tim.c.
References TIM_Base_InitTypeDef::ClockDivision, TIM_Base_InitTypeDef::CounterMode, TIM_Base_InitTypeDef::Period, TIM_Base_InitTypeDef::Prescaler, and TIM_Base_InitTypeDef::RepetitionCounter.
Referenced by HAL_TIM_Base_Init(), HAL_TIM_Encoder_Init(), HAL_TIM_IC_Init(), HAL_TIM_OC_Init(), HAL_TIM_OnePulse_Init(), HAL_TIM_PWM_Init(), and HAL_TIMEx_HallSensor_Init().
void TIM_CCxChannelCmd | ( | TIM_TypeDef * | TIMx, |
uint32_t | Channel, | ||
uint32_t | ChannelState | ||
) |
Enables or disables the TIM Capture Compare Channel x.
TIMx | to select the TIM peripheral |
Channel | specifies the TIM Channel This parameter can be one of the following values:
|
ChannelState | specifies the TIM Channel CCxE bit new state. This parameter can be: TIM_CCx_ENABLE or TIM_CCx_Disable. |
None |
Definition at line 4739 of file stm32f4xx_hal_tim.c.
References assert_param, and IS_TIM_CHANNELS.
Referenced by HAL_TIM_Encoder_Start(), HAL_TIM_Encoder_Start_DMA(), HAL_TIM_Encoder_Start_IT(), HAL_TIM_Encoder_Stop(), HAL_TIM_Encoder_Stop_DMA(), HAL_TIM_Encoder_Stop_IT(), HAL_TIM_IC_Start(), HAL_TIM_IC_Start_DMA(), HAL_TIM_IC_Start_IT(), HAL_TIM_IC_Stop(), HAL_TIM_IC_Stop_DMA(), HAL_TIM_IC_Stop_IT(), HAL_TIM_OC_Start(), HAL_TIM_OC_Start_DMA(), HAL_TIM_OC_Start_IT(), HAL_TIM_OC_Stop(), HAL_TIM_OC_Stop_DMA(), HAL_TIM_OC_Stop_IT(), HAL_TIM_OnePulse_Start(), HAL_TIM_OnePulse_Start_IT(), HAL_TIM_OnePulse_Stop(), HAL_TIM_OnePulse_Stop_IT(), HAL_TIM_PWM_Start(), HAL_TIM_PWM_Start_DMA(), HAL_TIM_PWM_Start_IT(), HAL_TIM_PWM_Stop(), HAL_TIM_PWM_Stop_DMA(), HAL_TIM_PWM_Stop_IT(), HAL_TIMEx_HallSensor_Start(), HAL_TIMEx_HallSensor_Start_DMA(), HAL_TIMEx_HallSensor_Start_IT(), HAL_TIMEx_HallSensor_Stop(), HAL_TIMEx_HallSensor_Stop_DMA(), and HAL_TIMEx_HallSensor_Stop_IT().
void TIM_DMACaptureCplt | ( | DMA_HandleTypeDef * | hdma | ) |
TIM DMA Capture complete callback.
hdma | pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA module. |
None |
Definition at line 4698 of file stm32f4xx_hal_tim.c.
References TIM_HandleTypeDef::Channel, HAL_TIM_ACTIVE_CHANNEL_1, HAL_TIM_ACTIVE_CHANNEL_2, HAL_TIM_ACTIVE_CHANNEL_3, HAL_TIM_ACTIVE_CHANNEL_4, HAL_TIM_ACTIVE_CHANNEL_CLEARED, HAL_TIM_IC_CaptureCallback(), HAL_TIM_STATE_READY, TIM_HandleTypeDef::hdma, TIM_HandleTypeDef::State, TIM_DMA_ID_CC1, TIM_DMA_ID_CC2, TIM_DMA_ID_CC3, and TIM_DMA_ID_CC4.
Referenced by HAL_TIM_DMABurst_ReadStart(), HAL_TIM_Encoder_Start_DMA(), HAL_TIM_IC_Start_DMA(), and HAL_TIMEx_HallSensor_Start_DMA().
void TIM_DMADelayPulseCplt | ( | DMA_HandleTypeDef * | hdma | ) |
TIM DMA Delay Pulse complete callback.
hdma | pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA module. |
None |
Definition at line 4649 of file stm32f4xx_hal_tim.c.
References TIM_HandleTypeDef::Channel, HAL_TIM_ACTIVE_CHANNEL_1, HAL_TIM_ACTIVE_CHANNEL_2, HAL_TIM_ACTIVE_CHANNEL_3, HAL_TIM_ACTIVE_CHANNEL_4, HAL_TIM_ACTIVE_CHANNEL_CLEARED, HAL_TIM_PWM_PulseFinishedCallback(), HAL_TIM_STATE_READY, TIM_HandleTypeDef::hdma, TIM_HandleTypeDef::State, TIM_DMA_ID_CC1, TIM_DMA_ID_CC2, TIM_DMA_ID_CC3, and TIM_DMA_ID_CC4.
Referenced by HAL_TIM_DMABurst_WriteStart(), HAL_TIM_OC_Start_DMA(), HAL_TIM_PWM_Start_DMA(), HAL_TIMEx_OCN_Start_DMA(), and HAL_TIMEx_PWMN_Start_DMA().
void TIM_DMAError | ( | DMA_HandleTypeDef * | hdma | ) |
TIM DMA error callback.
hdma | pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA module. |
None |
Definition at line 4683 of file stm32f4xx_hal_tim.c.
References HAL_TIM_ErrorCallback(), HAL_TIM_STATE_READY, and TIM_HandleTypeDef::State.
Referenced by HAL_TIM_Base_Start_DMA(), HAL_TIM_DMABurst_ReadStart(), HAL_TIM_DMABurst_WriteStart(), HAL_TIM_Encoder_Start_DMA(), HAL_TIM_IC_Start_DMA(), HAL_TIM_OC_Start_DMA(), HAL_TIM_PWM_Start_DMA(), HAL_TIMEx_ConfigCommutationEvent_DMA(), HAL_TIMEx_HallSensor_Start_DMA(), HAL_TIMEx_OCN_Start_DMA(), and HAL_TIMEx_PWMN_Start_DMA().
static void TIM_DMAPeriodElapsedCplt | ( | DMA_HandleTypeDef * | hdma | ) | [static] |
TIM DMA Period Elapse complete callback.
hdma | pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA module. |
None |
Definition at line 4762 of file stm32f4xx_hal_tim.c.
References HAL_TIM_PeriodElapsedCallback(), HAL_TIM_STATE_READY, and TIM_HandleTypeDef::State.
Referenced by HAL_TIM_Base_Start_DMA(), HAL_TIM_DMABurst_ReadStart(), and HAL_TIM_DMABurst_WriteStart().
static void TIM_DMATriggerCplt | ( | DMA_HandleTypeDef * | hdma | ) | [static] |
TIM DMA Trigger callback.
hdma | pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA module. |
None |
Definition at line 4777 of file stm32f4xx_hal_tim.c.
References HAL_TIM_STATE_READY, HAL_TIM_TriggerCallback(), and TIM_HandleTypeDef::State.
Referenced by HAL_TIM_DMABurst_ReadStart(), and HAL_TIM_DMABurst_WriteStart().
static void TIM_ETR_SetConfig | ( | TIM_TypeDef * | TIMx, |
uint32_t | TIM_ExtTRGPrescaler, | ||
uint32_t | TIM_ExtTRGPolarity, | ||
uint32_t | ExtTRGFilter | ||
) | [static] |
Configures the TIMx External Trigger (ETR).
TIMx | to select the TIM peripheral |
TIM_ExtTRGPrescaler | The external Trigger Prescaler. This parameter can be one of the following values:
|
TIM_ExtTRGPolarity | The external Trigger Polarity. This parameter can be one of the following values:
|
ExtTRGFilter | External Trigger Filter. This parameter must be a value between 0x00 and 0x0F |
None |
Definition at line 5368 of file stm32f4xx_hal_tim.c.
Referenced by HAL_TIM_ConfigClockSource(), HAL_TIM_ConfigOCrefClear(), and TIM_SlaveTimer_SetConfig().
static void TIM_ITRx_SetConfig | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_ITRx | ||
) | [static] |
Selects the Input Trigger source.
TIMx | to select the TIM peripheral |
TIM_ITRx | The Input Trigger source. This parameter can be one of the following values:
|
None |
Definition at line 5337 of file stm32f4xx_hal_tim.c.
References TIM_SLAVEMODE_EXTERNAL1.
Referenced by HAL_TIM_ConfigClockSource().
static void TIM_OC1_SetConfig | ( | TIM_TypeDef * | TIMx, |
TIM_OC_InitTypeDef * | OC_Config | ||
) | [static] |
Time Output Compare 1 configuration.
TIMx | to select the TIM peripheral |
OC_Config | The output configuration structure |
None |
Definition at line 4792 of file stm32f4xx_hal_tim.c.
References TIM_OC_InitTypeDef::OCIdleState, TIM_OC_InitTypeDef::OCMode, TIM_OC_InitTypeDef::OCNIdleState, TIM_OC_InitTypeDef::OCNPolarity, TIM_OC_InitTypeDef::OCPolarity, and TIM_OC_InitTypeDef::Pulse.
Referenced by HAL_TIM_OC_ConfigChannel(), HAL_TIM_OnePulse_ConfigChannel(), and HAL_TIM_PWM_ConfigChannel().
void TIM_OC2_SetConfig | ( | TIM_TypeDef * | TIMx, |
TIM_OC_InitTypeDef * | OC_Config | ||
) |
Time Output Compare 2 configuration.
TIMx | to select the TIM peripheral |
OC_Config | The output configuration structure |
None |
Definition at line 4582 of file stm32f4xx_hal_tim.c.
References assert_param, IS_TIM_OCN_POLARITY, TIM_OC_InitTypeDef::OCIdleState, TIM_OC_InitTypeDef::OCMode, TIM_OC_InitTypeDef::OCNIdleState, TIM_OC_InitTypeDef::OCNPolarity, TIM_OC_InitTypeDef::OCPolarity, and TIM_OC_InitTypeDef::Pulse.
Referenced by HAL_TIM_OC_ConfigChannel(), HAL_TIM_OnePulse_ConfigChannel(), HAL_TIM_PWM_ConfigChannel(), and HAL_TIMEx_HallSensor_Init().
static void TIM_OC3_SetConfig | ( | TIM_TypeDef * | TIMx, |
TIM_OC_InitTypeDef * | OC_Config | ||
) | [static] |
Time Output Compare 3 configuration.
TIMx | to select the TIM peripheral |
OC_Config | The output configuration structure |
None |
Definition at line 4857 of file stm32f4xx_hal_tim.c.
References assert_param, IS_TIM_OCIDLE_STATE, IS_TIM_OCN_POLARITY, IS_TIM_OCNIDLE_STATE, TIM_OC_InitTypeDef::OCIdleState, TIM_OC_InitTypeDef::OCMode, TIM_OC_InitTypeDef::OCNIdleState, TIM_OC_InitTypeDef::OCNPolarity, TIM_OC_InitTypeDef::OCPolarity, and TIM_OC_InitTypeDef::Pulse.
Referenced by HAL_TIM_OC_ConfigChannel(), and HAL_TIM_PWM_ConfigChannel().
static void TIM_OC4_SetConfig | ( | TIM_TypeDef * | TIMx, |
TIM_OC_InitTypeDef * | OC_Config | ||
) | [static] |
Time Output Compare 4 configuration.
TIMx | to select the TIM peripheral |
OC_Config | The output configuration structure |
None |
Definition at line 4925 of file stm32f4xx_hal_tim.c.
References assert_param, IS_TIM_OCIDLE_STATE, TIM_OC_InitTypeDef::OCIdleState, TIM_OC_InitTypeDef::OCMode, TIM_OC_InitTypeDef::OCPolarity, and TIM_OC_InitTypeDef::Pulse.
Referenced by HAL_TIM_OC_ConfigChannel(), and HAL_TIM_PWM_ConfigChannel().
static void TIM_SlaveTimer_SetConfig | ( | TIM_HandleTypeDef * | htim, |
TIM_SlaveConfigTypeDef * | sSlaveConfig | ||
) | [static] |
Time Output Compare 4 configuration.
htim | pointer to a TIM_HandleTypeDef structure that contains the configuration information for TIM module. |
sSlaveConfig | The slave configuration structure |
None |
Definition at line 4983 of file stm32f4xx_hal_tim.c.
References assert_param, TIM_SlaveConfigTypeDef::InputTrigger, TIM_HandleTypeDef::Instance, IS_TIM_TRIGGERFILTER, IS_TIM_TRIGGERPOLARITY, IS_TIM_TRIGGERPRESCALER, TIM_SlaveConfigTypeDef::SlaveMode, TIM_ETR_SetConfig(), TIM_TI1_ConfigInputStage(), TIM_TI2_ConfigInputStage(), TIM_TS_ETRF, TIM_TS_ITR0, TIM_TS_ITR1, TIM_TS_ITR2, TIM_TS_ITR3, TIM_TS_TI1F_ED, TIM_TS_TI1FP1, TIM_TS_TI2FP2, TIM_SlaveConfigTypeDef::TriggerFilter, TIM_SlaveConfigTypeDef::TriggerPolarity, and TIM_SlaveConfigTypeDef::TriggerPrescaler.
Referenced by HAL_TIM_SlaveConfigSynchronization(), and HAL_TIM_SlaveConfigSynchronization_IT().
static void TIM_TI1_ConfigInputStage | ( | TIM_TypeDef * | TIMx, |
uint32_t | TIM_ICPolarity, | ||
uint32_t | TIM_ICFilter | ||
) | [static] |
Configure the Polarity and Filter for TI1.
TIMx | to select the TIM peripheral. |
TIM_ICPolarity | The Input Polarity. This parameter can be one of the following values:
|
TIM_ICFilter | Specifies the Input Capture Filter. This parameter must be a value between 0x00 and 0x0F. |
None |
Definition at line 5120 of file stm32f4xx_hal_tim.c.
Referenced by HAL_TIM_ConfigClockSource(), and TIM_SlaveTimer_SetConfig().
void TIM_TI1_SetConfig | ( | TIM_TypeDef * | TIMx, |
uint32_t | TIM_ICPolarity, | ||
uint32_t | TIM_ICSelection, | ||
uint32_t | TIM_ICFilter | ||
) |
Configure the TI1 as Input.
TIMx | to select the TIM peripheral. |
TIM_ICPolarity | The Input Polarity. This parameter can be one of the following values:
|
TIM_ICSelection | specifies the input to be used. This parameter can be one of the following values:
|
TIM_ICFilter | Specifies the Input Capture Filter. This parameter must be a value between 0x00 and 0x0F. |
None |
Definition at line 4540 of file stm32f4xx_hal_tim.c.
Referenced by HAL_TIM_IC_ConfigChannel(), HAL_TIM_OnePulse_ConfigChannel(), and HAL_TIMEx_HallSensor_Init().
static void TIM_TI2_ConfigInputStage | ( | TIM_TypeDef * | TIMx, |
uint32_t | TIM_ICPolarity, | ||
uint32_t | TIM_ICFilter | ||
) | [static] |
Configure the Polarity and Filter for TI2.
TIMx | to select the TIM peripheral. |
TIM_ICPolarity | The Input Polarity. This parameter can be one of the following values:
|
TIM_ICFilter | Specifies the Input Capture Filter. This parameter must be a value between 0x00 and 0x0F. |
None |
Definition at line 5203 of file stm32f4xx_hal_tim.c.
Referenced by HAL_TIM_ConfigClockSource(), and TIM_SlaveTimer_SetConfig().
static void TIM_TI2_SetConfig | ( | TIM_TypeDef * | TIMx, |
uint32_t | TIM_ICPolarity, | ||
uint32_t | TIM_ICSelection, | ||
uint32_t | TIM_ICFilter | ||
) | [static] |
Configure the TI2 as Input.
TIMx | to select the TIM peripheral |
TIM_ICPolarity | The Input Polarity. This parameter can be one of the following values:
|
TIM_ICSelection | specifies the input to be used. This parameter can be one of the following values:
|
TIM_ICFilter | Specifies the Input Capture Filter. This parameter must be a value between 0x00 and 0x0F. |
None |
Definition at line 5163 of file stm32f4xx_hal_tim.c.
Referenced by HAL_TIM_IC_ConfigChannel(), and HAL_TIM_OnePulse_ConfigChannel().
static void TIM_TI3_SetConfig | ( | TIM_TypeDef * | TIMx, |
uint32_t | TIM_ICPolarity, | ||
uint32_t | TIM_ICSelection, | ||
uint32_t | TIM_ICFilter | ||
) | [static] |
Configure the TI3 as Input.
TIMx | to select the TIM peripheral |
TIM_ICPolarity | The Input Polarity. This parameter can be one of the following values:
|
TIM_ICSelection | specifies the input to be used. This parameter can be one of the following values:
|
TIM_ICFilter | Specifies the Input Capture Filter. This parameter must be a value between 0x00 and 0x0F. |
None |
Definition at line 5246 of file stm32f4xx_hal_tim.c.
Referenced by HAL_TIM_IC_ConfigChannel().
static void TIM_TI4_SetConfig | ( | TIM_TypeDef * | TIMx, |
uint32_t | TIM_ICPolarity, | ||
uint32_t | TIM_ICSelection, | ||
uint32_t | TIM_ICFilter | ||
) | [static] |
Configure the TI4 as Input.
TIMx | to select the TIM peripheral |
TIM_ICPolarity | The Input Polarity. This parameter can be one of the following values:
|
TIM_ICSelection | specifies the input to be used. This parameter can be one of the following values:
|
TIM_ICFilter | Specifies the Input Capture Filter. This parameter must be a value between 0x00 and 0x0F. |
None |
Definition at line 5294 of file stm32f4xx_hal_tim.c.
Referenced by HAL_TIM_IC_ConfigChannel().