STM32F4xx_HAL_Driver
1.8.3
|
Header file of TIM HAL module. More...
Go to the source code of this file.
Data Structures | |
struct | TIM_Base_InitTypeDef |
TIM Time base Configuration Structure definition. More... | |
struct | TIM_OC_InitTypeDef |
TIM Output Compare Configuration Structure definition. More... | |
struct | TIM_OnePulse_InitTypeDef |
TIM One Pulse Mode Configuration Structure definition. More... | |
struct | TIM_IC_InitTypeDef |
TIM Input Capture Configuration Structure definition. More... | |
struct | TIM_Encoder_InitTypeDef |
TIM Encoder Configuration Structure definition. More... | |
struct | TIM_ClockConfigTypeDef |
Clock Configuration Handle Structure definition. More... | |
struct | TIM_ClearInputConfigTypeDef |
TIM Clear Input Configuration Handle Structure definition. More... | |
struct | TIM_MasterConfigTypeDef |
TIM Master configuration Structure definition. More... | |
struct | TIM_SlaveConfigTypeDef |
TIM Slave configuration Structure definition. More... | |
struct | TIM_BreakDeadTimeConfigTypeDef |
TIM Break input(s) and Dead time configuration Structure definition. More... | |
struct | endif |
ADC handle Structure definition. More... | |
Typedefs | |
typedef struct __TIM_HandleTypeDef else typedef struct endif | TIM_HandleTypeDef |
TIM Time Base Handle Structure definition. | |
typedef void(* | pTIM_CallbackTypeDef) (TIM_HandleTypeDef *htim) |
HAL TIM Callback pointer definition. More... | |
Functions | |
HAL_StatusTypeDef | HAL_TIM_Base_Init (TIM_HandleTypeDef *htim) |
Initializes the TIM Time base Unit according to the specified parameters in the TIM_HandleTypeDef and initialize the associated handle. More... | |
HAL_StatusTypeDef | HAL_TIM_Base_DeInit (TIM_HandleTypeDef *htim) |
DeInitializes the TIM Base peripheral. More... | |
void | HAL_TIM_Base_MspInit (TIM_HandleTypeDef *htim) |
Initializes the TIM Base MSP. More... | |
void | HAL_TIM_Base_MspDeInit (TIM_HandleTypeDef *htim) |
DeInitializes TIM Base MSP. More... | |
HAL_StatusTypeDef | HAL_TIM_Base_Start (TIM_HandleTypeDef *htim) |
Starts the TIM Base generation. More... | |
HAL_StatusTypeDef | HAL_TIM_Base_Stop (TIM_HandleTypeDef *htim) |
Stops the TIM Base generation. More... | |
HAL_StatusTypeDef | HAL_TIM_Base_Start_IT (TIM_HandleTypeDef *htim) |
Starts the TIM Base generation in interrupt mode. More... | |
HAL_StatusTypeDef | HAL_TIM_Base_Stop_IT (TIM_HandleTypeDef *htim) |
Stops the TIM Base generation in interrupt mode. More... | |
HAL_StatusTypeDef | HAL_TIM_Base_Start_DMA (TIM_HandleTypeDef *htim, const uint32_t *pData, uint16_t Length) |
Starts the TIM Base generation in DMA mode. More... | |
HAL_StatusTypeDef | HAL_TIM_Base_Stop_DMA (TIM_HandleTypeDef *htim) |
Stops the TIM Base generation in DMA mode. More... | |
HAL_StatusTypeDef | HAL_TIM_OC_Init (TIM_HandleTypeDef *htim) |
Initializes the TIM Output Compare according to the specified parameters in the TIM_HandleTypeDef and initializes the associated handle. More... | |
HAL_StatusTypeDef | HAL_TIM_OC_DeInit (TIM_HandleTypeDef *htim) |
DeInitializes the TIM peripheral. More... | |
void | HAL_TIM_OC_MspInit (TIM_HandleTypeDef *htim) |
Initializes the TIM Output Compare MSP. More... | |
void | HAL_TIM_OC_MspDeInit (TIM_HandleTypeDef *htim) |
DeInitializes TIM Output Compare MSP. More... | |
HAL_StatusTypeDef | HAL_TIM_OC_Start (TIM_HandleTypeDef *htim, uint32_t Channel) |
Starts the TIM Output Compare signal generation. More... | |
HAL_StatusTypeDef | HAL_TIM_OC_Stop (TIM_HandleTypeDef *htim, uint32_t Channel) |
Stops the TIM Output Compare signal generation. More... | |
HAL_StatusTypeDef | HAL_TIM_OC_Start_IT (TIM_HandleTypeDef *htim, uint32_t Channel) |
Starts the TIM Output Compare signal generation in interrupt mode. More... | |
HAL_StatusTypeDef | HAL_TIM_OC_Stop_IT (TIM_HandleTypeDef *htim, uint32_t Channel) |
Stops the TIM Output Compare signal generation in interrupt mode. More... | |
HAL_StatusTypeDef | HAL_TIM_OC_Start_DMA (TIM_HandleTypeDef *htim, uint32_t Channel, const uint32_t *pData, uint16_t Length) |
Starts the TIM Output Compare signal generation in DMA mode. More... | |
HAL_StatusTypeDef | HAL_TIM_OC_Stop_DMA (TIM_HandleTypeDef *htim, uint32_t Channel) |
Stops the TIM Output Compare signal generation in DMA mode. More... | |
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, const 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... | |
HAL_StatusTypeDef | HAL_TIM_IC_Init (TIM_HandleTypeDef *htim) |
Initializes the TIM Input Capture Time base according to the specified parameters in the TIM_HandleTypeDef and initializes the associated handle. More... | |
HAL_StatusTypeDef | HAL_TIM_IC_DeInit (TIM_HandleTypeDef *htim) |
DeInitializes the TIM peripheral. More... | |
void | HAL_TIM_IC_MspInit (TIM_HandleTypeDef *htim) |
Initializes the TIM Input Capture MSP. More... | |
void | HAL_TIM_IC_MspDeInit (TIM_HandleTypeDef *htim) |
DeInitializes TIM Input Capture MSP. More... | |
HAL_StatusTypeDef | HAL_TIM_IC_Start (TIM_HandleTypeDef *htim, uint32_t Channel) |
Starts the TIM Input Capture measurement. More... | |
HAL_StatusTypeDef | HAL_TIM_IC_Stop (TIM_HandleTypeDef *htim, uint32_t Channel) |
Stops the TIM Input Capture measurement. More... | |
HAL_StatusTypeDef | HAL_TIM_IC_Start_IT (TIM_HandleTypeDef *htim, uint32_t Channel) |
Starts the TIM Input Capture measurement in interrupt mode. More... | |
HAL_StatusTypeDef | HAL_TIM_IC_Stop_IT (TIM_HandleTypeDef *htim, uint32_t Channel) |
Stops the TIM Input Capture measurement in interrupt mode. More... | |
HAL_StatusTypeDef | HAL_TIM_IC_Start_DMA (TIM_HandleTypeDef *htim, uint32_t Channel, uint32_t *pData, uint16_t Length) |
Starts the TIM Input Capture measurement in DMA mode. More... | |
HAL_StatusTypeDef | HAL_TIM_IC_Stop_DMA (TIM_HandleTypeDef *htim, uint32_t Channel) |
Stops the TIM Input Capture measurement in DMA mode. More... | |
HAL_StatusTypeDef | HAL_TIM_OnePulse_Init (TIM_HandleTypeDef *htim, uint32_t OnePulseMode) |
Initializes the TIM One Pulse Time Base according to the specified parameters in the TIM_HandleTypeDef and initializes the associated handle. More... | |
HAL_StatusTypeDef | HAL_TIM_OnePulse_DeInit (TIM_HandleTypeDef *htim) |
DeInitializes the TIM One Pulse. More... | |
void | HAL_TIM_OnePulse_MspInit (TIM_HandleTypeDef *htim) |
Initializes the TIM One Pulse MSP. More... | |
void | HAL_TIM_OnePulse_MspDeInit (TIM_HandleTypeDef *htim) |
DeInitializes TIM One Pulse MSP. More... | |
HAL_StatusTypeDef | HAL_TIM_OnePulse_Start (TIM_HandleTypeDef *htim, uint32_t OutputChannel) |
Starts the TIM One Pulse signal generation. More... | |
HAL_StatusTypeDef | HAL_TIM_OnePulse_Stop (TIM_HandleTypeDef *htim, uint32_t OutputChannel) |
Stops the TIM One Pulse signal generation. More... | |
HAL_StatusTypeDef | HAL_TIM_OnePulse_Start_IT (TIM_HandleTypeDef *htim, uint32_t OutputChannel) |
Starts the TIM One Pulse signal generation in interrupt mode. More... | |
HAL_StatusTypeDef | HAL_TIM_OnePulse_Stop_IT (TIM_HandleTypeDef *htim, uint32_t OutputChannel) |
Stops the TIM One Pulse signal generation in interrupt mode. More... | |
HAL_StatusTypeDef | HAL_TIM_Encoder_Init (TIM_HandleTypeDef *htim, const 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... | |
void | HAL_TIM_IRQHandler (TIM_HandleTypeDef *htim) |
This function handles TIM interrupts requests. More... | |
HAL_StatusTypeDef | HAL_TIM_OC_ConfigChannel (TIM_HandleTypeDef *htim, const TIM_OC_InitTypeDef *sConfig, uint32_t Channel) |
Initializes the TIM Output Compare Channels according to the specified parameters in the TIM_OC_InitTypeDef. More... | |
HAL_StatusTypeDef | HAL_TIM_PWM_ConfigChannel (TIM_HandleTypeDef *htim, const TIM_OC_InitTypeDef *sConfig, uint32_t Channel) |
Initializes the TIM PWM channels according to the specified parameters in the TIM_OC_InitTypeDef. More... | |
HAL_StatusTypeDef | HAL_TIM_IC_ConfigChannel (TIM_HandleTypeDef *htim, const TIM_IC_InitTypeDef *sConfig, uint32_t Channel) |
Initializes the TIM Input Capture Channels according to the specified parameters in the TIM_IC_InitTypeDef. More... | |
HAL_StatusTypeDef | HAL_TIM_OnePulse_ConfigChannel (TIM_HandleTypeDef *htim, TIM_OnePulse_InitTypeDef *sConfig, uint32_t OutputChannel, uint32_t InputChannel) |
Initializes the TIM One Pulse Channels according to the specified parameters in the TIM_OnePulse_InitTypeDef. More... | |
HAL_StatusTypeDef | HAL_TIM_ConfigOCrefClear (TIM_HandleTypeDef *htim, const TIM_ClearInputConfigTypeDef *sClearInputConfig, uint32_t Channel) |
Configures the OCRef clear feature. More... | |
HAL_StatusTypeDef | HAL_TIM_ConfigClockSource (TIM_HandleTypeDef *htim, const TIM_ClockConfigTypeDef *sClockSourceConfig) |
Configures the clock source to be used. More... | |
HAL_StatusTypeDef | HAL_TIM_ConfigTI1Input (TIM_HandleTypeDef *htim, uint32_t TI1_Selection) |
Selects the signal connected to the TI1 input: direct from CH1_input or a XOR combination between CH1_input, CH2_input & CH3_input. More... | |
HAL_StatusTypeDef | HAL_TIM_SlaveConfigSynchro (TIM_HandleTypeDef *htim, const TIM_SlaveConfigTypeDef *sSlaveConfig) |
Configures the TIM in Slave mode. More... | |
HAL_StatusTypeDef | HAL_TIM_SlaveConfigSynchro_IT (TIM_HandleTypeDef *htim, const TIM_SlaveConfigTypeDef *sSlaveConfig) |
Configures the TIM in Slave mode in interrupt mode. More... | |
HAL_StatusTypeDef | HAL_TIM_DMABurst_WriteStart (TIM_HandleTypeDef *htim, uint32_t BurstBaseAddress, uint32_t BurstRequestSrc, const uint32_t *BurstBuffer, uint32_t BurstLength) |
Configure the DMA Burst to transfer Data from the memory to the TIM peripheral. More... | |
HAL_StatusTypeDef | HAL_TIM_DMABurst_MultiWriteStart (TIM_HandleTypeDef *htim, uint32_t BurstBaseAddress, uint32_t BurstRequestSrc, const uint32_t *BurstBuffer, uint32_t BurstLength, uint32_t DataLength) |
Configure the DMA Burst to transfer multiple Data from the memory to the TIM peripheral. More... | |
HAL_StatusTypeDef | HAL_TIM_DMABurst_WriteStop (TIM_HandleTypeDef *htim, uint32_t BurstRequestSrc) |
Stops the TIM DMA Burst mode. More... | |
HAL_StatusTypeDef | HAL_TIM_DMABurst_ReadStart (TIM_HandleTypeDef *htim, uint32_t BurstBaseAddress, uint32_t BurstRequestSrc, uint32_t *BurstBuffer, uint32_t BurstLength) |
Configure the DMA Burst to transfer Data from the TIM peripheral to the memory. More... | |
HAL_StatusTypeDef | HAL_TIM_DMABurst_MultiReadStart (TIM_HandleTypeDef *htim, uint32_t BurstBaseAddress, uint32_t BurstRequestSrc, uint32_t *BurstBuffer, uint32_t BurstLength, uint32_t DataLength) |
Configure the DMA Burst to transfer Data from the TIM peripheral to the memory. More... | |
HAL_StatusTypeDef | HAL_TIM_DMABurst_ReadStop (TIM_HandleTypeDef *htim, uint32_t BurstRequestSrc) |
Stop the DMA burst reading. More... | |
HAL_StatusTypeDef | HAL_TIM_GenerateEvent (TIM_HandleTypeDef *htim, uint32_t EventSource) |
Generate a software event. More... | |
uint32_t | HAL_TIM_ReadCapturedValue (const TIM_HandleTypeDef *htim, uint32_t Channel) |
Read the captured value from Capture Compare unit. More... | |
void | HAL_TIM_PeriodElapsedCallback (TIM_HandleTypeDef *htim) |
Period elapsed callback in non-blocking mode. More... | |
void | HAL_TIM_PeriodElapsedHalfCpltCallback (TIM_HandleTypeDef *htim) |
Period elapsed half complete callback in non-blocking mode. More... | |
void | HAL_TIM_OC_DelayElapsedCallback (TIM_HandleTypeDef *htim) |
Output Compare callback in non-blocking mode. More... | |
void | HAL_TIM_IC_CaptureCallback (TIM_HandleTypeDef *htim) |
Input Capture callback in non-blocking mode. More... | |
void | HAL_TIM_IC_CaptureHalfCpltCallback (TIM_HandleTypeDef *htim) |
Input Capture half complete callback in non-blocking mode. More... | |
void | HAL_TIM_PWM_PulseFinishedCallback (TIM_HandleTypeDef *htim) |
PWM Pulse finished callback in non-blocking mode. More... | |
void | HAL_TIM_PWM_PulseFinishedHalfCpltCallback (TIM_HandleTypeDef *htim) |
PWM Pulse finished half complete callback in non-blocking mode. More... | |
void | HAL_TIM_TriggerCallback (TIM_HandleTypeDef *htim) |
Hall Trigger detection callback in non-blocking mode. More... | |
void | HAL_TIM_TriggerHalfCpltCallback (TIM_HandleTypeDef *htim) |
Hall Trigger detection half complete callback in non-blocking mode. More... | |
void | HAL_TIM_ErrorCallback (TIM_HandleTypeDef *htim) |
Timer error callback in non-blocking mode. More... | |
HAL_StatusTypeDef | HAL_TIM_RegisterCallback (TIM_HandleTypeDef *htim, HAL_TIM_CallbackIDTypeDef CallbackID, pTIM_CallbackTypeDef pCallback) |
Register a User TIM callback to be used instead of the weak predefined callback. More... | |
HAL_StatusTypeDef | HAL_TIM_UnRegisterCallback (TIM_HandleTypeDef *htim, HAL_TIM_CallbackIDTypeDef CallbackID) |
Unregister a TIM callback TIM callback is redirected to the weak predefined callback. More... | |
HAL_TIM_StateTypeDef | HAL_TIM_Base_GetState (const TIM_HandleTypeDef *htim) |
Return the TIM Base handle state. More... | |
HAL_TIM_StateTypeDef | HAL_TIM_OC_GetState (const TIM_HandleTypeDef *htim) |
Return the TIM OC handle state. More... | |
HAL_TIM_StateTypeDef | HAL_TIM_PWM_GetState (const TIM_HandleTypeDef *htim) |
Return the TIM PWM handle state. More... | |
HAL_TIM_StateTypeDef | HAL_TIM_IC_GetState (const TIM_HandleTypeDef *htim) |
Return the TIM Input Capture handle state. More... | |
HAL_TIM_StateTypeDef | HAL_TIM_OnePulse_GetState (const TIM_HandleTypeDef *htim) |
Return the TIM One Pulse Mode handle state. More... | |
HAL_TIM_StateTypeDef | HAL_TIM_Encoder_GetState (const TIM_HandleTypeDef *htim) |
Return the TIM Encoder Mode handle state. More... | |
HAL_TIM_ActiveChannel | HAL_TIM_GetActiveChannel (const TIM_HandleTypeDef *htim) |
Return the TIM Encoder Mode handle state. More... | |
HAL_TIM_ChannelStateTypeDef | HAL_TIM_GetChannelState (const TIM_HandleTypeDef *htim, uint32_t Channel) |
Return actual state of the TIM channel. More... | |
HAL_TIM_DMABurstStateTypeDef | HAL_TIM_DMABurstState (const TIM_HandleTypeDef *htim) |
Return actual state of a DMA burst operation. More... | |
void | TIM_Base_SetConfig (TIM_TypeDef *TIMx, const TIM_Base_InitTypeDef *Structure) |
Time Base configuration. More... | |
void | TIM_TI1_SetConfig (TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection, uint32_t TIM_ICFilter) |
Configure the TI1 as Input. More... | |
void | TIM_OC2_SetConfig (TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config) |
Timer Output Compare 2 configuration. More... | |
void | TIM_ETR_SetConfig (TIM_TypeDef *TIMx, uint32_t TIM_ExtTRGPrescaler, uint32_t TIM_ExtTRGPolarity, uint32_t ExtTRGFilter) |
Configures the TIMx External Trigger (ETR). More... | |
void | TIM_DMADelayPulseHalfCplt (DMA_HandleTypeDef *hdma) |
TIM DMA Delay Pulse half complete callback. More... | |
void | TIM_DMAError (DMA_HandleTypeDef *hdma) |
TIM DMA error callback. More... | |
void | TIM_DMACaptureCplt (DMA_HandleTypeDef *hdma) |
TIM DMA Capture complete callback. More... | |
void | TIM_DMACaptureHalfCplt (DMA_HandleTypeDef *hdma) |
TIM DMA Capture half complete callback. More... | |
void | TIM_CCxChannelCmd (TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ChannelState) |
Enables or disables the TIM Capture Compare Channel x. More... | |
void | TIM_ResetCallback (TIM_HandleTypeDef *htim) |
Reset interrupt callbacks to the legacy weak callbacks. More... | |
Header file of TIM HAL module.
Copyright (c) 2016 STMicroelectronics. All rights reserved.
This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
Definition in file stm32f4xx_hal_tim.h.