Modules | Macros | Functions
Collaboration diagram for TIM_Exported_constants:

Modules

 TIM_Output_Compare_and_PWM_modes
 
 TIM_One_Pulse_Mode
 
 TIM_Channel
 
 TIM_Clock_Division_CKD
 
 TIM_Counter_Mode
 
 TIM_Output_Compare_Polarity
 
 TIM_Output_Compare_N_Polarity
 
 TIM_Output_Compare_State
 
 TIM_Output_Compare_N_State
 
 TIM_Capture_Compare_State
 
 TIM_Capture_Compare_N_State
 
 TIM_Break_Input_enable_disable
 
 TIM_Break_Polarity
 
 TIM_AOE_Bit_Set_Reset
 
 TIM_Lock_level
 
 TIM_OSSI_Off_State_Selection_for_Idle_mode_state
 
 TIM_OSSR_Off_State_Selection_for_Run_mode_state
 
 TIM_Output_Compare_Idle_State
 
 TIM_Output_Compare_N_Idle_State
 
 TIM_Input_Capture_Polarity
 
 TIM_Input_Capture_Selection
 
 TIM_Input_Capture_Prescaler
 
 TIM_interrupt_sources
 
 TIM_DMA_Base_address
 
 TIM_DMA_Burst_Length
 
 TIM_DMA_sources
 
 TIM_External_Trigger_Prescaler
 
 TIM_Internal_Trigger_Selection
 
 TIM_TIx_External_Clock_Source
 
 TIM_External_Trigger_Polarity
 
 TIM_Prescaler_Reload_Mode
 
 TIM_Forced_Action
 
 TIM_Encoder_Mode
 
 TIM_Event_Source
 
 TIM_Update_Source
 
 TIM_Output_Compare_Preload_State
 
 TIM_Output_Compare_Fast_State
 
 TIM_Output_Compare_Clear_State
 
 TIM_Trigger_Output_Source
 
 TIM_Slave_Mode
 
 TIM_Master_Slave_Mode
 
 TIM_Remap
 
 TIM_Flags
 
 TIM_Input_Capture_Filer_Value
 
 TIM_External_Trigger_Filter
 
 TIM_Legacy
 
 TIM_Break1_Input_enable_disable
 
 TIM_Break2_Input_enable_disable
 
 TIM_Break1_Polarity
 
 TIM_Break2_Polarity
 
 TIM_Break1_Filter
 
 TIM_Break2_Filter
 
 TIM_OCReferenceClear
 

Macros

#define IS_TIM_ALL_PERIPH(PERIPH)
 
#define IS_TIM_ALL_PERIPH(PERIPH)
 
#define IS_TIM_ALL_PERIPH(PERIPH)
 
#define IS_TIM_LIST1_PERIPH(PERIPH)
 
#define IS_TIM_LIST1_PERIPH(PERIPH)
 
#define IS_TIM_LIST1_PERIPH(PERIPH)
 
#define IS_TIM_LIST2_PERIPH(PERIPH)
 
#define IS_TIM_LIST2_PERIPH(PERIPH)
 
#define IS_TIM_LIST2_PERIPH(PERIPH)
 
#define IS_TIM_LIST3_PERIPH(PERIPH)
 
#define IS_TIM_LIST3_PERIPH(PERIPH)
 
#define IS_TIM_LIST3_PERIPH(PERIPH)
 
#define IS_TIM_LIST4_PERIPH(PERIPH)
 
#define IS_TIM_LIST4_PERIPH(PERIPH)
 
#define IS_TIM_LIST4_PERIPH(PERIPH)
 
#define IS_TIM_LIST5_PERIPH(PERIPH)
 
#define IS_TIM_LIST5_PERIPH(PERIPH)
 
#define IS_TIM_LIST5_PERIPH(PERIPH)
 
#define IS_TIM_LIST6_PERIPH(PERIPH)
 
#define IS_TIM_LIST6_PERIPH(PERIPH)
 
#define IS_TIM_LIST6_PERIPH(TIMx)
 
#define IS_TIM_LIST7_PERIPH(PERIPH)
 
#define IS_TIM_LIST7_PERIPH(PERIPH)
 
#define IS_TIM_LIST8_PERIPH(PERIPH)
 
#define IS_TIM_LIST8_PERIPH(PERIPH)
 
#define IS_TIM_LIST9_PERIPH(PERIPH)
 

Functions

void TIM_ARRPreloadConfig (TIM_TypeDef *TIMx, FunctionalState NewState)
 Enables or disables TIMx peripheral Preload register on ARR. More...
 
void TIM_BDTRConfig (TIM_TypeDef *TIMx, TIM_BDTRInitTypeDef *TIM_BDTRInitStruct)
 Configures the Break feature, dead time, Lock level, OSSI/OSSR State and the AOE(automatic output enable). More...
 
void TIM_BDTRStructInit (TIM_BDTRInitTypeDef *TIM_BDTRInitStruct)
 Fills each TIM_BDTRInitStruct member with its default value. More...
 
void TIM_Break1Cmd (TIM_TypeDef *TIMx, FunctionalState NewState)
 Enables or disables the TIM Break1 input. More...
 
void TIM_Break1Config (TIM_TypeDef *TIMx, uint32_t TIM_Break1Polarity, uint8_t TIM_Break1Filter)
 Configures the Break1 feature. More...
 
void TIM_Break2Cmd (TIM_TypeDef *TIMx, FunctionalState NewState)
 Enables or disables the TIM Break2 input. More...
 
void TIM_Break2Config (TIM_TypeDef *TIMx, uint32_t TIM_Break2Polarity, uint8_t TIM_Break2Filter)
 Configures the Break2 feature. More...
 
void TIM_CCPreloadControl (TIM_TypeDef *TIMx, FunctionalState NewState)
 Sets or Resets the TIM peripheral Capture Compare Preload Control bit. More...
 
void TIM_CCxCmd (TIM_TypeDef *TIMx, uint16_t TIM_Channel, uint16_t TIM_CCx)
 Enables or disables the TIM Capture Compare Channel x. More...
 
void TIM_CCxNCmd (TIM_TypeDef *TIMx, uint16_t TIM_Channel, uint16_t TIM_CCxN)
 Enables or disables the TIM Capture Compare Channel xN. More...
 
void TIM_ClearFlag (TIM_TypeDef *TIMx, uint16_t TIM_FLAG)
 Clears the TIMx's pending flags. More...
 
void TIM_ClearITPendingBit (TIM_TypeDef *TIMx, uint16_t TIM_IT)
 Clears the TIMx's interrupt pending bits. More...
 
void TIM_ClearOC1Ref (TIM_TypeDef *TIMx, uint16_t TIM_OCClear)
 Clears or safeguards the OCREF1 signal on an external event. More...
 
void TIM_ClearOC2Ref (TIM_TypeDef *TIMx, uint16_t TIM_OCClear)
 Clears or safeguards the OCREF2 signal on an external event. More...
 
void TIM_ClearOC3Ref (TIM_TypeDef *TIMx, uint16_t TIM_OCClear)
 Clears or safeguards the OCREF3 signal on an external event. More...
 
void TIM_ClearOC4Ref (TIM_TypeDef *TIMx, uint16_t TIM_OCClear)
 Clears or safeguards the OCREF4 signal on an external event. More...
 
void TIM_ClearOC5Ref (TIM_TypeDef *TIMx, uint16_t TIM_OCClear)
 Clears or safeguards the OCREF5 signal on an external event. More...
 
void TIM_ClearOC6Ref (TIM_TypeDef *TIMx, uint16_t TIM_OCClear)
 Clears or safeguards the OCREF6 signal on an external event. More...
 
void TIM_Cmd (TIM_TypeDef *TIMx, FunctionalState NewState)
 Enables or disables the specified TIM peripheral. More...
 
void TIM_CounterModeConfig (TIM_TypeDef *TIMx, uint16_t TIM_CounterMode)
 Specifies the TIMx Counter Mode to be used. More...
 
void TIM_CtrlPWMOutputs (TIM_TypeDef *TIMx, FunctionalState NewState)
 Enables or disables the TIM peripheral Main Outputs. More...
 
void TIM_DeInit (TIM_TypeDef *TIMx)
 Deinitializes the TIMx peripheral registers to their default reset values. More...
 
void TIM_DMACmd (TIM_TypeDef *TIMx, uint16_t TIM_DMASource, FunctionalState NewState)
 Enables or disables the TIMx's DMA Requests. More...
 
void TIM_DMAConfig (TIM_TypeDef *TIMx, uint16_t TIM_DMABase, uint16_t TIM_DMABurstLength)
 Configures the TIMx's DMA interface. More...
 
void TIM_EncoderInterfaceConfig (TIM_TypeDef *TIMx, uint16_t TIM_EncoderMode, uint16_t TIM_IC1Polarity, uint16_t TIM_IC2Polarity)
 Configures the TIMx Encoder Interface. More...
 
void TIM_ETRClockMode1Config (TIM_TypeDef *TIMx, uint16_t TIM_ExtTRGPrescaler, uint16_t TIM_ExtTRGPolarity, uint16_t ExtTRGFilter)
 Configures the External clock Mode1. More...
 
void TIM_ETRClockMode2Config (TIM_TypeDef *TIMx, uint16_t TIM_ExtTRGPrescaler, uint16_t TIM_ExtTRGPolarity, uint16_t ExtTRGFilter)
 Configures the External clock Mode2. More...
 
void TIM_ETRConfig (TIM_TypeDef *TIMx, uint16_t TIM_ExtTRGPrescaler, uint16_t TIM_ExtTRGPolarity, uint16_t ExtTRGFilter)
 Configures the TIMx External Trigger (ETR). More...
 
void TIM_ForcedOC1Config (TIM_TypeDef *TIMx, uint16_t TIM_ForcedAction)
 Forces the TIMx output 1 waveform to active or inactive level. More...
 
void TIM_ForcedOC2Config (TIM_TypeDef *TIMx, uint16_t TIM_ForcedAction)
 Forces the TIMx output 2 waveform to active or inactive level. More...
 
void TIM_ForcedOC3Config (TIM_TypeDef *TIMx, uint16_t TIM_ForcedAction)
 Forces the TIMx output 3 waveform to active or inactive level. More...
 
void TIM_ForcedOC4Config (TIM_TypeDef *TIMx, uint16_t TIM_ForcedAction)
 Forces the TIMx output 4 waveform to active or inactive level. More...
 
void TIM_ForcedOC5Config (TIM_TypeDef *TIMx, uint16_t TIM_ForcedAction)
 Forces the TIMx output 5 waveform to active or inactive level. More...
 
void TIM_ForcedOC6Config (TIM_TypeDef *TIMx, uint16_t TIM_ForcedAction)
 Forces the TIMx output 6 waveform to active or inactive level. More...
 
void TIM_GenerateEvent (TIM_TypeDef *TIMx, uint16_t TIM_EventSource)
 Configures the TIMx event to be generate by software. More...
 
uint32_t TIM_GetCapture1 (TIM_TypeDef *TIMx)
 Gets the TIMx Input Capture 1 value. More...
 
uint32_t TIM_GetCapture2 (TIM_TypeDef *TIMx)
 Gets the TIMx Input Capture 2 value. More...
 
uint32_t TIM_GetCapture3 (TIM_TypeDef *TIMx)
 Gets the TIMx Input Capture 3 value. More...
 
uint32_t TIM_GetCapture4 (TIM_TypeDef *TIMx)
 Gets the TIMx Input Capture 4 value. More...
 
uint32_t TIM_GetCounter (TIM_TypeDef *TIMx)
 Gets the TIMx Counter value. More...
 
FlagStatus TIM_GetFlagStatus (TIM_TypeDef *TIMx, uint32_t TIM_FLAG)
 Checks whether the specified TIM flag is set or not. More...
 
ITStatus TIM_GetITStatus (TIM_TypeDef *TIMx, uint16_t TIM_IT)
 Checks whether the TIM interrupt has occurred or not. More...
 
uint16_t TIM_GetPrescaler (TIM_TypeDef *TIMx)
 Gets the TIMx Prescaler value. More...
 
void TIM_ICInit (TIM_TypeDef *TIMx, TIM_ICInitTypeDef *TIM_ICInitStruct)
 Initializes the TIM peripheral according to the specified parameters in the TIM_ICInitStruct. More...
 
void TIM_ICStructInit (TIM_ICInitTypeDef *TIM_ICInitStruct)
 Fills each TIM_ICInitStruct member with its default value. More...
 
void TIM_InternalClockConfig (TIM_TypeDef *TIMx)
 Configures the TIMx internal Clock. More...
 
void TIM_ITConfig (TIM_TypeDef *TIMx, uint16_t TIM_IT, FunctionalState NewState)
 Enables or disables the specified TIM interrupts. More...
 
void TIM_ITRxExternalClockConfig (TIM_TypeDef *TIMx, uint16_t TIM_InputTriggerSource)
 Configures the TIMx Internal Trigger as External Clock. More...
 
void TIM_OC1FastConfig (TIM_TypeDef *TIMx, uint16_t TIM_OCFast)
 Configures the TIMx Output Compare 1 Fast feature. More...
 
void TIM_OC1Init (TIM_TypeDef *TIMx, TIM_OCInitTypeDef *TIM_OCInitStruct)
 Initializes the TIMx Channel1 according to the specified parameters in the TIM_OCInitStruct. More...
 
void TIM_OC1NPolarityConfig (TIM_TypeDef *TIMx, uint16_t TIM_OCNPolarity)
 Configures the TIMx Channel 1N polarity. More...
 
void TIM_OC1PolarityConfig (TIM_TypeDef *TIMx, uint16_t TIM_OCPolarity)
 Configures the TIMx channel 1 polarity. More...
 
void TIM_OC1PreloadConfig (TIM_TypeDef *TIMx, uint16_t TIM_OCPreload)
 Enables or disables the TIMx peripheral Preload register on CCR1. More...
 
void TIM_OC2FastConfig (TIM_TypeDef *TIMx, uint16_t TIM_OCFast)
 Configures the TIMx Output Compare 2 Fast feature. More...
 
void TIM_OC2Init (TIM_TypeDef *TIMx, TIM_OCInitTypeDef *TIM_OCInitStruct)
 Initializes the TIMx Channel2 according to the specified parameters in the TIM_OCInitStruct. More...
 
void TIM_OC2NPolarityConfig (TIM_TypeDef *TIMx, uint16_t TIM_OCNPolarity)
 Configures the TIMx Channel 2N polarity. More...
 
void TIM_OC2PolarityConfig (TIM_TypeDef *TIMx, uint16_t TIM_OCPolarity)
 Configures the TIMx channel 2 polarity. More...
 
void TIM_OC2PreloadConfig (TIM_TypeDef *TIMx, uint16_t TIM_OCPreload)
 Enables or disables the TIMx peripheral Preload register on CCR2. More...
 
void TIM_OC3FastConfig (TIM_TypeDef *TIMx, uint16_t TIM_OCFast)
 Configures the TIMx Output Compare 3 Fast feature. More...
 
void TIM_OC3Init (TIM_TypeDef *TIMx, TIM_OCInitTypeDef *TIM_OCInitStruct)
 Initializes the TIMx Channel3 according to the specified parameters in the TIM_OCInitStruct. More...
 
void TIM_OC3NPolarityConfig (TIM_TypeDef *TIMx, uint16_t TIM_OCNPolarity)
 Configures the TIMx Channel 3N polarity. More...
 
void TIM_OC3PolarityConfig (TIM_TypeDef *TIMx, uint16_t TIM_OCPolarity)
 Configures the TIMx channel 3 polarity. More...
 
void TIM_OC3PreloadConfig (TIM_TypeDef *TIMx, uint16_t TIM_OCPreload)
 Enables or disables the TIMx peripheral Preload register on CCR3. More...
 
void TIM_OC4FastConfig (TIM_TypeDef *TIMx, uint16_t TIM_OCFast)
 Configures the TIMx Output Compare 4 Fast feature. More...
 
void TIM_OC4Init (TIM_TypeDef *TIMx, TIM_OCInitTypeDef *TIM_OCInitStruct)
 Initializes the TIMx Channel4 according to the specified parameters in the TIM_OCInitStruct. More...
 
void TIM_OC4PolarityConfig (TIM_TypeDef *TIMx, uint16_t TIM_OCPolarity)
 Configures the TIMx channel 4 polarity. More...
 
void TIM_OC4PreloadConfig (TIM_TypeDef *TIMx, uint16_t TIM_OCPreload)
 Enables or disables the TIMx peripheral Preload register on CCR4. More...
 
void TIM_OC5Init (TIM_TypeDef *TIMx, TIM_OCInitTypeDef *TIM_OCInitStruct)
 Initializes the TIMx Channel5 according to the specified parameters in the TIM_OCInitStruct. More...
 
void TIM_OC5PolarityConfig (TIM_TypeDef *TIMx, uint16_t TIM_OCPolarity)
 Configures the TIMx channel 5 polarity. More...
 
void TIM_OC5PreloadConfig (TIM_TypeDef *TIMx, uint16_t TIM_OCPreload)
 Enables or disables the TIMx peripheral Preload register on CCR5. More...
 
void TIM_OC6Init (TIM_TypeDef *TIMx, TIM_OCInitTypeDef *TIM_OCInitStruct)
 Initializes the TIMx Channel6 according to the specified parameters in the TIM_OCInitStruct. More...
 
void TIM_OC6PolarityConfig (TIM_TypeDef *TIMx, uint16_t TIM_OCPolarity)
 Configures the TIMx channel 6 polarity. More...
 
void TIM_OC6PreloadConfig (TIM_TypeDef *TIMx, uint16_t TIM_OCPreload)
 Enables or disables the TIMx peripheral Preload register on CCR6. More...
 
void TIM_OCStructInit (TIM_OCInitTypeDef *TIM_OCInitStruct)
 Fills each TIM_OCInitStruct member with its default value. More...
 
void TIM_PrescalerConfig (TIM_TypeDef *TIMx, uint16_t Prescaler, uint16_t TIM_PSCReloadMode)
 Configures the TIMx Prescaler. More...
 
void TIM_PWMIConfig (TIM_TypeDef *TIMx, TIM_ICInitTypeDef *TIM_ICInitStruct)
 Configures the TIM peripheral according to the specified parameters in the TIM_ICInitStruct to measure an external PWM signal. More...
 
void TIM_RemapConfig (TIM_TypeDef *TIMx, uint16_t TIM_Remap)
 Configures the TIM2, TIM5 and TIM11 Remapping input capabilities. More...
 
void TIM_SelectCCDMA (TIM_TypeDef *TIMx, FunctionalState NewState)
 Selects the TIMx peripheral Capture Compare DMA source. More...
 
void TIM_SelectCOM (TIM_TypeDef *TIMx, FunctionalState NewState)
 Selects the TIM peripheral Commutation event. More...
 
void TIM_SelectGC5C1 (TIM_TypeDef *TIMx, FunctionalState NewState)
 Selects the TIM Group Channel 5 and Channel 1, OC1REFC is the logical AND of OC1REFC and OC5REF. More...
 
void TIM_SelectGC5C2 (TIM_TypeDef *TIMx, FunctionalState NewState)
 Selects the TIM Group Channel 5 and Channel 2, OC2REFC is the logical AND of OC2REFC and OC5REF. More...
 
void TIM_SelectGC5C3 (TIM_TypeDef *TIMx, FunctionalState NewState)
 Selects the TIM Group Channel 5 and Channel 3, OC3REFC is the logical AND of OC3REFC and OC5REF. More...
 
void TIM_SelectHallSensor (TIM_TypeDef *TIMx, FunctionalState NewState)
 Enables or disables the TIMx's Hall sensor interface. More...
 
void TIM_SelectInputTrigger (TIM_TypeDef *TIMx, uint16_t TIM_InputTriggerSource)
 Selects the Input Trigger source. More...
 
void TIM_SelectMasterSlaveMode (TIM_TypeDef *TIMx, uint16_t TIM_MasterSlaveMode)
 Sets or Resets the TIMx Master/Slave Mode. More...
 
void TIM_SelectOCREFClear (TIM_TypeDef *TIMx, uint16_t TIM_OCReferenceClear)
 Selects the OCReference Clear source. More...
 
void TIM_SelectOCxM (TIM_TypeDef *TIMx, uint16_t TIM_Channel, uint32_t TIM_OCMode)
 Selects the TIM Output Compare Mode. More...
 
void TIM_SelectOnePulseMode (TIM_TypeDef *TIMx, uint16_t TIM_OPMode)
 Selects the TIMx's One Pulse Mode. More...
 
void TIM_SelectOutputTrigger (TIM_TypeDef *TIMx, uint16_t TIM_TRGOSource)
 Selects the TIMx Trigger Output Mode. More...
 
void TIM_SelectOutputTrigger2 (TIM_TypeDef *TIMx, uint32_t TIM_TRGO2Source)
 Selects the TIMx Trigger Output Mode2 (TRGO2). More...
 
void TIM_SelectSlaveMode (TIM_TypeDef *TIMx, uint32_t TIM_SlaveMode)
 Selects the TIMx Slave Mode. More...
 
void TIM_SetAutoreload (TIM_TypeDef *TIMx, uint32_t Autoreload)
 Sets the TIMx Autoreload Register value. More...
 
void TIM_SetClockDivision (TIM_TypeDef *TIMx, uint16_t TIM_CKD)
 Sets the TIMx Clock Division value. More...
 
void TIM_SetCompare1 (TIM_TypeDef *TIMx, uint32_t Compare1)
 Sets the TIMx Capture Compare1 Register value. More...
 
void TIM_SetCompare2 (TIM_TypeDef *TIMx, uint32_t Compare2)
 Sets the TIMx Capture Compare2 Register value. More...
 
void TIM_SetCompare3 (TIM_TypeDef *TIMx, uint32_t Compare3)
 Sets the TIMx Capture Compare3 Register value. More...
 
void TIM_SetCompare4 (TIM_TypeDef *TIMx, uint32_t Compare4)
 Sets the TIMx Capture Compare4 Register value. More...
 
void TIM_SetCompare5 (TIM_TypeDef *TIMx, uint32_t Compare5)
 Sets the TIMx Capture Compare5 Register value. More...
 
void TIM_SetCompare6 (TIM_TypeDef *TIMx, uint32_t Compare6)
 Sets the TIMx Capture Compare6 Register value. More...
 
void TIM_SetCounter (TIM_TypeDef *TIMx, uint32_t Counter)
 Sets the TIMx Counter Register value. More...
 
void TIM_SetIC1Prescaler (TIM_TypeDef *TIMx, uint16_t TIM_ICPSC)
 Sets the TIMx Input Capture 1 prescaler. More...
 
void TIM_SetIC2Prescaler (TIM_TypeDef *TIMx, uint16_t TIM_ICPSC)
 Sets the TIMx Input Capture 2 prescaler. More...
 
void TIM_SetIC3Prescaler (TIM_TypeDef *TIMx, uint16_t TIM_ICPSC)
 Sets the TIMx Input Capture 3 prescaler. More...
 
void TIM_SetIC4Prescaler (TIM_TypeDef *TIMx, uint16_t TIM_ICPSC)
 Sets the TIMx Input Capture 4 prescaler. More...
 
void TIM_TimeBaseInit (TIM_TypeDef *TIMx, TIM_TimeBaseInitTypeDef *TIM_TimeBaseInitStruct)
 Initializes the TIMx Time Base Unit peripheral according to the specified parameters in the TIM_TimeBaseInitStruct. More...
 
void TIM_TimeBaseStructInit (TIM_TimeBaseInitTypeDef *TIM_TimeBaseInitStruct)
 Fills each TIM_TimeBaseInitStruct member with its default value. More...
 
void TIM_TIxExternalClockConfig (TIM_TypeDef *TIMx, uint16_t TIM_TIxExternalCLKSource, uint16_t TIM_ICPolarity, uint16_t ICFilter)
 Configures the TIMx Trigger as External Clock. More...
 
void TIM_UIFRemap (TIM_TypeDef *TIMx, FunctionalState NewState)
 Sets or resets the update interrupt flag (UIF)status bit Remapping. when sets, reading TIMx_CNT register returns UIF bit instead of CNT[31]. More...
 
void TIM_UpdateDisableConfig (TIM_TypeDef *TIMx, FunctionalState NewState)
 Enables or Disables the TIMx Update event. More...
 
void TIM_UpdateRequestConfig (TIM_TypeDef *TIMx, uint16_t TIM_UpdateSource)
 Configures the TIMx Update Request Interrupt source. More...
 

Detailed Description

Macro Definition Documentation

#define IS_TIM_ALL_PERIPH (   PERIPH)
Value:
(((PERIPH) == TIM1) || \
((PERIPH) == TIM2) || \
((PERIPH) == TIM3) || \
((PERIPH) == TIM4) || \
((PERIPH) == TIM5) || \
((PERIPH) == TIM6) || \
((PERIPH) == TIM7) || \
((PERIPH) == TIM8) || \
((PERIPH) == TIM9) || \
((PERIPH) == TIM10)|| \
((PERIPH) == TIM11)|| \
((PERIPH) == TIM12)|| \
((PERIPH) == TIM13)|| \
((PERIPH) == TIM14)|| \
((PERIPH) == TIM15)|| \
((PERIPH) == TIM16)|| \
((PERIPH) == TIM17))
#define TIM4
Definition: stm32f4xx.h:2039
#define TIM1
Definition: stm32f4xx.h:2078
#define TIM3
Definition: stm32f4xx.h:2038
#define TIM12
Definition: stm32f4xx.h:2043
#define TIM9
Definition: stm32f4xx.h:2091
#define TIM2
Definition: stm32f4xx.h:2037
#define TIM8
Definition: stm32f4xx.h:2079
#define TIM17
Definition: stm32f10x.h:1424
#define TIM15
Definition: stm32f10x.h:1422
#define TIM6
Definition: stm32f4xx.h:2041
#define TIM5
Definition: stm32f4xx.h:2040
#define TIM10
Definition: stm32f4xx.h:2092
#define TIM13
Definition: stm32f4xx.h:2044
#define TIM11
Definition: stm32f4xx.h:2093
#define TIM14
Definition: stm32f4xx.h:2045
#define TIM7
Definition: stm32f4xx.h:2042
#define TIM16
Definition: stm32f10x.h:1423

Definition at line 169 of file stm32f10x_tim.h.

#define IS_TIM_ALL_PERIPH (   PERIPH)
Value:
(((PERIPH) == TIM1) || \
((PERIPH) == TIM2) || \
((PERIPH) == TIM3) || \
((PERIPH) == TIM4) || \
((PERIPH) == TIM5) || \
((PERIPH) == TIM6) || \
((PERIPH) == TIM7) || \
((PERIPH) == TIM8) || \
((PERIPH) == TIM9) || \
((PERIPH) == TIM10) || \
((PERIPH) == TIM11) || \
((PERIPH) == TIM12) || \
(((PERIPH) == TIM13) || \
((PERIPH) == TIM14)))
#define TIM4
Definition: stm32f4xx.h:2039
#define TIM1
Definition: stm32f4xx.h:2078
#define TIM3
Definition: stm32f4xx.h:2038
#define TIM12
Definition: stm32f4xx.h:2043
#define TIM9
Definition: stm32f4xx.h:2091
#define TIM2
Definition: stm32f4xx.h:2037
#define TIM8
Definition: stm32f4xx.h:2079
#define TIM6
Definition: stm32f4xx.h:2041
#define TIM5
Definition: stm32f4xx.h:2040
#define TIM10
Definition: stm32f4xx.h:2092
#define TIM13
Definition: stm32f4xx.h:2044
#define TIM11
Definition: stm32f4xx.h:2093
#define TIM14
Definition: stm32f4xx.h:2045
#define TIM7
Definition: stm32f4xx.h:2042

Definition at line 175 of file stm32f4xx_tim.h.

#define IS_TIM_ALL_PERIPH (   PERIPH)
Value:
(((PERIPH) == TIM1) || \
((PERIPH) == TIM2) || \
((PERIPH) == TIM3) || \
((PERIPH) == TIM4) || \
((PERIPH) == TIM6) || \
((PERIPH) == TIM7) || \
((PERIPH) == TIM8) || \
((PERIPH) == TIM15) || \
((PERIPH) == TIM16) || \
((PERIPH) == TIM17))
#define TIM4
Definition: stm32f4xx.h:2039
#define TIM1
Definition: stm32f4xx.h:2078
#define TIM3
Definition: stm32f4xx.h:2038
#define TIM2
Definition: stm32f4xx.h:2037
#define TIM8
Definition: stm32f4xx.h:2079
#define TIM17
Definition: stm32f10x.h:1424
#define TIM15
Definition: stm32f10x.h:1422
#define TIM6
Definition: stm32f4xx.h:2041
#define TIM7
Definition: stm32f4xx.h:2042
#define TIM16
Definition: stm32f10x.h:1423

Definition at line 175 of file stm32f30x_tim.h.

#define IS_TIM_LIST1_PERIPH (   PERIPH)
Value:
(((PERIPH) == TIM1) || \
((PERIPH) == TIM2) || \
((PERIPH) == TIM3) || \
((PERIPH) == TIM4) || \
((PERIPH) == TIM8) || \
((PERIPH) == TIM15) || \
((PERIPH) == TIM16) || \
((PERIPH) == TIM17))
#define TIM4
Definition: stm32f4xx.h:2039
#define TIM1
Definition: stm32f4xx.h:2078
#define TIM3
Definition: stm32f4xx.h:2038
#define TIM2
Definition: stm32f4xx.h:2037
#define TIM8
Definition: stm32f4xx.h:2079
#define TIM17
Definition: stm32f10x.h:1424
#define TIM15
Definition: stm32f10x.h:1422
#define TIM16
Definition: stm32f10x.h:1423

Definition at line 186 of file stm32f30x_tim.h.

#define IS_TIM_LIST1_PERIPH (   PERIPH)
Value:
(((PERIPH) == TIM1) || \
((PERIPH) == TIM8))
#define TIM1
Definition: stm32f4xx.h:2078
#define TIM8
Definition: stm32f4xx.h:2079

Definition at line 188 of file stm32f10x_tim.h.

#define IS_TIM_LIST1_PERIPH (   PERIPH)
Value:
(((PERIPH) == TIM1) || \
((PERIPH) == TIM2) || \
((PERIPH) == TIM3) || \
((PERIPH) == TIM4) || \
((PERIPH) == TIM5) || \
((PERIPH) == TIM8) || \
((PERIPH) == TIM9) || \
((PERIPH) == TIM10) || \
((PERIPH) == TIM11) || \
((PERIPH) == TIM12) || \
((PERIPH) == TIM13) || \
((PERIPH) == TIM14))
#define TIM4
Definition: stm32f4xx.h:2039
#define TIM1
Definition: stm32f4xx.h:2078
#define TIM3
Definition: stm32f4xx.h:2038
#define TIM12
Definition: stm32f4xx.h:2043
#define TIM9
Definition: stm32f4xx.h:2091
#define TIM2
Definition: stm32f4xx.h:2037
#define TIM8
Definition: stm32f4xx.h:2079
#define TIM5
Definition: stm32f4xx.h:2040
#define TIM10
Definition: stm32f4xx.h:2092
#define TIM13
Definition: stm32f4xx.h:2044
#define TIM11
Definition: stm32f4xx.h:2093
#define TIM14
Definition: stm32f4xx.h:2045

Definition at line 190 of file stm32f4xx_tim.h.

#define IS_TIM_LIST2_PERIPH (   PERIPH)
Value:
(((PERIPH) == TIM1) || \
((PERIPH) == TIM8) || \
((PERIPH) == TIM15)|| \
((PERIPH) == TIM16)|| \
((PERIPH) == TIM17))
#define TIM1
Definition: stm32f4xx.h:2078
#define TIM8
Definition: stm32f4xx.h:2079
#define TIM17
Definition: stm32f10x.h:1424
#define TIM15
Definition: stm32f10x.h:1422
#define TIM16
Definition: stm32f10x.h:1423

Definition at line 192 of file stm32f10x_tim.h.

#define IS_TIM_LIST2_PERIPH (   PERIPH)
Value:
(((PERIPH) == TIM1) || \
((PERIPH) == TIM2) || \
((PERIPH) == TIM3) || \
((PERIPH) == TIM4) || \
((PERIPH) == TIM8) || \
((PERIPH) == TIM15))
#define TIM4
Definition: stm32f4xx.h:2039
#define TIM1
Definition: stm32f4xx.h:2078
#define TIM3
Definition: stm32f4xx.h:2038
#define TIM2
Definition: stm32f4xx.h:2037
#define TIM8
Definition: stm32f4xx.h:2079
#define TIM15
Definition: stm32f10x.h:1422

Definition at line 196 of file stm32f30x_tim.h.

#define IS_TIM_LIST2_PERIPH (   PERIPH)
Value:
(((PERIPH) == TIM1) || \
((PERIPH) == TIM2) || \
((PERIPH) == TIM3) || \
((PERIPH) == TIM4) || \
((PERIPH) == TIM5) || \
((PERIPH) == TIM8) || \
((PERIPH) == TIM9) || \
((PERIPH) == TIM12))
#define TIM4
Definition: stm32f4xx.h:2039
#define TIM1
Definition: stm32f4xx.h:2078
#define TIM3
Definition: stm32f4xx.h:2038
#define TIM12
Definition: stm32f4xx.h:2043
#define TIM9
Definition: stm32f4xx.h:2091
#define TIM2
Definition: stm32f4xx.h:2037
#define TIM8
Definition: stm32f4xx.h:2079
#define TIM5
Definition: stm32f4xx.h:2040

Definition at line 204 of file stm32f4xx_tim.h.

#define IS_TIM_LIST3_PERIPH (   PERIPH)
Value:
(((PERIPH) == TIM1) || \
((PERIPH) == TIM2) || \
((PERIPH) == TIM3) || \
((PERIPH) == TIM4) || \
((PERIPH) == TIM5) || \
((PERIPH) == TIM8))
#define TIM4
Definition: stm32f4xx.h:2039
#define TIM1
Definition: stm32f4xx.h:2078
#define TIM3
Definition: stm32f4xx.h:2038
#define TIM2
Definition: stm32f4xx.h:2037
#define TIM8
Definition: stm32f4xx.h:2079
#define TIM5
Definition: stm32f4xx.h:2040

Definition at line 199 of file stm32f10x_tim.h.

#define IS_TIM_LIST3_PERIPH (   PERIPH)
Value:
(((PERIPH) == TIM1) || \
((PERIPH) == TIM2) || \
((PERIPH) == TIM3) || \
((PERIPH) == TIM4) || \
((PERIPH) == TIM8))
#define TIM4
Definition: stm32f4xx.h:2039
#define TIM1
Definition: stm32f4xx.h:2078
#define TIM3
Definition: stm32f4xx.h:2038
#define TIM2
Definition: stm32f4xx.h:2037
#define TIM8
Definition: stm32f4xx.h:2079

Definition at line 203 of file stm32f30x_tim.h.

#define IS_TIM_LIST3_PERIPH (   PERIPH)
Value:
(((PERIPH) == TIM1) || \
((PERIPH) == TIM2) || \
((PERIPH) == TIM3) || \
((PERIPH) == TIM4) || \
((PERIPH) == TIM5) || \
((PERIPH) == TIM8))
#define TIM4
Definition: stm32f4xx.h:2039
#define TIM1
Definition: stm32f4xx.h:2078
#define TIM3
Definition: stm32f4xx.h:2038
#define TIM2
Definition: stm32f4xx.h:2037
#define TIM8
Definition: stm32f4xx.h:2079
#define TIM5
Definition: stm32f4xx.h:2040

Definition at line 213 of file stm32f4xx_tim.h.

#define IS_TIM_LIST4_PERIPH (   PERIPH)
Value:
(((PERIPH) == TIM1) || \
((PERIPH) == TIM2) || \
((PERIPH) == TIM3) || \
((PERIPH) == TIM4) || \
((PERIPH) == TIM5) || \
((PERIPH) == TIM8) || \
((PERIPH) == TIM15)|| \
((PERIPH) == TIM16)|| \
((PERIPH) == TIM17))
#define TIM4
Definition: stm32f4xx.h:2039
#define TIM1
Definition: stm32f4xx.h:2078
#define TIM3
Definition: stm32f4xx.h:2038
#define TIM2
Definition: stm32f4xx.h:2037
#define TIM8
Definition: stm32f4xx.h:2079
#define TIM17
Definition: stm32f10x.h:1424
#define TIM15
Definition: stm32f10x.h:1422
#define TIM5
Definition: stm32f4xx.h:2040
#define TIM16
Definition: stm32f10x.h:1423

Definition at line 207 of file stm32f10x_tim.h.

#define IS_TIM_LIST4_PERIPH (   PERIPH)
Value:
(((PERIPH) == TIM1) ||\
((PERIPH) == TIM8))
#define TIM1
Definition: stm32f4xx.h:2078
#define TIM8
Definition: stm32f4xx.h:2079

Definition at line 209 of file stm32f30x_tim.h.

#define IS_TIM_LIST4_PERIPH (   PERIPH)
Value:
(((PERIPH) == TIM1) || \
((PERIPH) == TIM8))
#define TIM1
Definition: stm32f4xx.h:2078
#define TIM8
Definition: stm32f4xx.h:2079

Definition at line 220 of file stm32f4xx_tim.h.

#define IS_TIM_LIST5_PERIPH (   PERIPH)
Value:
(((PERIPH) == TIM1) || \
((PERIPH) == TIM2) || \
((PERIPH) == TIM3) || \
((PERIPH) == TIM4) || \
((PERIPH) == TIM6) || \
((PERIPH) == TIM7) || \
((PERIPH) == TIM8))
#define TIM4
Definition: stm32f4xx.h:2039
#define TIM1
Definition: stm32f4xx.h:2078
#define TIM3
Definition: stm32f4xx.h:2038
#define TIM2
Definition: stm32f4xx.h:2037
#define TIM8
Definition: stm32f4xx.h:2079
#define TIM6
Definition: stm32f4xx.h:2041
#define TIM7
Definition: stm32f4xx.h:2042

Definition at line 212 of file stm32f30x_tim.h.

#define IS_TIM_LIST5_PERIPH (   PERIPH)
Value:
(((PERIPH) == TIM1) || \
((PERIPH) == TIM2) || \
((PERIPH) == TIM3) || \
((PERIPH) == TIM4) || \
((PERIPH) == TIM5) || \
((PERIPH) == TIM8) || \
((PERIPH) == TIM15))
#define TIM4
Definition: stm32f4xx.h:2039
#define TIM1
Definition: stm32f4xx.h:2078
#define TIM3
Definition: stm32f4xx.h:2038
#define TIM2
Definition: stm32f4xx.h:2037
#define TIM8
Definition: stm32f4xx.h:2079
#define TIM15
Definition: stm32f10x.h:1422
#define TIM5
Definition: stm32f4xx.h:2040

Definition at line 218 of file stm32f10x_tim.h.

#define IS_TIM_LIST5_PERIPH (   PERIPH)
Value:
(((PERIPH) == TIM1) || \
((PERIPH) == TIM2) || \
((PERIPH) == TIM3) || \
((PERIPH) == TIM4) || \
((PERIPH) == TIM5) || \
((PERIPH) == TIM6) || \
((PERIPH) == TIM7) || \
((PERIPH) == TIM8))
#define TIM4
Definition: stm32f4xx.h:2039
#define TIM1
Definition: stm32f4xx.h:2078
#define TIM3
Definition: stm32f4xx.h:2038
#define TIM2
Definition: stm32f4xx.h:2037
#define TIM8
Definition: stm32f4xx.h:2079
#define TIM6
Definition: stm32f4xx.h:2041
#define TIM5
Definition: stm32f4xx.h:2040
#define TIM7
Definition: stm32f4xx.h:2042

Definition at line 223 of file stm32f4xx_tim.h.

#define IS_TIM_LIST6_PERIPH (   PERIPH)
Value:
(((PERIPH) == TIM1) || \
((PERIPH) == TIM8) || \
((PERIPH) == TIM15) || \
((PERIPH) == TIM16) || \
((PERIPH) == TIM17))
#define TIM1
Definition: stm32f4xx.h:2078
#define TIM8
Definition: stm32f4xx.h:2079
#define TIM17
Definition: stm32f10x.h:1424
#define TIM15
Definition: stm32f10x.h:1422
#define TIM16
Definition: stm32f10x.h:1423

Definition at line 220 of file stm32f30x_tim.h.

#define IS_TIM_LIST6_PERIPH (   PERIPH)
Value:
(((PERIPH) == TIM1) || \
((PERIPH) == TIM2) || \
((PERIPH) == TIM3) || \
((PERIPH) == TIM4) || \
((PERIPH) == TIM5) || \
((PERIPH) == TIM8) || \
((PERIPH) == TIM9) || \
((PERIPH) == TIM12)|| \
((PERIPH) == TIM15))
#define TIM4
Definition: stm32f4xx.h:2039
#define TIM1
Definition: stm32f4xx.h:2078
#define TIM3
Definition: stm32f4xx.h:2038
#define TIM12
Definition: stm32f4xx.h:2043
#define TIM9
Definition: stm32f4xx.h:2091
#define TIM2
Definition: stm32f4xx.h:2037
#define TIM8
Definition: stm32f4xx.h:2079
#define TIM15
Definition: stm32f10x.h:1422
#define TIM5
Definition: stm32f4xx.h:2040

Definition at line 227 of file stm32f10x_tim.h.

#define IS_TIM_LIST6_PERIPH (   TIMx)
Value:
(((TIMx) == TIM2) || \
((TIMx) == TIM5) || \
((TIMx) == TIM11))
#define TIM2
Definition: stm32f4xx.h:2037
#define TIM5
Definition: stm32f4xx.h:2040
#define TIM11
Definition: stm32f4xx.h:2093

Definition at line 232 of file stm32f4xx_tim.h.

#define IS_TIM_LIST7_PERIPH (   PERIPH)
Value:
(((PERIPH) == TIM1) || \
((PERIPH) == TIM2) || \
((PERIPH) == TIM3) || \
((PERIPH) == TIM4) || \
((PERIPH) == TIM6) || \
((PERIPH) == TIM7) || \
((PERIPH) == TIM8) || \
((PERIPH) == TIM15))
#define TIM4
Definition: stm32f4xx.h:2039
#define TIM1
Definition: stm32f4xx.h:2078
#define TIM3
Definition: stm32f4xx.h:2038
#define TIM2
Definition: stm32f4xx.h:2037
#define TIM8
Definition: stm32f4xx.h:2079
#define TIM15
Definition: stm32f10x.h:1422
#define TIM6
Definition: stm32f4xx.h:2041
#define TIM7
Definition: stm32f4xx.h:2042

Definition at line 227 of file stm32f30x_tim.h.

#define IS_TIM_LIST7_PERIPH (   PERIPH)
Value:
(((PERIPH) == TIM1) || \
((PERIPH) == TIM2) || \
((PERIPH) == TIM3) || \
((PERIPH) == TIM4) || \
((PERIPH) == TIM5) || \
((PERIPH) == TIM6) || \
((PERIPH) == TIM7) || \
((PERIPH) == TIM8) || \
((PERIPH) == TIM9) || \
((PERIPH) == TIM12)|| \
((PERIPH) == TIM15))
#define TIM4
Definition: stm32f4xx.h:2039
#define TIM1
Definition: stm32f4xx.h:2078
#define TIM3
Definition: stm32f4xx.h:2038
#define TIM12
Definition: stm32f4xx.h:2043
#define TIM9
Definition: stm32f4xx.h:2091
#define TIM2
Definition: stm32f4xx.h:2037
#define TIM8
Definition: stm32f4xx.h:2079
#define TIM15
Definition: stm32f10x.h:1422
#define TIM6
Definition: stm32f4xx.h:2041
#define TIM5
Definition: stm32f4xx.h:2040
#define TIM7
Definition: stm32f4xx.h:2042

Definition at line 238 of file stm32f10x_tim.h.

#define IS_TIM_LIST8_PERIPH (   PERIPH)
Value:
(((PERIPH) == TIM16)|| \
((PERIPH) == TIM1)||\
((PERIPH) == TIM8))
#define TIM1
Definition: stm32f4xx.h:2078
#define TIM8
Definition: stm32f4xx.h:2079
#define TIM16
Definition: stm32f10x.h:1423

Definition at line 236 of file stm32f30x_tim.h.

#define IS_TIM_LIST8_PERIPH (   PERIPH)
Value:
(((PERIPH) == TIM1) || \
((PERIPH) == TIM2) || \
((PERIPH) == TIM3) || \
((PERIPH) == TIM4) || \
((PERIPH) == TIM5) || \
((PERIPH) == TIM8) || \
((PERIPH) == TIM9) || \
((PERIPH) == TIM10)|| \
((PERIPH) == TIM11)|| \
((PERIPH) == TIM12)|| \
((PERIPH) == TIM13)|| \
((PERIPH) == TIM14)|| \
((PERIPH) == TIM15)|| \
((PERIPH) == TIM16)|| \
((PERIPH) == TIM17))
#define TIM4
Definition: stm32f4xx.h:2039
#define TIM1
Definition: stm32f4xx.h:2078
#define TIM3
Definition: stm32f4xx.h:2038
#define TIM12
Definition: stm32f4xx.h:2043
#define TIM9
Definition: stm32f4xx.h:2091
#define TIM2
Definition: stm32f4xx.h:2037
#define TIM8
Definition: stm32f4xx.h:2079
#define TIM17
Definition: stm32f10x.h:1424
#define TIM15
Definition: stm32f10x.h:1422
#define TIM5
Definition: stm32f4xx.h:2040
#define TIM10
Definition: stm32f4xx.h:2092
#define TIM13
Definition: stm32f4xx.h:2044
#define TIM11
Definition: stm32f4xx.h:2093
#define TIM14
Definition: stm32f4xx.h:2045
#define TIM16
Definition: stm32f10x.h:1423

Definition at line 251 of file stm32f10x_tim.h.

#define IS_TIM_LIST9_PERIPH (   PERIPH)
Value:
(((PERIPH) == TIM1) || \
((PERIPH) == TIM2) || \
((PERIPH) == TIM3) || \
((PERIPH) == TIM4) || \
((PERIPH) == TIM5) || \
((PERIPH) == TIM6) || \
((PERIPH) == TIM7) || \
((PERIPH) == TIM8) || \
((PERIPH) == TIM15)|| \
((PERIPH) == TIM16)|| \
((PERIPH) == TIM17))
#define TIM4
Definition: stm32f4xx.h:2039
#define TIM1
Definition: stm32f4xx.h:2078
#define TIM3
Definition: stm32f4xx.h:2038
#define TIM2
Definition: stm32f4xx.h:2037
#define TIM8
Definition: stm32f4xx.h:2079
#define TIM17
Definition: stm32f10x.h:1424
#define TIM15
Definition: stm32f10x.h:1422
#define TIM6
Definition: stm32f4xx.h:2041
#define TIM5
Definition: stm32f4xx.h:2040
#define TIM7
Definition: stm32f4xx.h:2042
#define TIM16
Definition: stm32f10x.h:1423

Definition at line 268 of file stm32f10x_tim.h.

Function Documentation

void TIM_ARRPreloadConfig ( TIM_TypeDef TIMx,
FunctionalState  NewState 
)

Enables or disables TIMx peripheral Preload register on ARR.

Parameters
TIMxwhere x can be 1 to 14 to select the TIM peripheral.
NewStatenew state of the TIMx peripheral Preload register This parameter can be: ENABLE or DISABLE.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 6 ,7 ,8, 15, 16 or 17 to select the TIM peripheral.
NewStatenew state of the TIMx peripheral Preload register This parameter can be: ENABLE or DISABLE.
Return values
None
Parameters
TIMxwhere x can be 1 to 17 to select the TIM peripheral.
NewStatenew state of the TIMx peripheral Preload register This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 522 of file stm32f4xx_tim.c.

void TIM_BDTRConfig ( TIM_TypeDef TIMx,
TIM_BDTRInitTypeDef TIM_BDTRInitStruct 
)

Configures the Break feature, dead time, Lock level, OSSI/OSSR State and the AOE(automatic output enable).

Parameters
TIMxwhere x can be 1 or 8 to select the TIM
TIM_BDTRInitStructpointer to a TIM_BDTRInitTypeDef structure that contains the BDTR Register configuration information for the TIM peripheral.
Return values
None
Parameters
TIMxwhere x can be 1, 8, 15, 16 or 17 to select the TIM
TIM_BDTRInitStructpointer to a TIM_BDTRInitTypeDef structure that contains the BDTR Register configuration information for the TIM peripheral.
Return values
NoneConfigures the Break feature, dead time, Lock level, OSSI/OSSR State and the AOE(automatic output enable).
Parameters
TIMxwhere x can be 1 or 8 to select the TIM
TIM_BDTRInitStructpointer to a TIM_BDTRInitTypeDef structure that contains the BDTR Register configuration information for the TIM peripheral.
Return values
None

Definition at line 2221 of file stm32f4xx_tim.c.

void TIM_BDTRStructInit ( TIM_BDTRInitTypeDef TIM_BDTRInitStruct)

Fills each TIM_BDTRInitStruct member with its default value.

Parameters
TIM_BDTRInitStructpointer to a TIM_BDTRInitTypeDef structure which will be initialized.
Return values
None

Definition at line 2246 of file stm32f4xx_tim.c.

void TIM_Break1Cmd ( TIM_TypeDef TIMx,
FunctionalState  NewState 
)

Enables or disables the TIM Break1 input.

Parameters
TIMxwhere x can be 1, 8, 1, 16 or 17 to select the TIMx peripheral.
NewStatenew state of the TIM Break1 input. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 2781 of file stm32f30x_tim.c.

void TIM_Break1Config ( TIM_TypeDef TIMx,
uint32_t  TIM_Break1Polarity,
uint8_t  TIM_Break1Filter 
)

Configures the Break1 feature.

Parameters
TIMxwhere x can be 1 or 8 to select the TIM
TIM_Break1Polarityspecifies the Break1 polarity. This parameter can be one of the following values:
  • TIM_Break1Polarity_Low: Break1 input is active low
  • TIM_Break1Polarity_High: Break1 input is active high
TIM_Break1Filterspecifies the Break1 filter value. This parameter must be a value between 0x00 and 0x0F
Return values
None

Definition at line 2739 of file stm32f30x_tim.c.

void TIM_Break2Cmd ( TIM_TypeDef TIMx,
FunctionalState  NewState 
)

Enables or disables the TIM Break2 input.

Parameters
TIMxwhere x can be 1 or 8 to select the TIMx peripheral.
NewStatenew state of the TIM Break2 input. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 2806 of file stm32f30x_tim.c.

void TIM_Break2Config ( TIM_TypeDef TIMx,
uint32_t  TIM_Break2Polarity,
uint8_t  TIM_Break2Filter 
)

Configures the Break2 feature.

Parameters
TIMxwhere x can be 1 or 8 to select the TIM
TIM_Break2Polarityspecifies the Break2 polarity. This parameter can be one of the following values:
  • TIM_Break2Polarity_Low: Break2 input is active low
  • TIM_Break2Polarity_High: Break2 input is active high
TIM_Break2Filterspecifies the Break2 filter value. This parameter must be a value between 0x00 and 0x0F
Return values
None

Definition at line 2761 of file stm32f30x_tim.c.

void TIM_CCPreloadControl ( TIM_TypeDef TIMx,
FunctionalState  NewState 
)

Sets or Resets the TIM peripheral Capture Compare Preload Control bit.

Parameters
TIMxwhere x can be 1 or 8 to select the TIMx peripheral
NewStatenew state of the Capture Compare Preload Control bit This parameter can be: ENABLE or DISABLE.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 8 or 15 to select the TIMx peripheral
NewStatenew state of the Capture Compare Preload Control bit This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 2315 of file stm32f4xx_tim.c.

void TIM_CCxCmd ( TIM_TypeDef TIMx,
uint16_t  TIM_Channel,
uint16_t  TIM_CCx 
)

Enables or disables the TIM Capture Compare Channel x.

Parameters
TIMxwhere x can be 1 to 14 except 6 and 7, to select the TIM peripheral.
TIM_Channelspecifies the TIM Channel This parameter can be one of the following values:
  • TIM_Channel_1: TIM Channel 1
  • TIM_Channel_2: TIM Channel 2
  • TIM_Channel_3: TIM Channel 3
  • TIM_Channel_4: TIM Channel 4
TIM_CCxspecifies the TIM Channel CCxE bit new state. This parameter can be: TIM_CCx_Enable or TIM_CCx_Disable.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 8, 15, 16 or 17 to select the TIM peripheral.
TIM_Channelspecifies the TIM Channel This parameter can be one of the following values:
  • TIM_Channel_1: TIM Channel 1
  • TIM_Channel_2: TIM Channel 2
  • TIM_Channel_3: TIM Channel 3
  • TIM_Channel_4: TIM Channel 4
  • TIM_Channel_5: TIM Channel 5
  • TIM_Channel_6: TIM Channel 6
TIM_CCxspecifies the TIM Channel CCxE bit new state. This parameter can be: TIM_CCx_Enable or TIM_CCx_Disable.
Return values
None
Parameters
TIMxwhere x can be 1 to 17 except 6 and 7 to select the TIM peripheral.
TIM_Channelspecifies the TIM Channel This parameter can be one of the following values:
  • TIM_Channel_1: TIM Channel 1
  • TIM_Channel_2: TIM Channel 2
  • TIM_Channel_3: TIM Channel 3
  • TIM_Channel_4: TIM Channel 4
TIM_CCxspecifies the TIM Channel CCxE bit new state. This parameter can be: TIM_CCx_Enable or TIM_CCx_Disable.
Return values
None

Definition at line 1786 of file stm32f4xx_tim.c.

void TIM_CCxNCmd ( TIM_TypeDef TIMx,
uint16_t  TIM_Channel,
uint16_t  TIM_CCxN 
)

Enables or disables the TIM Capture Compare Channel xN.

Parameters
TIMxwhere x can be 1 or 8 to select the TIM peripheral.
TIM_Channelspecifies the TIM Channel This parameter can be one of the following values:
  • TIM_Channel_1: TIM Channel 1
  • TIM_Channel_2: TIM Channel 2
  • TIM_Channel_3: TIM Channel 3
TIM_CCxNspecifies the TIM Channel CCxNE bit new state. This parameter can be: TIM_CCxN_Enable or TIM_CCxN_Disable.
Return values
None
Parameters
TIMxwhere x can be 1, 8, 15, 16 or 17 to select the TIM peripheral.
TIM_Channelspecifies the TIM Channel This parameter can be one of the following values:
  • TIM_Channel_1: TIM Channel 1
  • TIM_Channel_2: TIM Channel 2
  • TIM_Channel_3: TIM Channel 3
TIM_CCxNspecifies the TIM Channel CCxNE bit new state. This parameter can be: TIM_CCxN_Enable or TIM_CCxN_Disable.
Return values
None
Parameters
TIMxwhere x can be 1, 8, 15, 16 or 17 to select the TIM peripheral.
TIM_Channelspecifies the TIM Channel This parameter can be one of the following values:
  • TIM_Channel_1: TIM Channel 1
  • TIM_Channel_2: TIM Channel 2
  • TIM_Channel_3: TIM Channel 3
TIM_CCxNspecifies the TIM Channel CCxNE bit new state. This parameter can be: TIM_CCxN_Enable or TIM_CCxN_Disable.
Return values
None

Definition at line 1816 of file stm32f4xx_tim.c.

void TIM_ClearFlag ( TIM_TypeDef TIMx,
uint16_t  TIM_FLAG 
)

Clears the TIMx's pending flags.

Parameters
TIMxwhere x can be 1 to 14 to select the TIM peripheral.
TIM_FLAGspecifies the flag bit to clear. This parameter can be any combination of the following values:
  • TIM_FLAG_Update: TIM update Flag
  • TIM_FLAG_CC1: TIM Capture Compare 1 Flag
  • TIM_FLAG_CC2: TIM Capture Compare 2 Flag
  • TIM_FLAG_CC3: TIM Capture Compare 3 Flag
  • TIM_FLAG_CC4: TIM Capture Compare 4 Flag
  • TIM_FLAG_COM: TIM Commutation Flag
  • TIM_FLAG_Trigger: TIM Trigger Flag
  • TIM_FLAG_Break: TIM Break Flag
  • TIM_FLAG_CC1OF: TIM Capture Compare 1 over capture Flag
  • TIM_FLAG_CC2OF: TIM Capture Compare 2 over capture Flag
  • TIM_FLAG_CC3OF: TIM Capture Compare 3 over capture Flag
  • TIM_FLAG_CC4OF: TIM Capture Compare 4 over capture Flag
Note
TIM6 and TIM7 can have only one update flag.
TIM_FLAG_COM and TIM_FLAG_Break are used only with TIM1 and TIM8.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 6, 7, 8, 15, 16 or 17 to select the TIM peripheral.
TIM_FLAGspecifies the flag bit to clear. This parameter can be any combination of the following values:
  • TIM_FLAG_Update: TIM update Flag
  • TIM_FLAG_CC1: TIM Capture Compare 1 Flag
  • TIM_FLAG_CC2: TIM Capture Compare 2 Flag
  • TIM_FLAG_CC3: TIM Capture Compare 3 Flag
  • TIM_FLAG_CC4: TIM Capture Compare 4 Flag
  • TIM_FLAG_CC5: TIM Capture Compare 5 Flag
  • TIM_FLAG_CC6: TIM Capture Compare 6 Flag
  • TIM_FLAG_COM: TIM Commutation Flag
  • TIM_FLAG_Trigger: TIM Trigger Flag
  • TIM_FLAG_Break: TIM Break Flag
  • TIM_FLAG_CC1OF: TIM Capture Compare 1 over capture Flag
  • TIM_FLAG_CC2OF: TIM Capture Compare 2 over capture Flag
  • TIM_FLAG_CC3OF: TIM Capture Compare 3 over capture Flag
  • TIM_FLAG_CC4OF: TIM Capture Compare 4 over capture Flag
Note
TIM6 and TIM7 can have only one update flag.
TIM_FLAG_COM and TIM_FLAG_Break are used only with TIM1 and TIM8.
Return values
None
Parameters
TIMxwhere x can be 1 to 17 to select the TIM peripheral.
TIM_FLAGspecifies the flag bit to clear. This parameter can be any combination of the following values:
  • TIM_FLAG_Update: TIM update Flag
  • TIM_FLAG_CC1: TIM Capture Compare 1 Flag
  • TIM_FLAG_CC2: TIM Capture Compare 2 Flag
  • TIM_FLAG_CC3: TIM Capture Compare 3 Flag
  • TIM_FLAG_CC4: TIM Capture Compare 4 Flag
  • TIM_FLAG_COM: TIM Commutation Flag
  • TIM_FLAG_Trigger: TIM Trigger Flag
  • TIM_FLAG_Break: TIM Break Flag
  • TIM_FLAG_CC1OF: TIM Capture Compare 1 overcapture Flag
  • TIM_FLAG_CC2OF: TIM Capture Compare 2 overcapture Flag
  • TIM_FLAG_CC3OF: TIM Capture Compare 3 overcapture Flag
  • TIM_FLAG_CC4OF: TIM Capture Compare 4 overcapture Flag
Note
  • TIM6 and TIM7 can have only one update flag.
  • TIM9, TIM12 and TIM15 can have only TIM_FLAG_Update, TIM_FLAG_CC1, TIM_FLAG_CC2 or TIM_FLAG_Trigger.
  • TIM10, TIM11, TIM13, TIM14, TIM16 and TIM17 can have TIM_FLAG_Update or TIM_FLAG_CC1.
  • TIM_FLAG_Break is used only with TIM1, TIM8 and TIM15.
  • TIM_FLAG_COM is used only with TIM1, TIM8, TIM15, TIM16 and TIM17.
Return values
None

Definition at line 2485 of file stm32f4xx_tim.c.

void TIM_ClearITPendingBit ( TIM_TypeDef TIMx,
uint16_t  TIM_IT 
)

Clears the TIMx's interrupt pending bits.

Parameters
TIMxwhere x can be 1 to 14 to select the TIM peripheral.
TIM_ITspecifies the pending bit to clear. This parameter can be any combination of the following values:
  • TIM_IT_Update: TIM1 update Interrupt source
  • TIM_IT_CC1: TIM Capture Compare 1 Interrupt source
  • TIM_IT_CC2: TIM Capture Compare 2 Interrupt source
  • TIM_IT_CC3: TIM Capture Compare 3 Interrupt source
  • TIM_IT_CC4: TIM Capture Compare 4 Interrupt source
  • TIM_IT_COM: TIM Commutation Interrupt source
  • TIM_IT_Trigger: TIM Trigger Interrupt source
  • TIM_IT_Break: TIM Break Interrupt source
Note
TIM6 and TIM7 can generate only an update interrupt.
TIM_IT_COM and TIM_IT_Break are used only with TIM1 and TIM8.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 6, 7, 8, 15, 16 or 17 to select the TIM peripheral.
TIM_ITspecifies the pending bit to clear. This parameter can be any combination of the following values:
  • TIM_IT_Update: TIM1 update Interrupt source
  • TIM_IT_CC1: TIM Capture Compare 1 Interrupt source
  • TIM_IT_CC2: TIM Capture Compare 2 Interrupt source
  • TIM_IT_CC3: TIM Capture Compare 3 Interrupt source
  • TIM_IT_CC4: TIM Capture Compare 4 Interrupt source
  • TIM_IT_COM: TIM Commutation Interrupt source
  • TIM_IT_Trigger: TIM Trigger Interrupt source
  • TIM_IT_Break: TIM Break Interrupt source
Note
TIM6 and TIM7 can generate only an update interrupt.
TIM_IT_COM and TIM_IT_Break are used only with TIM1 and TIM8.
Return values
None
Parameters
TIMxwhere x can be 1 to 17 to select the TIM peripheral.
TIM_ITspecifies the pending bit to clear. This parameter can be any combination of the following values:
  • TIM_IT_Update: TIM1 update Interrupt source
  • TIM_IT_CC1: TIM Capture Compare 1 Interrupt source
  • TIM_IT_CC2: TIM Capture Compare 2 Interrupt source
  • TIM_IT_CC3: TIM Capture Compare 3 Interrupt source
  • TIM_IT_CC4: TIM Capture Compare 4 Interrupt source
  • TIM_IT_COM: TIM Commutation Interrupt source
  • TIM_IT_Trigger: TIM Trigger Interrupt source
  • TIM_IT_Break: TIM Break Interrupt source
Note
  • TIM6 and TIM7 can generate only an update interrupt.
  • TIM9, TIM12 and TIM15 can have only TIM_IT_Update, TIM_IT_CC1, TIM_IT_CC2 or TIM_IT_Trigger.
  • TIM10, TIM11, TIM13, TIM14, TIM16 and TIM17 can have TIM_IT_Update or TIM_IT_CC1.
  • TIM_IT_Break is used only with TIM1, TIM8 and TIM15.
  • TIM_IT_COM is used only with TIM1, TIM8, TIM15, TIM16 and TIM17.
Return values
None

Definition at line 2554 of file stm32f4xx_tim.c.

void TIM_ClearOC1Ref ( TIM_TypeDef TIMx,
uint16_t  TIM_OCClear 
)

Clears or safeguards the OCREF1 signal on an external event.

Parameters
TIMxwhere x can be 1 to 14 except 6 and 7, to select the TIM peripheral.
TIM_OCClearnew state of the Output Compare Clear Enable Bit. This parameter can be one of the following values:
  • TIM_OCClear_Enable: TIM Output clear enable
  • TIM_OCClear_Disable: TIM Output clear disable
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 8, 15, 16 or 17 to select the TIM peripheral.
TIM_OCClearnew state of the Output Compare Clear Enable Bit. This parameter can be one of the following values:
  • TIM_OCClear_Enable: TIM Output clear enable
  • TIM_OCClear_Disable: TIM Output clear disable
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_OCClearnew state of the Output Compare Clear Enable Bit. This parameter can be one of the following values:
  • TIM_OCClear_Enable: TIM Output clear enable
  • TIM_OCClear_Disable: TIM Output clear disable
Return values
None

Definition at line 1476 of file stm32f4xx_tim.c.

void TIM_ClearOC2Ref ( TIM_TypeDef TIMx,
uint16_t  TIM_OCClear 
)

Clears or safeguards the OCREF2 signal on an external event.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM peripheral.
TIM_OCClearnew state of the Output Compare Clear Enable Bit. This parameter can be one of the following values:
  • TIM_OCClear_Enable: TIM Output clear enable
  • TIM_OCClear_Disable: TIM Output clear disable
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 8 or 15 to select the TIM peripheral.
TIM_OCClearnew state of the Output Compare Clear Enable Bit. This parameter can be one of the following values:
  • TIM_OCClear_Enable: TIM Output clear enable
  • TIM_OCClear_Disable: TIM Output clear disable
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_OCClearnew state of the Output Compare Clear Enable Bit. This parameter can be one of the following values:
  • TIM_OCClear_Enable: TIM Output clear enable
  • TIM_OCClear_Disable: TIM Output clear disable
Return values
None

Definition at line 1506 of file stm32f4xx_tim.c.

void TIM_ClearOC3Ref ( TIM_TypeDef TIMx,
uint16_t  TIM_OCClear 
)

Clears or safeguards the OCREF3 signal on an external event.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_OCClearnew state of the Output Compare Clear Enable Bit. This parameter can be one of the following values:
  • TIM_OCClear_Enable: TIM Output clear enable
  • TIM_OCClear_Disable: TIM Output clear disable
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4 or 8 to select the TIM peripheral.
TIM_OCClearnew state of the Output Compare Clear Enable Bit. This parameter can be one of the following values:
  • TIM_OCClear_Enable: TIM Output clear enable
  • TIM_OCClear_Disable: TIM Output clear disable
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_OCClearnew state of the Output Compare Clear Enable Bit. This parameter can be one of the following values:
  • TIM_OCClear_Enable: TIM Output clear enable
  • TIM_OCClear_Disable: TIM Output clear disable
Return values
None

Definition at line 1535 of file stm32f4xx_tim.c.

void TIM_ClearOC4Ref ( TIM_TypeDef TIMx,
uint16_t  TIM_OCClear 
)

Clears or safeguards the OCREF4 signal on an external event.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_OCClearnew state of the Output Compare Clear Enable Bit. This parameter can be one of the following values:
  • TIM_OCClear_Enable: TIM Output clear enable
  • TIM_OCClear_Disable: TIM Output clear disable
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4 or 8 to select the TIM peripheral.
TIM_OCClearnew state of the Output Compare Clear Enable Bit. This parameter can be one of the following values:
  • TIM_OCClear_Enable: TIM Output clear enable
  • TIM_OCClear_Disable: TIM Output clear disable
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_OCClearnew state of the Output Compare Clear Enable Bit. This parameter can be one of the following values:
  • TIM_OCClear_Enable: TIM Output clear enable
  • TIM_OCClear_Disable: TIM Output clear disable
Return values
None

Definition at line 1564 of file stm32f4xx_tim.c.

void TIM_ClearOC5Ref ( TIM_TypeDef TIMx,
uint16_t  TIM_OCClear 
)

Clears or safeguards the OCREF5 signal on an external event.

Parameters
TIMxwhere x can be 1 or 8 to select the TIM peripheral.
TIM_OCClearnew state of the Output Compare Clear Enable Bit. This parameter can be one of the following values:
  • TIM_OCClear_Enable: TIM Output clear enable
  • TIM_OCClear_Disable: TIM Output clear disable
Return values
None

Definition at line 1952 of file stm32f30x_tim.c.

void TIM_ClearOC6Ref ( TIM_TypeDef TIMx,
uint16_t  TIM_OCClear 
)

Clears or safeguards the OCREF6 signal on an external event.

Parameters
TIMxwhere x can be 1 or 8 to select the TIM peripheral.
TIM_OCClearnew state of the Output Compare Clear Enable Bit. This parameter can be one of the following values:
  • TIM_OCClear_Enable: TIM Output clear enable
  • TIM_OCClear_Disable: TIM Output clear disable
Return values
None

Definition at line 1981 of file stm32f30x_tim.c.

void TIM_Cmd ( TIM_TypeDef TIMx,
FunctionalState  NewState 
)

Enables or disables the specified TIM peripheral.

Parameters
TIMxwhere x can be 1 to 14 to select the TIMx peripheral.
NewStatenew state of the TIMx peripheral. This parameter can be: ENABLE or DISABLE.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 6, 7, 8, 15, 16 or 17 to select the TIMx peripheral.
NewStatenew state of the TIMx peripheral. This parameter can be: ENABLE or DISABLE.
Return values
None
Parameters
TIMxwhere x can be 1 to 17 to select the TIMx peripheral.
NewStatenew state of the TIMx peripheral. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 592 of file stm32f4xx_tim.c.

void TIM_CounterModeConfig ( TIM_TypeDef TIMx,
uint16_t  TIM_CounterMode 
)

Specifies the TIMx Counter Mode to be used.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_CounterModespecifies the Counter Mode to be used This parameter can be one of the following values:
  • TIM_CounterMode_Up: TIM Up Counting Mode
  • TIM_CounterMode_Down: TIM Down Counting Mode
  • TIM_CounterMode_CenterAligned1: TIM Center Aligned Mode1
  • TIM_CounterMode_CenterAligned2: TIM Center Aligned Mode2
  • TIM_CounterMode_CenterAligned3: TIM Center Aligned Mode3
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4 or 8 to select the TIM peripheral.
TIM_CounterModespecifies the Counter Mode to be used This parameter can be one of the following values:
  • TIM_CounterMode_Up: TIM Up Counting Mode
  • TIM_CounterMode_Down: TIM Down Counting Mode
  • TIM_CounterMode_CenterAligned1: TIM Center Aligned Mode1
  • TIM_CounterMode_CenterAligned2: TIM Center Aligned Mode2
  • TIM_CounterMode_CenterAligned3: TIM Center Aligned Mode3
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_CounterModespecifies the Counter Mode to be used This parameter can be one of the following values:
  • TIM_CounterMode_Up: TIM Up Counting Mode
  • TIM_CounterMode_Down: TIM Down Counting Mode
  • TIM_CounterMode_CenterAligned1: TIM Center Aligned Mode1
  • TIM_CounterMode_CenterAligned2: TIM Center Aligned Mode2
  • TIM_CounterMode_CenterAligned3: TIM Center Aligned Mode3
Return values
None

Definition at line 383 of file stm32f4xx_tim.c.

void TIM_CtrlPWMOutputs ( TIM_TypeDef TIMx,
FunctionalState  NewState 
)

Enables or disables the TIM peripheral Main Outputs.

Parameters
TIMxwhere x can be 1 or 8 to select the TIMx peripheral.
NewStatenew state of the TIM peripheral Main Outputs. This parameter can be: ENABLE or DISABLE.
Return values
None
Parameters
TIMxwhere x can be 1, 8, 15, 16 or 17 to select the TIMx peripheral.
NewStatenew state of the TIM peripheral Main Outputs. This parameter can be: ENABLE or DISABLE.
Return values
None
Parameters
TIMxwhere x can be 1, 8, 15, 16 or 17 to select the TIMx peripheral.
NewStatenew state of the TIM peripheral Main Outputs. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 2265 of file stm32f4xx_tim.c.

void TIM_DeInit ( TIM_TypeDef TIMx)

Deinitializes the TIMx peripheral registers to their default reset values.

Parameters
TIMxwhere x can be 1 to 14 to select the TIM peripheral.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 6 ,7 ,8, 15, 16 or 17 to select the TIM peripheral.
Return values
None
Parameters
TIMxwhere x can be 1 to 17 to select the TIM peripheral.
Return values
None

Definition at line 200 of file stm32f4xx_tim.c.

void TIM_DMACmd ( TIM_TypeDef TIMx,
uint16_t  TIM_DMASource,
FunctionalState  NewState 
)

Enables or disables the TIMx's DMA Requests.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 6, 7 or 8 to select the TIM peripheral.
TIM_DMASourcespecifies the DMA Request sources. This parameter can be any combination of the following values:
  • TIM_DMA_Update: TIM update Interrupt source
  • TIM_DMA_CC1: TIM Capture Compare 1 DMA source
  • TIM_DMA_CC2: TIM Capture Compare 2 DMA source
  • TIM_DMA_CC3: TIM Capture Compare 3 DMA source
  • TIM_DMA_CC4: TIM Capture Compare 4 DMA source
  • TIM_DMA_COM: TIM Commutation DMA source
  • TIM_DMA_Trigger: TIM Trigger DMA source
NewStatenew state of the DMA Request sources. This parameter can be: ENABLE or DISABLE.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 6, 7, 8, 15, 16 or 17 to select the TIM peripheral.
TIM_DMASourcespecifies the DMA Request sources. This parameter can be any combination of the following values:
  • TIM_DMA_Update: TIM update Interrupt source
  • TIM_DMA_CC1: TIM Capture Compare 1 DMA source
  • TIM_DMA_CC2: TIM Capture Compare 2 DMA source
  • TIM_DMA_CC3: TIM Capture Compare 3 DMA source
  • TIM_DMA_CC4: TIM Capture Compare 4 DMA source
  • TIM_DMA_COM: TIM Commutation DMA source
  • TIM_DMA_Trigger: TIM Trigger DMA source
NewStatenew state of the DMA Request sources. This parameter can be: ENABLE or DISABLE.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 6, 7, 8, 15, 16 or 17 to select the TIM peripheral.
TIM_DMASourcespecifies the DMA Request sources. This parameter can be any combination of the following values:
  • TIM_DMA_Update: TIM update Interrupt source
  • TIM_DMA_CC1: TIM Capture Compare 1 DMA source
  • TIM_DMA_CC2: TIM Capture Compare 2 DMA source
  • TIM_DMA_CC3: TIM Capture Compare 3 DMA source
  • TIM_DMA_CC4: TIM Capture Compare 4 DMA source
  • TIM_DMA_COM: TIM Commutation DMA source
  • TIM_DMA_Trigger: TIM Trigger DMA source
NewStatenew state of the DMA Request sources. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 2618 of file stm32f4xx_tim.c.

void TIM_DMAConfig ( TIM_TypeDef TIMx,
uint16_t  TIM_DMABase,
uint16_t  TIM_DMABurstLength 
)

Configures the TIMx's DMA interface.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_DMABaseDMA Base address. This parameter can be one of the following values:
  • TIM_DMABase_CR1
  • TIM_DMABase_CR2
  • TIM_DMABase_SMCR
  • TIM_DMABase_DIER
  • TIM1_DMABase_SR
  • TIM_DMABase_EGR
  • TIM_DMABase_CCMR1
  • TIM_DMABase_CCMR2
  • TIM_DMABase_CCER
  • TIM_DMABase_CNT
  • TIM_DMABase_PSC
  • TIM_DMABase_ARR
  • TIM_DMABase_RCR
  • TIM_DMABase_CCR1
  • TIM_DMABase_CCR2
  • TIM_DMABase_CCR3
  • TIM_DMABase_CCR4
  • TIM_DMABase_BDTR
  • TIM_DMABase_DCR
TIM_DMABurstLengthDMA Burst length. This parameter can be one value between: TIM_DMABurstLength_1Transfer and TIM_DMABurstLength_18Transfers.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4 or 8 to select the TIM peripheral.
TIM_DMABaseDMA Base address. This parameter can be one of the following values:
  • TIM_DMABase_CR1
  • TIM_DMABase_CR2
  • TIM_DMABase_SMCR
  • TIM_DMABase_DIER
  • TIM1_DMABase_SR
  • TIM_DMABase_EGR
  • TIM_DMABase_CCMR1
  • TIM_DMABase_CCMR2
  • TIM_DMABase_CCER
  • TIM_DMABase_CNT
  • TIM_DMABase_PSC
  • TIM_DMABase_ARR
  • TIM_DMABase_RCR
  • TIM_DMABase_CCR1
  • TIM_DMABase_CCR2
  • TIM_DMABase_CCR3
  • TIM_DMABase_CCR4
  • TIM_DMABase_BDTR
  • TIM_DMABase_DCR
TIM_DMABurstLengthDMA Burst length. This parameter can be one value between: TIM_DMABurstLength_1Transfer and TIM_DMABurstLength_18Transfers.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 8, 15, 16 or 17 to select the TIM peripheral.
TIM_DMABaseDMA Base address. This parameter can be one of the following values:
  • TIM_DMABase_CR, TIM_DMABase_CR2, TIM_DMABase_SMCR, TIM_DMABase_DIER, TIM1_DMABase_SR, TIM_DMABase_EGR, TIM_DMABase_CCMR1, TIM_DMABase_CCMR2, TIM_DMABase_CCER, TIM_DMABase_CNT, TIM_DMABase_PSC, TIM_DMABase_ARR, TIM_DMABase_RCR, TIM_DMABase_CCR1, TIM_DMABase_CCR2, TIM_DMABase_CCR3, TIM_DMABase_CCR4, TIM_DMABase_BDTR, TIM_DMABase_DCR.
TIM_DMABurstLengthDMA Burst length. This parameter can be one value between: TIM_DMABurstLength_1Transfer and TIM_DMABurstLength_18Transfers.
Return values
None

Definition at line 2591 of file stm32f4xx_tim.c.

void TIM_EncoderInterfaceConfig ( TIM_TypeDef TIMx,
uint16_t  TIM_EncoderMode,
uint16_t  TIM_IC1Polarity,
uint16_t  TIM_IC2Polarity 
)

Configures the TIMx Encoder Interface.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM peripheral.
TIM_EncoderModespecifies the TIMx Encoder Mode. This parameter can be one of the following values:
  • TIM_EncoderMode_TI1: Counter counts on TI1FP1 edge depending on TI2FP2 level.
  • TIM_EncoderMode_TI2: Counter counts on TI2FP2 edge depending on TI1FP1 level.
  • TIM_EncoderMode_TI12: Counter counts on both TI1FP1 and TI2FP2 edges depending on the level of the other input.
TIM_IC1Polarityspecifies the IC1 Polarity This parameter can be one of the following values:
  • TIM_ICPolarity_Falling: IC Falling edge.
  • TIM_ICPolarity_Rising: IC Rising edge.
TIM_IC2Polarityspecifies the IC2 Polarity This parameter can be one of the following values:
  • TIM_ICPolarity_Falling: IC Falling edge.
  • TIM_ICPolarity_Rising: IC Rising edge.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4 or 8 to select the TIM peripheral.
TIM_EncoderModespecifies the TIMx Encoder Mode. This parameter can be one of the following values:
  • TIM_EncoderMode_TI1: Counter counts on TI1FP1 edge depending on TI2FP2 level.
  • TIM_EncoderMode_TI2: Counter counts on TI2FP2 edge depending on TI1FP1 level.
  • TIM_EncoderMode_TI12: Counter counts on both TI1FP1 and TI2FP2 edges depending on the level of the other input.
TIM_IC1Polarityspecifies the IC1 Polarity This parameter can be one of the following values:
  • TIM_ICPolarity_Falling: IC Falling edge.
  • TIM_ICPolarity_Rising: IC Rising edge.
TIM_IC2Polarityspecifies the IC2 Polarity This parameter can be one of the following values:
  • TIM_ICPolarity_Falling: IC Falling edge.
  • TIM_ICPolarity_Rising: IC Rising edge.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_EncoderModespecifies the TIMx Encoder Mode. This parameter can be one of the following values:
  • TIM_EncoderMode_TI1: Counter counts on TI1FP1 edge depending on TI2FP2 level.
  • TIM_EncoderMode_TI2: Counter counts on TI2FP2 edge depending on TI1FP1 level.
  • TIM_EncoderMode_TI12: Counter counts on both TI1FP1 and TI2FP2 edges depending on the level of the other input.
TIM_IC1Polarityspecifies the IC1 Polarity This parameter can be one of the following values:
  • TIM_ICPolarity_Falling: IC Falling edge.
  • TIM_ICPolarity_Rising: IC Rising edge.
TIM_IC2Polarityspecifies the IC2 Polarity This parameter can be one of the following values:
  • TIM_ICPolarity_Falling: IC Falling edge.
  • TIM_ICPolarity_Rising: IC Rising edge.
Return values
None

Definition at line 3070 of file stm32f4xx_tim.c.

void TIM_ETRClockMode1Config ( TIM_TypeDef TIMx,
uint16_t  TIM_ExtTRGPrescaler,
uint16_t  TIM_ExtTRGPolarity,
uint16_t  ExtTRGFilter 
)

Configures the External clock Mode1.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_ExtTRGPrescalerThe external Trigger Prescaler. This parameter can be one of the following values:
  • TIM_ExtTRGPSC_OFF: ETRP Prescaler OFF.
  • TIM_ExtTRGPSC_DIV2: ETRP frequency divided by 2.
  • TIM_ExtTRGPSC_DIV4: ETRP frequency divided by 4.
  • TIM_ExtTRGPSC_DIV8: ETRP frequency divided by 8.
TIM_ExtTRGPolarityThe external Trigger Polarity. This parameter can be one of the following values:
  • TIM_ExtTRGPolarity_Inverted: active low or falling edge active.
  • TIM_ExtTRGPolarity_NonInverted: active high or rising edge active.
ExtTRGFilterExternal Trigger Filter. This parameter must be a value between 0x00 and 0x0F
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4 or 8 to select the TIM peripheral.
TIM_ExtTRGPrescalerThe external Trigger Prescaler. This parameter can be one of the following values:
  • TIM_ExtTRGPSC_OFF: ETRP Prescaler OFF.
  • TIM_ExtTRGPSC_DIV2: ETRP frequency divided by 2.
  • TIM_ExtTRGPSC_DIV4: ETRP frequency divided by 4.
  • TIM_ExtTRGPSC_DIV8: ETRP frequency divided by 8.
TIM_ExtTRGPolarityThe external Trigger Polarity. This parameter can be one of the following values:
  • TIM_ExtTRGPolarity_Inverted: active low or falling edge active.
  • TIM_ExtTRGPolarity_NonInverted: active high or rising edge active.
ExtTRGFilterExternal Trigger Filter. This parameter must be a value between 0x00 and 0x0F
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_ExtTRGPrescalerThe external Trigger Prescaler. This parameter can be one of the following values:
  • TIM_ExtTRGPSC_OFF: ETRP Prescaler OFF.
  • TIM_ExtTRGPSC_DIV2: ETRP frequency divided by 2.
  • TIM_ExtTRGPSC_DIV4: ETRP frequency divided by 4.
  • TIM_ExtTRGPSC_DIV8: ETRP frequency divided by 8.
TIM_ExtTRGPolarityThe external Trigger Polarity. This parameter can be one of the following values:
  • TIM_ExtTRGPolarity_Inverted: active low or falling edge active.
  • TIM_ExtTRGPolarity_NonInverted: active high or rising edge active.
ExtTRGFilterExternal Trigger Filter. This parameter must be a value between 0x00 and 0x0F
Return values
None

Definition at line 2774 of file stm32f4xx_tim.c.

void TIM_ETRClockMode2Config ( TIM_TypeDef TIMx,
uint16_t  TIM_ExtTRGPrescaler,
uint16_t  TIM_ExtTRGPolarity,
uint16_t  ExtTRGFilter 
)

Configures the External clock Mode2.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_ExtTRGPrescalerThe external Trigger Prescaler. This parameter can be one of the following values:
  • TIM_ExtTRGPSC_OFF: ETRP Prescaler OFF.
  • TIM_ExtTRGPSC_DIV2: ETRP frequency divided by 2.
  • TIM_ExtTRGPSC_DIV4: ETRP frequency divided by 4.
  • TIM_ExtTRGPSC_DIV8: ETRP frequency divided by 8.
TIM_ExtTRGPolarityThe external Trigger Polarity. This parameter can be one of the following values:
  • TIM_ExtTRGPolarity_Inverted: active low or falling edge active.
  • TIM_ExtTRGPolarity_NonInverted: active high or rising edge active.
ExtTRGFilterExternal Trigger Filter. This parameter must be a value between 0x00 and 0x0F
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4 or 8 to select the TIM peripheral.
TIM_ExtTRGPrescalerThe external Trigger Prescaler. This parameter can be one of the following values:
  • TIM_ExtTRGPSC_OFF: ETRP Prescaler OFF.
  • TIM_ExtTRGPSC_DIV2: ETRP frequency divided by 2.
  • TIM_ExtTRGPSC_DIV4: ETRP frequency divided by 4.
  • TIM_ExtTRGPSC_DIV8: ETRP frequency divided by 8.
TIM_ExtTRGPolarityThe external Trigger Polarity. This parameter can be one of the following values:
  • TIM_ExtTRGPolarity_Inverted: active low or falling edge active.
  • TIM_ExtTRGPolarity_NonInverted: active high or rising edge active.
ExtTRGFilterExternal Trigger Filter. This parameter must be a value between 0x00 and 0x0F
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_ExtTRGPrescalerThe external Trigger Prescaler. This parameter can be one of the following values:
  • TIM_ExtTRGPSC_OFF: ETRP Prescaler OFF.
  • TIM_ExtTRGPSC_DIV2: ETRP frequency divided by 2.
  • TIM_ExtTRGPSC_DIV4: ETRP frequency divided by 4.
  • TIM_ExtTRGPSC_DIV8: ETRP frequency divided by 8.
TIM_ExtTRGPolarityThe external Trigger Polarity. This parameter can be one of the following values:
  • TIM_ExtTRGPolarity_Inverted: active low or falling edge active.
  • TIM_ExtTRGPolarity_NonInverted: active high or rising edge active.
ExtTRGFilterExternal Trigger Filter. This parameter must be a value between 0x00 and 0x0F
Return values
None

Definition at line 2821 of file stm32f4xx_tim.c.

void TIM_ETRConfig ( TIM_TypeDef TIMx,
uint16_t  TIM_ExtTRGPrescaler,
uint16_t  TIM_ExtTRGPolarity,
uint16_t  ExtTRGFilter 
)

Configures the TIMx External Trigger (ETR).

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_ExtTRGPrescalerThe external Trigger Prescaler. This parameter can be one of the following values:
  • TIM_ExtTRGPSC_OFF: ETRP Prescaler OFF.
  • TIM_ExtTRGPSC_DIV2: ETRP frequency divided by 2.
  • TIM_ExtTRGPSC_DIV4: ETRP frequency divided by 4.
  • TIM_ExtTRGPSC_DIV8: ETRP frequency divided by 8.
TIM_ExtTRGPolarityThe external Trigger Polarity. This parameter can be one of the following values:
  • TIM_ExtTRGPolarity_Inverted: active low or falling edge active.
  • TIM_ExtTRGPolarity_NonInverted: active high or rising edge active.
ExtTRGFilterExternal Trigger Filter. This parameter must be a value between 0x00 and 0x0F
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4 or 8 to select the TIM peripheral.
TIM_ExtTRGPrescalerThe external Trigger Prescaler. This parameter can be one of the following values:
  • TIM_ExtTRGPSC_OFF: ETRP Prescaler OFF.
  • TIM_ExtTRGPSC_DIV2: ETRP frequency divided by 2.
  • TIM_ExtTRGPSC_DIV4: ETRP frequency divided by 4.
  • TIM_ExtTRGPSC_DIV8: ETRP frequency divided by 8.
TIM_ExtTRGPolarityThe external Trigger Polarity. This parameter can be one of the following values:
  • TIM_ExtTRGPolarity_Inverted: active low or falling edge active.
  • TIM_ExtTRGPolarity_NonInverted: active high or rising edge active.
ExtTRGFilterExternal Trigger Filter. This parameter must be a value between 0x00 and 0x0F
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_ExtTRGPrescalerThe external Trigger Prescaler. This parameter can be one of the following values:
  • TIM_ExtTRGPSC_OFF: ETRP Prescaler OFF.
  • TIM_ExtTRGPSC_DIV2: ETRP frequency divided by 2.
  • TIM_ExtTRGPSC_DIV4: ETRP frequency divided by 4.
  • TIM_ExtTRGPSC_DIV8: ETRP frequency divided by 8.
TIM_ExtTRGPolarityThe external Trigger Polarity. This parameter can be one of the following values:
  • TIM_ExtTRGPolarity_Inverted: active low or falling edge active.
  • TIM_ExtTRGPolarity_NonInverted: active high or rising edge active.
ExtTRGFilterExternal Trigger Filter. This parameter must be a value between 0x00 and 0x0F
Return values
None

Definition at line 3012 of file stm32f4xx_tim.c.

void TIM_ForcedOC1Config ( TIM_TypeDef TIMx,
uint16_t  TIM_ForcedAction 
)

Forces the TIMx output 1 waveform to active or inactive level.

Parameters
TIMxwhere x can be 1 to 14 except 6 and 7, to select the TIM peripheral.
TIM_ForcedActionspecifies the forced Action to be set to the output waveform. This parameter can be one of the following values:
  • TIM_ForcedAction_Active: Force active level on OC1REF
  • TIM_ForcedAction_InActive: Force inactive level on OC1REF.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 8, 15, 16 or 17 to select the TIM peripheral.
TIM_ForcedActionspecifies the forced Action to be set to the output waveform. This parameter can be one of the following values:
  • TIM_ForcedAction_Active: Force active level on OC1REF
  • TIM_ForcedAction_InActive: Force inactive level on OC1REF.
Return values
None
Parameters
TIMxwhere x can be 1 to 17 except 6 and 7 to select the TIM peripheral.
TIM_ForcedActionspecifies the forced Action to be set to the output waveform. This parameter can be one of the following values:
  • TIM_ForcedAction_Active: Force active level on OC1REF
  • TIM_ForcedAction_InActive: Force inactive level on OC1REF.
Return values
None

Definition at line 1124 of file stm32f4xx_tim.c.

void TIM_ForcedOC2Config ( TIM_TypeDef TIMx,
uint16_t  TIM_ForcedAction 
)

Forces the TIMx output 2 waveform to active or inactive level.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM peripheral.
TIM_ForcedActionspecifies the forced Action to be set to the output waveform. This parameter can be one of the following values:
  • TIM_ForcedAction_Active: Force active level on OC2REF
  • TIM_ForcedAction_InActive: Force inactive level on OC2REF.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 8 or 15 to select the TIM peripheral.
TIM_ForcedActionspecifies the forced Action to be set to the output waveform. This parameter can be one of the following values:
  • TIM_ForcedAction_Active: Force active level on OC2REF
  • TIM_ForcedAction_InActive: Force inactive level on OC2REF.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15 to select the TIM peripheral.
TIM_ForcedActionspecifies the forced Action to be set to the output waveform. This parameter can be one of the following values:
  • TIM_ForcedAction_Active: Force active level on OC2REF
  • TIM_ForcedAction_InActive: Force inactive level on OC2REF.
Return values
None

Definition at line 1153 of file stm32f4xx_tim.c.

void TIM_ForcedOC3Config ( TIM_TypeDef TIMx,
uint16_t  TIM_ForcedAction 
)

Forces the TIMx output 3 waveform to active or inactive level.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_ForcedActionspecifies the forced Action to be set to the output waveform. This parameter can be one of the following values:
  • TIM_ForcedAction_Active: Force active level on OC3REF
  • TIM_ForcedAction_InActive: Force inactive level on OC3REF.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4 or 8 to select the TIM peripheral.
TIM_ForcedActionspecifies the forced Action to be set to the output waveform. This parameter can be one of the following values:
  • TIM_ForcedAction_Active: Force active level on OC3REF
  • TIM_ForcedAction_InActive: Force inactive level on OC3REF.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_ForcedActionspecifies the forced Action to be set to the output waveform. This parameter can be one of the following values:
  • TIM_ForcedAction_Active: Force active level on OC3REF
  • TIM_ForcedAction_InActive: Force inactive level on OC3REF.
Return values
None

Definition at line 1181 of file stm32f4xx_tim.c.

void TIM_ForcedOC4Config ( TIM_TypeDef TIMx,
uint16_t  TIM_ForcedAction 
)

Forces the TIMx output 4 waveform to active or inactive level.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_ForcedActionspecifies the forced Action to be set to the output waveform. This parameter can be one of the following values:
  • TIM_ForcedAction_Active: Force active level on OC4REF
  • TIM_ForcedAction_InActive: Force inactive level on OC4REF.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4 or 8 to select the TIM peripheral.
TIM_ForcedActionspecifies the forced Action to be set to the output waveform. This parameter can be one of the following values:
  • TIM_ForcedAction_Active: Force active level on OC4REF
  • TIM_ForcedAction_InActive: Force inactive level on OC4REF.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_ForcedActionspecifies the forced Action to be set to the output waveform. This parameter can be one of the following values:
  • TIM_ForcedAction_Active: Force active level on OC4REF
  • TIM_ForcedAction_InActive: Force inactive level on OC4REF.
Return values
None

Definition at line 1210 of file stm32f4xx_tim.c.

void TIM_ForcedOC5Config ( TIM_TypeDef TIMx,
uint16_t  TIM_ForcedAction 
)

Forces the TIMx output 5 waveform to active or inactive level.

Parameters
TIMxwhere x can be 1 or 8 to select the TIM peripheral.
TIM_ForcedActionspecifies the forced Action to be set to the output waveform. This parameter can be one of the following values:
  • TIM_ForcedAction_Active: Force active level on OC5REF
  • TIM_ForcedAction_InActive: Force inactive level on OC5REF.
Return values
None

Definition at line 1483 of file stm32f30x_tim.c.

void TIM_ForcedOC6Config ( TIM_TypeDef TIMx,
uint16_t  TIM_ForcedAction 
)

Forces the TIMx output 6 waveform to active or inactive level.

Parameters
TIMxwhere x can be 1 or 8 to select the TIM peripheral.
TIM_ForcedActionspecifies the forced Action to be set to the output waveform. This parameter can be one of the following values:
  • TIM_ForcedAction_Active: Force active level on OC5REF
  • TIM_ForcedAction_InActive: Force inactive level on OC5REF.
Return values
None

Definition at line 1511 of file stm32f30x_tim.c.

void TIM_GenerateEvent ( TIM_TypeDef TIMx,
uint16_t  TIM_EventSource 
)

Configures the TIMx event to be generate by software.

Parameters
TIMxwhere x can be 1 to 14 to select the TIM peripheral.
TIM_EventSourcespecifies the event source. This parameter can be one or more of the following values:
  • TIM_EventSource_Update: Timer update Event source
  • TIM_EventSource_CC1: Timer Capture Compare 1 Event source
  • TIM_EventSource_CC2: Timer Capture Compare 2 Event source
  • TIM_EventSource_CC3: Timer Capture Compare 3 Event source
  • TIM_EventSource_CC4: Timer Capture Compare 4 Event source
  • TIM_EventSource_COM: Timer COM event source
  • TIM_EventSource_Trigger: Timer Trigger Event source
  • TIM_EventSource_Break: Timer Break event source
Note
TIM6 and TIM7 can only generate an update event.
TIM_EventSource_COM and TIM_EventSource_Break are used only with TIM1 and TIM8.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 6, 7, 8, 15, 16 or 17 to select the TIM peripheral.
TIM_EventSourcespecifies the event source. This parameter can be one or more of the following values:
  • TIM_EventSource_Update: Timer update Event source
  • TIM_EventSource_CC1: Timer Capture Compare 1 Event source
  • TIM_EventSource_CC2: Timer Capture Compare 2 Event source
  • TIM_EventSource_CC3: Timer Capture Compare 3 Event source
  • TIM_EventSource_CC4: Timer Capture Compare 4 Event source
  • TIM_EventSource_COM: Timer COM event source
  • TIM_EventSource_Trigger: Timer Trigger Event source
  • TIM_EventSource_Break: Timer Break event source
Note
TIM6 and TIM7 can only generate an update event.
TIM_EventSource_COM and TIM_EventSource_Break are used only with TIM1 and TIM8.
Return values
None
Parameters
TIMxwhere x can be 1 to 17 to select the TIM peripheral.
TIM_EventSourcespecifies the event source. This parameter can be one or more of the following values:
  • TIM_EventSource_Update: Timer update Event source
  • TIM_EventSource_CC1: Timer Capture Compare 1 Event source
  • TIM_EventSource_CC2: Timer Capture Compare 2 Event source
  • TIM_EventSource_CC3: Timer Capture Compare 3 Event source
  • TIM_EventSource_CC4: Timer Capture Compare 4 Event source
  • TIM_EventSource_COM: Timer COM event source
  • TIM_EventSource_Trigger: Timer Trigger Event source
  • TIM_EventSource_Break: Timer Break event source
Note
  • TIM6 and TIM7 can only generate an update event.
  • TIM_EventSource_COM and TIM_EventSource_Break are used only with TIM1 and TIM8.
Return values
None

Definition at line 2410 of file stm32f4xx_tim.c.

uint32_t TIM_GetCapture1 ( TIM_TypeDef TIMx)

Gets the TIMx Input Capture 1 value.

Parameters
TIMxwhere x can be 1 to 14 except 6 and 7, to select the TIM peripheral.
Return values
CaptureCompare 1 Register value.
Parameters
TIMxwhere x can be 1, 2, 3, 4, 8, 15, 16 or 17 to select the TIM peripheral.
Return values
CaptureCompare 1 Register value.
Parameters
TIMxwhere x can be 1 to 17 except 6 and 7 to select the TIM peripheral.
Return values
CaptureCompare 1 Register value.

Definition at line 2032 of file stm32f4xx_tim.c.

uint32_t TIM_GetCapture2 ( TIM_TypeDef TIMx)

Gets the TIMx Input Capture 2 value.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM peripheral.
Return values
CaptureCompare 2 Register value.
Parameters
TIMxwhere x can be 1, 2, 3, 4, 8 or 15 to select the TIM peripheral.
Return values
CaptureCompare 2 Register value.
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15 to select the TIM peripheral.
Return values
CaptureCompare 2 Register value.

Definition at line 2047 of file stm32f4xx_tim.c.

uint32_t TIM_GetCapture3 ( TIM_TypeDef TIMx)

Gets the TIMx Input Capture 3 value.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
Return values
CaptureCompare 3 Register value.
Parameters
TIMxwhere x can be 1, 2, 3, 4 or 8 to select the TIM peripheral.
Return values
CaptureCompare 3 Register value.
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
Return values
CaptureCompare 3 Register value.

Definition at line 2061 of file stm32f4xx_tim.c.

uint32_t TIM_GetCapture4 ( TIM_TypeDef TIMx)

Gets the TIMx Input Capture 4 value.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
Return values
CaptureCompare 4 Register value.
Parameters
TIMxwhere x can be 1, 2, 3, 4 or 8 to select the TIM peripheral.
Return values
CaptureCompare 4 Register value.
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
Return values
CaptureCompare 4 Register value.

Definition at line 2075 of file stm32f4xx_tim.c.

uint32_t TIM_GetCounter ( TIM_TypeDef TIMx)

Gets the TIMx Counter value.

Parameters
TIMxwhere x can be 1 to 14 to select the TIM peripheral.
Return values
CounterRegister value
Parameters
TIMxwhere x can be 1, 2, 3, 4, 6 ,7 ,8, 15, 16 or 17 to select the TIM peripheral.
Return values
CounterRegister value
Parameters
TIMxwhere x can be 1 to 17 to select the TIM peripheral.
Return values
CounterRegister value.

Definition at line 438 of file stm32f4xx_tim.c.

FlagStatus TIM_GetFlagStatus ( TIM_TypeDef TIMx,
uint32_t  TIM_FLAG 
)

Checks whether the specified TIM flag is set or not.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 6, 7, 8, 15, 16 or 17 to select the TIM peripheral.
TIM_FLAGspecifies the flag to check. This parameter can be one of the following values:
  • TIM_FLAG_Update: TIM update Flag
  • TIM_FLAG_CC1: TIM Capture Compare 1 Flag
  • TIM_FLAG_CC2: TIM Capture Compare 2 Flag
  • TIM_FLAG_CC3: TIM Capture Compare 3 Flag
  • TIM_FLAG_CC4: TIM Capture Compare 4 Flag
  • TIM_FLAG_CC5: TIM Capture Compare 5 Flag
  • TIM_FLAG_CC6: TIM Capture Compare 6 Flag
  • TIM_FLAG_COM: TIM Commutation Flag
  • TIM_FLAG_Trigger: TIM Trigger Flag
  • TIM_FLAG_Break: TIM Break Flag
  • TIM_FLAG_CC1OF: TIM Capture Compare 1 over capture Flag
  • TIM_FLAG_CC2OF: TIM Capture Compare 2 over capture Flag
  • TIM_FLAG_CC3OF: TIM Capture Compare 3 over capture Flag
  • TIM_FLAG_CC4OF: TIM Capture Compare 4 over capture Flag
Note
TIM6 and TIM7 can have only one update flag.
TIM_FLAG_COM and TIM_FLAG_Break are used only with TIM1 and TIM8.
Return values
Thenew state of TIM_FLAG (SET or RESET).

Definition at line 3029 of file stm32f30x_tim.c.

ITStatus TIM_GetITStatus ( TIM_TypeDef TIMx,
uint16_t  TIM_IT 
)

Checks whether the TIM interrupt has occurred or not.

Parameters
TIMxwhere x can be 1 to 14 to select the TIM peripheral.
TIM_ITspecifies the TIM interrupt source to check. This parameter can be one of the following values:
  • TIM_IT_Update: TIM update Interrupt source
  • TIM_IT_CC1: TIM Capture Compare 1 Interrupt source
  • TIM_IT_CC2: TIM Capture Compare 2 Interrupt source
  • TIM_IT_CC3: TIM Capture Compare 3 Interrupt source
  • TIM_IT_CC4: TIM Capture Compare 4 Interrupt source
  • TIM_IT_COM: TIM Commutation Interrupt source
  • TIM_IT_Trigger: TIM Trigger Interrupt source
  • TIM_IT_Break: TIM Break Interrupt source
Note
TIM6 and TIM7 can generate only an update interrupt.
TIM_IT_COM and TIM_IT_Break are used only with TIM1 and TIM8.
Return values
Thenew state of the TIM_IT(SET or RESET).
Parameters
TIMxwhere x can be 1, 2, 3, 4, 6, 7, 8, 15, 16 or 17 to select the TIM peripheral.
TIM_ITspecifies the TIM interrupt source to check. This parameter can be one of the following values:
  • TIM_IT_Update: TIM update Interrupt source
  • TIM_IT_CC1: TIM Capture Compare 1 Interrupt source
  • TIM_IT_CC2: TIM Capture Compare 2 Interrupt source
  • TIM_IT_CC3: TIM Capture Compare 3 Interrupt source
  • TIM_IT_CC4: TIM Capture Compare 4 Interrupt source
  • TIM_IT_COM: TIM Commutation Interrupt source
  • TIM_IT_Trigger: TIM Trigger Interrupt source
  • TIM_IT_Break: TIM Break Interrupt source
Note
TIM6 and TIM7 can generate only an update interrupt.
TIM_IT_COM and TIM_IT_Break are used only with TIM1 and TIM8.
Return values
Thenew state of the TIM_IT(SET or RESET).
Parameters
TIMxwhere x can be 1 to 17 to select the TIM peripheral.
TIM_ITspecifies the TIM interrupt source to check. This parameter can be one of the following values:
  • TIM_IT_Update: TIM update Interrupt source
  • TIM_IT_CC1: TIM Capture Compare 1 Interrupt source
  • TIM_IT_CC2: TIM Capture Compare 2 Interrupt source
  • TIM_IT_CC3: TIM Capture Compare 3 Interrupt source
  • TIM_IT_CC4: TIM Capture Compare 4 Interrupt source
  • TIM_IT_COM: TIM Commutation Interrupt source
  • TIM_IT_Trigger: TIM Trigger Interrupt source
  • TIM_IT_Break: TIM Break Interrupt source
Note
  • TIM6 and TIM7 can generate only an update interrupt.
  • TIM9, TIM12 and TIM15 can have only TIM_IT_Update, TIM_IT_CC1, TIM_IT_CC2 or TIM_IT_Trigger.
  • TIM10, TIM11, TIM13, TIM14, TIM16 and TIM17 can have TIM_IT_Update or TIM_IT_CC1.
  • TIM_IT_Break is used only with TIM1, TIM8 and TIM15.
  • TIM_IT_COM is used only with TIM1, TIM8, TIM15, TIM16 and TIM17.
Return values
Thenew state of the TIM_IT(SET or RESET).

Definition at line 2513 of file stm32f4xx_tim.c.

uint16_t TIM_GetPrescaler ( TIM_TypeDef TIMx)

Gets the TIMx Prescaler value.

Parameters
TIMxwhere x can be 1 to 14 to select the TIM peripheral.
Return values
PrescalerRegister value.
Parameters
TIMxwhere x can be 1, 2, 3, 4, 6 ,7 ,8, 15, 16 or 17 to select the TIM peripheral.
Return values
PrescalerRegister value.
Parameters
TIMxwhere x can be 1 to 17 to select the TIM peripheral.
Return values
PrescalerRegister value.

Definition at line 452 of file stm32f4xx_tim.c.

void TIM_ICInit ( TIM_TypeDef TIMx,
TIM_ICInitTypeDef TIM_ICInitStruct 
)

Initializes the TIM peripheral according to the specified parameters in the TIM_ICInitStruct.

Parameters
TIMxwhere x can be 1 to 14 except 6 and 7, to select the TIM peripheral.
TIM_ICInitStructpointer to a TIM_ICInitTypeDef structure that contains the configuration information for the specified TIM peripheral.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 8, 15, 16 or 17 to select the TIM peripheral.
TIM_ICInitStructpointer to a TIM_ICInitTypeDef structure that contains the configuration information for the specified TIM peripheral.
Return values
None
Parameters
TIMxwhere x can be 1 to 17 except 6 and 7 to select the TIM peripheral.
TIM_ICInitStructpointer to a TIM_ICInitTypeDef structure that contains the configuration information for the specified TIM peripheral.
Return values
None

Definition at line 1900 of file stm32f4xx_tim.c.

void TIM_ICStructInit ( TIM_ICInitTypeDef TIM_ICInitStruct)

Fills each TIM_ICInitStruct member with its default value.

Parameters
TIM_ICInitStructpointer to a TIM_ICInitTypeDef structure which will be initialized.
Return values
None

Definition at line 1956 of file stm32f4xx_tim.c.

void TIM_InternalClockConfig ( TIM_TypeDef TIMx)

Configures the TIMx internal Clock.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM peripheral.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 8 or 15 to select the TIM peripheral.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15 to select the TIM peripheral.
Return values
None

Definition at line 2683 of file stm32f4xx_tim.c.

void TIM_ITConfig ( TIM_TypeDef TIMx,
uint16_t  TIM_IT,
FunctionalState  NewState 
)

Enables or disables the specified TIM interrupts.

Parameters
TIMxwhere x can be 1 to 14 to select the TIMx peripheral.
TIM_ITspecifies the TIM interrupts sources to be enabled or disabled. This parameter can be any combination of the following values:
  • TIM_IT_Update: TIM update Interrupt source
  • TIM_IT_CC1: TIM Capture Compare 1 Interrupt source
  • TIM_IT_CC2: TIM Capture Compare 2 Interrupt source
  • TIM_IT_CC3: TIM Capture Compare 3 Interrupt source
  • TIM_IT_CC4: TIM Capture Compare 4 Interrupt source
  • TIM_IT_COM: TIM Commutation Interrupt source
  • TIM_IT_Trigger: TIM Trigger Interrupt source
  • TIM_IT_Break: TIM Break Interrupt source
Note
For TIM6 and TIM7 only the parameter TIM_IT_Update can be used
For TIM9 and TIM12 only one of the following parameters can be used: TIM_IT_Update, TIM_IT_CC1, TIM_IT_CC2 or TIM_IT_Trigger.
For TIM10, TIM11, TIM13 and TIM14 only one of the following parameters can be used: TIM_IT_Update or TIM_IT_CC1
TIM_IT_COM and TIM_IT_Break can be used only with TIM1 and TIM8
Parameters
NewStatenew state of the TIM interrupts. This parameter can be: ENABLE or DISABLE.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 6, 7, 8, 15, 16 or 17 to select the TIMx peripheral.
TIM_ITspecifies the TIM interrupts sources to be enabled or disabled. This parameter can be any combination of the following values:
  • TIM_IT_Update: TIM update Interrupt source
  • TIM_IT_CC1: TIM Capture Compare 1 Interrupt source
  • TIM_IT_CC2: TIM Capture Compare 2 Interrupt source
  • TIM_IT_CC3: TIM Capture Compare 3 Interrupt source
  • TIM_IT_CC4: TIM Capture Compare 4 Interrupt source
  • TIM_IT_COM: TIM Commutation Interrupt source
  • TIM_IT_Trigger: TIM Trigger Interrupt source
  • TIM_IT_Break: TIM Break Interrupt source
Note
For TIM6 and TIM7 only the parameter TIM_IT_Update can be used
For TIM9 and TIM12 only one of the following parameters can be used: TIM_IT_Update, TIM_IT_CC1, TIM_IT_CC2 or TIM_IT_Trigger.
For TIM10, TIM11, TIM13 and TIM14 only one of the following parameters can be used: TIM_IT_Update or TIM_IT_CC1
TIM_IT_COM and TIM_IT_Break can be used only with TIM1 and TIM8
Parameters
NewStatenew state of the TIM interrupts. This parameter can be: ENABLE or DISABLE.
Return values
None
Parameters
TIMxwhere x can be 1 to 17 to select the TIMx peripheral.
TIM_ITspecifies the TIM interrupts sources to be enabled or disabled. This parameter can be any combination of the following values:
  • TIM_IT_Update: TIM update Interrupt source
  • TIM_IT_CC1: TIM Capture Compare 1 Interrupt source
  • TIM_IT_CC2: TIM Capture Compare 2 Interrupt source
  • TIM_IT_CC3: TIM Capture Compare 3 Interrupt source
  • TIM_IT_CC4: TIM Capture Compare 4 Interrupt source
  • TIM_IT_COM: TIM Commutation Interrupt source
  • TIM_IT_Trigger: TIM Trigger Interrupt source
  • TIM_IT_Break: TIM Break Interrupt source
Note
  • TIM6 and TIM7 can only generate an update interrupt.
  • TIM9, TIM12 and TIM15 can have only TIM_IT_Update, TIM_IT_CC1, TIM_IT_CC2 or TIM_IT_Trigger.
  • TIM10, TIM11, TIM13, TIM14, TIM16 and TIM17 can have TIM_IT_Update or TIM_IT_CC1.
  • TIM_IT_Break is used only with TIM1, TIM8 and TIM15.
  • TIM_IT_COM is used only with TIM1, TIM8, TIM15, TIM16 and TIM17.
Parameters
NewStatenew state of the TIM interrupts. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 2372 of file stm32f4xx_tim.c.

void TIM_ITRxExternalClockConfig ( TIM_TypeDef TIMx,
uint16_t  TIM_InputTriggerSource 
)

Configures the TIMx Internal Trigger as External Clock.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM peripheral.
TIM_InputTriggerSourceTrigger source. This parameter can be one of the following values:
  • TIM_TS_ITR0: Internal Trigger 0
  • TIM_TS_ITR1: Internal Trigger 1
  • TIM_TS_ITR2: Internal Trigger 2
  • TIM_TS_ITR3: Internal Trigger 3
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 8 or 15 to select the TIM peripheral.
TIM_InputTriggerSourceTrigger source. This parameter can be one of the following values:
  • TIM_TS_ITR0: Internal Trigger 0
  • TIM_TS_ITR1: Internal Trigger 1
  • TIM_TS_ITR2: Internal Trigger 2
  • TIM_TS_ITR3: Internal Trigger 3
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 9, 12 or 15 to select the TIM peripheral.
TIM_ITRSourceTrigger source. This parameter can be one of the following values:
TIM_TS_ITR0Internal Trigger 0
TIM_TS_ITR1Internal Trigger 1
TIM_TS_ITR2Internal Trigger 2
TIM_TS_ITR3Internal Trigger 3
Return values
None

Definition at line 2704 of file stm32f4xx_tim.c.

void TIM_OC1FastConfig ( TIM_TypeDef TIMx,
uint16_t  TIM_OCFast 
)

Configures the TIMx Output Compare 1 Fast feature.

Parameters
TIMxwhere x can be 1 to 14 except 6 and 7, to select the TIM peripheral.
TIM_OCFastnew state of the Output Compare Fast Enable Bit. This parameter can be one of the following values:
  • TIM_OCFast_Enable: TIM output compare fast enable
  • TIM_OCFast_Disable: TIM output compare fast disable
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 8, 15, 16 or 17 to select the TIM peripheral.
TIM_OCFastnew state of the Output Compare Fast Enable Bit. This parameter can be one of the following values:
  • TIM_OCFast_Enable: TIM output compare fast enable
  • TIM_OCFast_Disable: TIM output compare fast disable
Return values
None
Parameters
TIMxwhere x can be 1 to 17 except 6 and 7 to select the TIM peripheral.
TIM_OCFastnew state of the Output Compare Fast Enable Bit. This parameter can be one of the following values:
  • TIM_OCFast_Enable: TIM output compare fast enable
  • TIM_OCFast_Disable: TIM output compare fast disable
Return values
None

Definition at line 1355 of file stm32f4xx_tim.c.

void TIM_OC1Init ( TIM_TypeDef TIMx,
TIM_OCInitTypeDef TIM_OCInitStruct 
)

Initializes the TIMx Channel1 according to the specified parameters in the TIM_OCInitStruct.

Parameters
TIMxwhere x can be 1 to 14 except 6 and 7, to select the TIM peripheral.
TIM_OCInitStructpointer to a TIM_OCInitTypeDef structure that contains the configuration information for the specified TIM peripheral.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 8, 15, 16 or 17, to select the TIM peripheral.
TIM_OCInitStructpointer to a TIM_OCInitTypeDef structure that contains the configuration information for the specified TIM peripheral.
Return values
None
Parameters
TIMxwhere x can be 1 to 17 except 6 and 7 to select the TIM peripheral.
TIM_OCInitStructpointer to a TIM_OCInitTypeDef structure that contains the configuration information for the specified TIM peripheral.
Return values
None

Definition at line 673 of file stm32f4xx_tim.c.

void TIM_OC1NPolarityConfig ( TIM_TypeDef TIMx,
uint16_t  TIM_OCNPolarity 
)

Configures the TIMx Channel 1N polarity.

Parameters
TIMxwhere x can be 1 or 8 to select the TIM peripheral.
TIM_OCNPolarityspecifies the OC1N Polarity This parameter can be one of the following values:
  • TIM_OCNPolarity_High: Output Compare active high
  • TIM_OCNPolarity_Low: Output Compare active low
Return values
None
Parameters
TIMxwhere x can be 1, 8, 15, 16 or 17 to select the TIM peripheral.
TIM_OCNPolarityspecifies the OC1N Polarity This parameter can be one of the following values:
  • TIM_OCNPolarity_High: Output Compare active high
  • TIM_OCNPolarity_Low: Output Compare active low
Return values
None
Parameters
TIMxwhere x can be 1, 8, 15, 16 or 17 to select the TIM peripheral.
TIM_OCNPolarityspecifies the OC1N Polarity This parameter can be one of the following values:
  • TIM_OCNPolarity_High: Output Compare active high
  • TIM_OCNPolarity_Low: Output Compare active low
Return values
None

Definition at line 1620 of file stm32f4xx_tim.c.

void TIM_OC1PolarityConfig ( TIM_TypeDef TIMx,
uint16_t  TIM_OCPolarity 
)

Configures the TIMx channel 1 polarity.

Parameters
TIMxwhere x can be 1 to 14 except 6 and 7, to select the TIM peripheral.
TIM_OCPolarityspecifies the OC1 Polarity This parameter can be one of the following values:
  • TIM_OCPolarity_High: Output Compare active high
  • TIM_OCPolarity_Low: Output Compare active low
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 8, 15, 16 or 17 to select the TIM peripheral.
TIM_OCPolarityspecifies the OC1 Polarity This parameter can be one of the following values:
  • TIM_OCPolarity_High: Output Compare active high
  • TIM_OCPolarity_Low: Output Compare active low
Return values
None
Parameters
TIMxwhere x can be 1 to 17 except 6 and 7 to select the TIM peripheral.
TIM_OCPolarityspecifies the OC1 Polarity This parameter can be one of the following values:
  • TIM_OCPolarity_High: Output Compare active high
  • TIM_OCPolarity_Low: Output Compare active low
Return values
None

Definition at line 1593 of file stm32f4xx_tim.c.

void TIM_OC1PreloadConfig ( TIM_TypeDef TIMx,
uint16_t  TIM_OCPreload 
)

Enables or disables the TIMx peripheral Preload register on CCR1.

Parameters
TIMxwhere x can be 1 to 14 except 6 and 7, to select the TIM peripheral.
TIM_OCPreloadnew state of the TIMx peripheral Preload register This parameter can be one of the following values:
  • TIM_OCPreload_Enable
  • TIM_OCPreload_Disable
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 8, 15, 16 or 17 to select the TIM peripheral.
TIM_OCPreloadnew state of the TIMx peripheral Preload register This parameter can be one of the following values:
  • TIM_OCPreload_Enable
  • TIM_OCPreload_Disable
Return values
None
Parameters
TIMxwhere x can be 1 to 17 except 6 and 7 to select the TIM peripheral.
TIM_OCPreloadnew state of the TIMx peripheral Preload register This parameter can be one of the following values:
  • TIM_OCPreload_Enable
  • TIM_OCPreload_Disable
Return values
None

Definition at line 1238 of file stm32f4xx_tim.c.

void TIM_OC2FastConfig ( TIM_TypeDef TIMx,
uint16_t  TIM_OCFast 
)

Configures the TIMx Output Compare 2 Fast feature.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM peripheral.
TIM_OCFastnew state of the Output Compare Fast Enable Bit. This parameter can be one of the following values:
  • TIM_OCFast_Enable: TIM output compare fast enable
  • TIM_OCFast_Disable: TIM output compare fast disable
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 8 or 15 to select the TIM peripheral.
TIM_OCFastnew state of the Output Compare Fast Enable Bit. This parameter can be one of the following values:
  • TIM_OCFast_Enable: TIM output compare fast enable
  • TIM_OCFast_Disable: TIM output compare fast disable
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15 to select the TIM peripheral.
TIM_OCFastnew state of the Output Compare Fast Enable Bit. This parameter can be one of the following values:
  • TIM_OCFast_Enable: TIM output compare fast enable
  • TIM_OCFast_Disable: TIM output compare fast disable
Return values
None

Definition at line 1386 of file stm32f4xx_tim.c.

void TIM_OC2Init ( TIM_TypeDef TIMx,
TIM_OCInitTypeDef TIM_OCInitStruct 
)

Initializes the TIMx Channel2 according to the specified parameters in the TIM_OCInitStruct.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM peripheral.
TIM_OCInitStructpointer to a TIM_OCInitTypeDef structure that contains the configuration information for the specified TIM peripheral.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 8 or 15 to select the TIM peripheral.
TIM_OCInitStructpointer to a TIM_OCInitTypeDef structure that contains the configuration information for the specified TIM peripheral.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15 to select the TIM peripheral.
TIM_OCInitStructpointer to a TIM_OCInitTypeDef structure that contains the configuration information for the specified TIM peripheral.
Return values
None

Definition at line 754 of file stm32f4xx_tim.c.

void TIM_OC2NPolarityConfig ( TIM_TypeDef TIMx,
uint16_t  TIM_OCNPolarity 
)

Configures the TIMx Channel 2N polarity.

Parameters
TIMxwhere x can be 1 or 8 to select the TIM peripheral.
TIM_OCNPolarityspecifies the OC2N Polarity This parameter can be one of the following values:
  • TIM_OCNPolarity_High: Output Compare active high
  • TIM_OCNPolarity_Low: Output Compare active low
Return values
None

Definition at line 1674 of file stm32f4xx_tim.c.

void TIM_OC2PolarityConfig ( TIM_TypeDef TIMx,
uint16_t  TIM_OCPolarity 
)

Configures the TIMx channel 2 polarity.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM peripheral.
TIM_OCPolarityspecifies the OC2 Polarity This parameter can be one of the following values:
  • TIM_OCPolarity_High: Output Compare active high
  • TIM_OCPolarity_Low: Output Compare active low
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4 8 or 15 to select the TIM peripheral.
TIM_OCPolarityspecifies the OC2 Polarity This parameter can be one of the following values:
  • TIM_OCPolarity_High: Output Compare active high
  • TIM_OCPolarity_Low: Output Compare active low
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15 to select the TIM peripheral.
TIM_OCPolarityspecifies the OC2 Polarity This parameter can be one of the following values:
  • TIM_OCPolarity_High: Output Compare active high
  • TIM_OCPolarity_Low: Output Compare active low
Return values
None

Definition at line 1647 of file stm32f4xx_tim.c.

void TIM_OC2PreloadConfig ( TIM_TypeDef TIMx,
uint16_t  TIM_OCPreload 
)

Enables or disables the TIMx peripheral Preload register on CCR2.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM peripheral.
TIM_OCPreloadnew state of the TIMx peripheral Preload register This parameter can be one of the following values:
  • TIM_OCPreload_Enable
  • TIM_OCPreload_Disable
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 8 or 15 to select the TIM peripheral.
TIM_OCPreloadnew state of the TIMx peripheral Preload register This parameter can be one of the following values:
  • TIM_OCPreload_Enable
  • TIM_OCPreload_Disable
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15 to select the TIM peripheral.
TIM_OCPreloadnew state of the TIMx peripheral Preload register This parameter can be one of the following values:
  • TIM_OCPreload_Enable
  • TIM_OCPreload_Disable
Return values
None

Definition at line 1268 of file stm32f4xx_tim.c.

void TIM_OC3FastConfig ( TIM_TypeDef TIMx,
uint16_t  TIM_OCFast 
)

Configures the TIMx Output Compare 3 Fast feature.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_OCFastnew state of the Output Compare Fast Enable Bit. This parameter can be one of the following values:
  • TIM_OCFast_Enable: TIM output compare fast enable
  • TIM_OCFast_Disable: TIM output compare fast disable
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4 or 8 to select the TIM peripheral.
TIM_OCFastnew state of the Output Compare Fast Enable Bit. This parameter can be one of the following values:
  • TIM_OCFast_Enable: TIM output compare fast enable
  • TIM_OCFast_Disable: TIM output compare fast disable
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_OCFastnew state of the Output Compare Fast Enable Bit. This parameter can be one of the following values:
  • TIM_OCFast_Enable: TIM output compare fast enable
  • TIM_OCFast_Disable: TIM output compare fast disable
Return values
None

Definition at line 1416 of file stm32f4xx_tim.c.

void TIM_OC3Init ( TIM_TypeDef TIMx,
TIM_OCInitTypeDef TIM_OCInitStruct 
)

Initializes the TIMx Channel3 according to the specified parameters in the TIM_OCInitStruct.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_OCInitStructpointer to a TIM_OCInitTypeDef structure that contains the configuration information for the specified TIM peripheral.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4 or 8 to select the TIM peripheral.
TIM_OCInitStructpointer to a TIM_OCInitTypeDef structure that contains the configuration information for the specified TIM peripheral.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_OCInitStructpointer to a TIM_OCInitTypeDef structure that contains the configuration information for the specified TIM peripheral.
Return values
None

Definition at line 835 of file stm32f4xx_tim.c.

void TIM_OC3NPolarityConfig ( TIM_TypeDef TIMx,
uint16_t  TIM_OCNPolarity 
)

Configures the TIMx Channel 3N polarity.

Parameters
TIMxwhere x can be 1 or 8 to select the TIM peripheral.
TIM_OCNPolarityspecifies the OC3N Polarity This parameter can be one of the following values:
  • TIM_OCNPolarity_High: Output Compare active high
  • TIM_OCNPolarity_Low: Output Compare active low
Return values
None

Definition at line 1728 of file stm32f4xx_tim.c.

void TIM_OC3PolarityConfig ( TIM_TypeDef TIMx,
uint16_t  TIM_OCPolarity 
)

Configures the TIMx channel 3 polarity.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_OCPolarityspecifies the OC3 Polarity This parameter can be one of the following values:
  • TIM_OCPolarity_High: Output Compare active high
  • TIM_OCPolarity_Low: Output Compare active low
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4 or 8 to select the TIM peripheral.
TIM_OCPolarityspecifies the OC3 Polarity This parameter can be one of the following values:
  • TIM_OCPolarity_High: Output Compare active high
  • TIM_OCPolarity_Low: Output Compare active low
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_OCPolarityspecifies the OC3 Polarity This parameter can be one of the following values:
  • TIM_OCPolarity_High: Output Compare active high
  • TIM_OCPolarity_Low: Output Compare active low
Return values
None

Definition at line 1701 of file stm32f4xx_tim.c.

void TIM_OC3PreloadConfig ( TIM_TypeDef TIMx,
uint16_t  TIM_OCPreload 
)

Enables or disables the TIMx peripheral Preload register on CCR3.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_OCPreloadnew state of the TIMx peripheral Preload register This parameter can be one of the following values:
  • TIM_OCPreload_Enable
  • TIM_OCPreload_Disable
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4 or 8 to select the TIM peripheral.
TIM_OCPreloadnew state of the TIMx peripheral Preload register This parameter can be one of the following values:
  • TIM_OCPreload_Enable
  • TIM_OCPreload_Disable
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_OCPreloadnew state of the TIMx peripheral Preload register This parameter can be one of the following values:
  • TIM_OCPreload_Enable
  • TIM_OCPreload_Disable
Return values
None

Definition at line 1297 of file stm32f4xx_tim.c.

void TIM_OC4FastConfig ( TIM_TypeDef TIMx,
uint16_t  TIM_OCFast 
)

Configures the TIMx Output Compare 4 Fast feature.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_OCFastnew state of the Output Compare Fast Enable Bit. This parameter can be one of the following values:
  • TIM_OCFast_Enable: TIM output compare fast enable
  • TIM_OCFast_Disable: TIM output compare fast disable
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4 or 8 to select the TIM peripheral.
TIM_OCFastnew state of the Output Compare Fast Enable Bit. This parameter can be one of the following values:
  • TIM_OCFast_Enable: TIM output compare fast enable
  • TIM_OCFast_Disable: TIM output compare fast disable
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_OCFastnew state of the Output Compare Fast Enable Bit. This parameter can be one of the following values:
  • TIM_OCFast_Enable: TIM output compare fast enable
  • TIM_OCFast_Disable: TIM output compare fast disable
Return values
None

Definition at line 1446 of file stm32f4xx_tim.c.

void TIM_OC4Init ( TIM_TypeDef TIMx,
TIM_OCInitTypeDef TIM_OCInitStruct 
)

Initializes the TIMx Channel4 according to the specified parameters in the TIM_OCInitStruct.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_OCInitStructpointer to a TIM_OCInitTypeDef structure that contains the configuration information for the specified TIM peripheral.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4 or 8 to select the TIM peripheral.
TIM_OCInitStructpointer to a TIM_OCInitTypeDef structure that contains the configuration information for the specified TIM peripheral.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_OCInitStructpointer to a TIM_OCInitTypeDef structure that contains the configuration information for the specified TIM peripheral.
Return values
None

Definition at line 915 of file stm32f4xx_tim.c.

void TIM_OC4PolarityConfig ( TIM_TypeDef TIMx,
uint16_t  TIM_OCPolarity 
)

Configures the TIMx channel 4 polarity.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_OCPolarityspecifies the OC4 Polarity This parameter can be one of the following values:
  • TIM_OCPolarity_High: Output Compare active high
  • TIM_OCPolarity_Low: Output Compare active low
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4 or 8 to select the TIM peripheral.
TIM_OCPolarityspecifies the OC4 Polarity This parameter can be one of the following values:
  • TIM_OCPolarity_High: Output Compare active high
  • TIM_OCPolarity_Low: Output Compare active low
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_OCPolarityspecifies the OC4 Polarity This parameter can be one of the following values:
  • TIM_OCPolarity_High: Output Compare active high
  • TIM_OCPolarity_Low: Output Compare active low
Return values
None

Definition at line 1755 of file stm32f4xx_tim.c.

void TIM_OC4PreloadConfig ( TIM_TypeDef TIMx,
uint16_t  TIM_OCPreload 
)

Enables or disables the TIMx peripheral Preload register on CCR4.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_OCPreloadnew state of the TIMx peripheral Preload register This parameter can be one of the following values:
  • TIM_OCPreload_Enable
  • TIM_OCPreload_Disable
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4 or 8 to select the TIM peripheral.
TIM_OCPreloadnew state of the TIMx peripheral Preload register This parameter can be one of the following values:
  • TIM_OCPreload_Enable
  • TIM_OCPreload_Disable
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_OCPreloadnew state of the TIMx peripheral Preload register This parameter can be one of the following values:
  • TIM_OCPreload_Enable
  • TIM_OCPreload_Disable
Return values
None

Definition at line 1326 of file stm32f4xx_tim.c.

void TIM_OC5Init ( TIM_TypeDef TIMx,
TIM_OCInitTypeDef TIM_OCInitStruct 
)

Initializes the TIMx Channel5 according to the specified parameters in the TIM_OCInitStruct.

Parameters
TIMxwhere x can be 1 or 8 to select the TIM peripheral.
TIM_OCInitStructpointer to a TIM_OCInitTypeDef structure that contains the configuration information for the specified TIM peripheral.
Return values
None

Definition at line 982 of file stm32f30x_tim.c.

void TIM_OC5PolarityConfig ( TIM_TypeDef TIMx,
uint16_t  TIM_OCPolarity 
)

Configures the TIMx channel 5 polarity.

Parameters
TIMxwhere x can be 1 or 8 to select the TIM peripheral.
TIM_OCPolarityspecifies the OC5 Polarity This parameter can be one of the following values:
  • TIM_OCPolarity_High: Output Compare active high
  • TIM_OCPolarity_Low: Output Compare active low
Return values
None

Definition at line 2219 of file stm32f30x_tim.c.

void TIM_OC5PreloadConfig ( TIM_TypeDef TIMx,
uint16_t  TIM_OCPreload 
)

Enables or disables the TIMx peripheral Preload register on CCR5.

Parameters
TIMxwhere x can be 1 or 8 to select the TIM peripheral.
TIM_OCPreloadnew state of the TIMx peripheral Preload register This parameter can be one of the following values:
  • TIM_OCPreload_Enable
  • TIM_OCPreload_Disable
Return values
None

Definition at line 1656 of file stm32f30x_tim.c.

void TIM_OC6Init ( TIM_TypeDef TIMx,
TIM_OCInitTypeDef TIM_OCInitStruct 
)

Initializes the TIMx Channel6 according to the specified parameters in the TIM_OCInitStruct.

Parameters
TIMxwhere x can be 1 or 8 to select the TIM peripheral.
TIM_OCInitStructpointer to a TIM_OCInitTypeDef structure that contains the configuration information for the specified TIM peripheral.
Return values
None

Definition at line 1046 of file stm32f30x_tim.c.

void TIM_OC6PolarityConfig ( TIM_TypeDef TIMx,
uint16_t  TIM_OCPolarity 
)

Configures the TIMx channel 6 polarity.

Parameters
TIMxwhere x can be 1 or 8 to select the TIM peripheral.
TIM_OCPolarityspecifies the OC6 Polarity This parameter can be one of the following values:
  • TIM_OCPolarity_High: Output Compare active high
  • TIM_OCPolarity_Low: Output Compare active low
Return values
None

Definition at line 2246 of file stm32f30x_tim.c.

void TIM_OC6PreloadConfig ( TIM_TypeDef TIMx,
uint16_t  TIM_OCPreload 
)

Enables or disables the TIMx peripheral Preload register on CCR6.

Parameters
TIMxwhere x can be 1 or 8 to select the TIM peripheral.
TIM_OCPreloadnew state of the TIMx peripheral Preload register This parameter can be one of the following values:
  • TIM_OCPreload_Enable
  • TIM_OCPreload_Disable
Return values
None

Definition at line 1685 of file stm32f30x_tim.c.

void TIM_OCStructInit ( TIM_OCInitTypeDef TIM_OCInitStruct)

Fills each TIM_OCInitStruct member with its default value.

Parameters
TIM_OCInitStructpointer to a TIM_OCInitTypeDef structure which will be initialized.
Return values
None
Parameters
TIM_OCInitStruct: pointer to a TIM_OCInitTypeDef structure which will be initialized.
Return values
None

Definition at line 978 of file stm32f4xx_tim.c.

void TIM_PrescalerConfig ( TIM_TypeDef TIMx,
uint16_t  Prescaler,
uint16_t  TIM_PSCReloadMode 
)

Configures the TIMx Prescaler.

Parameters
TIMxwhere x can be 1 to 14 to select the TIM peripheral.
Prescalerspecifies the Prescaler Register value
TIM_PSCReloadModespecifies the TIM Prescaler Reload mode This parameter can be one of the following values:
  • TIM_PSCReloadMode_Update: The Prescaler is loaded at the update event.
  • TIM_PSCReloadMode_Immediate: The Prescaler is loaded immediatly.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 8, 15, 16 or 17 to select the TIM peripheral.
Prescalerspecifies the Prescaler Register value
TIM_PSCReloadModespecifies the TIM Prescaler Reload mode This parameter can be one of the following values:
  • TIM_PSCReloadMode_Update: The Prescaler is loaded at the update event.
  • TIM_PSCReloadMode_Immediate: The Prescaler is loaded immediatly.
Return values
None
Parameters
TIMxwhere x can be 1 to 17 to select the TIM peripheral.
Prescalerspecifies the Prescaler Register value
TIM_PSCReloadModespecifies the TIM Prescaler Reload mode This parameter can be one of the following values:
  • TIM_PSCReloadMode_Update: The Prescaler is loaded at the update event.
  • TIM_PSCReloadMode_Immediate: The Prescaler is loaded immediately.
Return values
None

Definition at line 360 of file stm32f4xx_tim.c.

void TIM_PWMIConfig ( TIM_TypeDef TIMx,
TIM_ICInitTypeDef TIM_ICInitStruct 
)

Configures the TIM peripheral according to the specified parameters in the TIM_ICInitStruct to measure an external PWM signal.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5,8, 9 or 12 to select the TIM peripheral.
TIM_ICInitStructpointer to a TIM_ICInitTypeDef structure that contains the configuration information for the specified TIM peripheral.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 8 or 15 to select the TIM peripheral.
TIM_ICInitStructpointer to a TIM_ICInitTypeDef structure that contains the configuration information for the specified TIM peripheral.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15 to select the TIM peripheral.
TIM_ICInitStructpointer to a TIM_ICInitTypeDef structure that contains the configuration information for the specified TIM peripheral.
Return values
None

Definition at line 1975 of file stm32f4xx_tim.c.

void TIM_RemapConfig ( TIM_TypeDef TIMx,
uint16_t  TIM_Remap 
)

Configures the TIM2, TIM5 and TIM11 Remapping input capabilities.

Configures the TIM16 Remapping input Capabilities.

Parameters
TIMxwhere x can be 2, 5 or 11 to select the TIM peripheral.
TIM_Remapspecifies the TIM input remapping source. This parameter can be one of the following values:
  • TIM2_TIM8_TRGO: TIM2 ITR1 input is connected to TIM8 Trigger output(default)
  • TIM2_ETH_PTP: TIM2 ITR1 input is connected to ETH PTP trogger output.
  • TIM2_USBFS_SOF: TIM2 ITR1 input is connected to USB FS SOF.
  • TIM2_USBHS_SOF: TIM2 ITR1 input is connected to USB HS SOF.
  • TIM5_GPIO: TIM5 CH4 input is connected to dedicated Timer pin(default)
  • TIM5_LSI: TIM5 CH4 input is connected to LSI clock.
  • TIM5_LSE: TIM5 CH4 input is connected to LSE clock.
  • TIM5_RTC: TIM5 CH4 input is connected to RTC Output event.
  • TIM11_GPIO: TIM11 CH4 input is connected to dedicated Timer pin(default)
  • TIM11_HSE: TIM11 CH4 input is connected to HSE_RTC clock (HSE divided by a programmable prescaler)
Return values
None
Parameters
TIMxwhere x can be 1, 8 or 16 to select the TIM peripheral.
TIM_Remapspecifies the TIM input reampping source. This parameter can be one of the following values:
  • TIM16_GPIO: TIM16 Channel 1 is connected to GPIO.
  • TIM16_RTC_CLK: TIM16 Channel 1 is connected to RTC input clock.
  • TIM16_HSE_DIV32: TIM16 Channel 1 is connected to HSE/32 clock.
  • TIM16_MCO: TIM16 Channel 1 is connected to MCO clock.
  • TIM1_ADC1_AWDG1: TIM1 ETR is connected to ADC1 AWDG1.
  • TIM1_ADC1_AWDG2: TIM1 ETR is connected to ADC1 AWDG2.
  • TIM1_ADC1_AWDG3: TIM1 ETR is connected to ADC1 AWDG3.
  • TIM1_ADC4_AWDG1: TIM1 ETR is connected to ADC4 AWDG1.
  • TIM1_ADC4_AWDG2: TIM1 ETR is connected to ADC4 AWDG2.
  • TIM1_ADC4_AWDG3: TIM1 ETR is connected to ADC4 AWDG3.
  • TIM8_ADC2_AWDG1: TIM8 ETR is connected to ADC2 AWDG1.
  • TIM8_ADC2_AWDG2: TIM8 ETR is connected to ADC2 AWDG2.
  • TIM8_ADC2_AWDG3: TIM8 ETR is connected to ADC2 AWDG3.
  • TIM8_ADC4_AWDG1: TIM8 ETR is connected to ADC4 AWDG1.
  • TIM8_ADC4_AWDG2: TIM8 ETR is connected to ADC4 AWDG2.
  • TIM8_ADC4_AWDG3: TIM8 ETR is connected to ADC4 AWDG3.
Return values
None

Definition at line 3173 of file stm32f4xx_tim.c.

void TIM_SelectCCDMA ( TIM_TypeDef TIMx,
FunctionalState  NewState 
)

Selects the TIMx peripheral Capture Compare DMA source.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
NewStatenew state of the Capture Compare DMA source This parameter can be: ENABLE or DISABLE.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 8, 15, 16 or 17 to select the TIM peripheral.
NewStatenew state of the Capture Compare DMA source This parameter can be: ENABLE or DISABLE.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 8, 15, 16 or 17 to select the TIM peripheral.
NewStatenew state of the Capture Compare DMA source This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 2644 of file stm32f4xx_tim.c.

void TIM_SelectCOM ( TIM_TypeDef TIMx,
FunctionalState  NewState 
)

Selects the TIM peripheral Commutation event.

Parameters
TIMxwhere x can be 1 or 8 to select the TIMx peripheral
NewStatenew state of the Commutation event. This parameter can be: ENABLE or DISABLE.
Return values
None
Parameters
TIMxwhere x can be 1, 8, 15, 16 or 17 to select the TIMx peripheral
NewStatenew state of the Commutation event. This parameter can be: ENABLE or DISABLE.
Return values
None
Parameters
TIMxwhere x can be 1, 8, 15, 16 or 17 to select the TIMx peripheral
NewStatenew state of the Commutation event. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 2290 of file stm32f4xx_tim.c.

void TIM_SelectGC5C1 ( TIM_TypeDef TIMx,
FunctionalState  NewState 
)

Selects the TIM Group Channel 5 and Channel 1, OC1REFC is the logical AND of OC1REFC and OC5REF.

Parameters
TIMxwhere x can be 1 or 8 to select the TIMx peripheral
NewStatenew state of the Commutation event. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 1110 of file stm32f30x_tim.c.

void TIM_SelectGC5C2 ( TIM_TypeDef TIMx,
FunctionalState  NewState 
)

Selects the TIM Group Channel 5 and Channel 2, OC2REFC is the logical AND of OC2REFC and OC5REF.

Parameters
TIMxwhere x can be 1 or 8 to select the TIMx peripheral
NewStatenew state of the Commutation event. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 1136 of file stm32f30x_tim.c.

void TIM_SelectGC5C3 ( TIM_TypeDef TIMx,
FunctionalState  NewState 
)

Selects the TIM Group Channel 5 and Channel 3, OC3REFC is the logical AND of OC3REFC and OC5REF.

Parameters
TIMxwhere x can be 1 or 8 to select the TIMx peripheral
NewStatenew state of the Commutation event. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 1163 of file stm32f30x_tim.c.

void TIM_SelectHallSensor ( TIM_TypeDef TIMx,
FunctionalState  NewState 
)

Enables or disables the TIMx's Hall sensor interface.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM peripheral.
NewStatenew state of the TIMx Hall sensor interface. This parameter can be: ENABLE or DISABLE.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 8 or 15 to select the TIM peripheral.
NewStatenew state of the TIMx Hall sensor interface. This parameter can be: ENABLE or DISABLE.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
NewStatenew state of the TIMx Hall sensor interface. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 3122 of file stm32f4xx_tim.c.

void TIM_SelectInputTrigger ( TIM_TypeDef TIMx,
uint16_t  TIM_InputTriggerSource 
)

Selects the Input Trigger source.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 8, 9, 10, 11, 12, 13 or 14 to select the TIM peripheral.
TIM_InputTriggerSourceThe Input Trigger source. This parameter can be one of the following values:
  • TIM_TS_ITR0: Internal Trigger 0
  • TIM_TS_ITR1: Internal Trigger 1
  • TIM_TS_ITR2: Internal Trigger 2
  • TIM_TS_ITR3: Internal Trigger 3
  • TIM_TS_TI1F_ED: TI1 Edge Detector
  • TIM_TS_TI1FP1: Filtered Timer Input 1
  • TIM_TS_TI2FP2: Filtered Timer Input 2
  • TIM_TS_ETRF: External Trigger input
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 8 or 15 to select the TIM peripheral.
TIM_InputTriggerSourceThe Input Trigger source. This parameter can be one of the following values:
  • TIM_TS_ITR0: Internal Trigger 0
  • TIM_TS_ITR1: Internal Trigger 1
  • TIM_TS_ITR2: Internal Trigger 2
  • TIM_TS_ITR3: Internal Trigger 3
  • TIM_TS_TI1F_ED: TI1 Edge Detector
  • TIM_TS_TI1FP1: Filtered Timer Input 1
  • TIM_TS_TI2FP2: Filtered Timer Input 2
  • TIM_TS_ETRF: External Trigger input
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15 to select the TIM peripheral.
TIM_InputTriggerSourceThe Input Trigger source. This parameter can be one of the following values:
  • TIM_TS_ITR0: Internal Trigger 0
  • TIM_TS_ITR1: Internal Trigger 1
  • TIM_TS_ITR2: Internal Trigger 2
  • TIM_TS_ITR3: Internal Trigger 3
  • TIM_TS_TI1F_ED: TI1 Edge Detector
  • TIM_TS_TI1FP1: Filtered Timer Input 1
  • TIM_TS_TI2FP2: Filtered Timer Input 2
  • TIM_TS_ETRF: External Trigger input
Return values
None

Definition at line 2892 of file stm32f4xx_tim.c.

void TIM_SelectMasterSlaveMode ( TIM_TypeDef TIMx,
uint16_t  TIM_MasterSlaveMode 
)

Sets or Resets the TIMx Master/Slave Mode.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM peripheral.
TIM_MasterSlaveModespecifies the Timer Master Slave Mode. This parameter can be one of the following values:
  • TIM_MasterSlaveMode_Enable: synchronization between the current timer and its slaves (through TRGO)
  • TIM_MasterSlaveMode_Disable: No action
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 8 or 15 to select the TIM peripheral.
TIM_MasterSlaveModespecifies the Timer Master Slave Mode. This parameter can be one of the following values:
  • TIM_MasterSlaveMode_Enable: synchronization between the current timer and its slaves (through TRGO)
  • TIM_MasterSlaveMode_Disable: No action
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15 to select the TIM peripheral.
TIM_MasterSlaveModespecifies the Timer Master Slave Mode. This parameter can be one of the following values:
  • TIM_MasterSlaveMode_Enable: synchronization between the current timer and its slaves (through TRGO).
  • TIM_MasterSlaveMode_Disable: No action
Return values
None

Definition at line 2982 of file stm32f4xx_tim.c.

void TIM_SelectOCREFClear ( TIM_TypeDef TIMx,
uint16_t  TIM_OCReferenceClear 
)

Selects the OCReference Clear source.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 8, 15, 16 or 17 to select the TIM peripheral.
TIM_OCReferenceClearspecifies the OCReference Clear source. This parameter can be one of the following values:
  • TIM_OCReferenceClear_ETRF: The internal OCreference clear input is connected to ETRF.
  • TIM_OCReferenceClear_OCREFCLR: The internal OCreference clear input is connected to OCREF_CLR input.
Return values
None

Definition at line 2010 of file stm32f30x_tim.c.

void TIM_SelectOCxM ( TIM_TypeDef TIMx,
uint16_t  TIM_Channel,
uint32_t  TIM_OCMode 
)

Selects the TIM Output Compare Mode.

Note
This function disables the selected channel before changing the Output Compare Mode. If needed, user has to enable this channel using TIM_CCxCmd() and TIM_CCxNCmd() functions.
Parameters
TIMxwhere x can be 1, 2, 3, 4, 8, 15, 16 or 17 to select the TIM peripheral.
TIM_Channelspecifies the TIM Channel This parameter can be one of the following values:
  • TIM_Channel_1: TIM Channel 1
  • TIM_Channel_2: TIM Channel 2
  • TIM_Channel_3: TIM Channel 3
  • TIM_Channel_4: TIM Channel 4
TIM_OCModespecifies the TIM Output Compare Mode. This parameter can be one of the following values:
  • TIM_OCMode_Timing
  • TIM_OCMode_Active
  • TIM_OCMode_Toggle
  • TIM_OCMode_PWM1
  • TIM_OCMode_PWM2
  • TIM_ForcedAction_Active
  • TIM_ForcedAction_InActive
  • TIM_OCMode_Retrigerrable_OPM1
  • TIM_OCMode_Retrigerrable_OPM2
  • TIM_OCMode_Combined_PWM1
  • TIM_OCMode_Combined_PWM2
  • TIM_OCMode_Asymmetric_PWM1
  • TIM_OCMode_Asymmetric_PWM2
Return values
None

Definition at line 1229 of file stm32f30x_tim.c.

void TIM_SelectOnePulseMode ( TIM_TypeDef TIMx,
uint16_t  TIM_OPMode 
)

Selects the TIMx's One Pulse Mode.

Parameters
TIMxwhere x can be 1 to 14 to select the TIM peripheral.
TIM_OPModespecifies the OPM Mode to be used. This parameter can be one of the following values:
  • TIM_OPMode_Single
  • TIM_OPMode_Repetitive
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 6 ,7 ,8, 15, 16 or 17 to select the TIM peripheral.
TIM_OPModespecifies the OPM Mode to be used. This parameter can be one of the following values:
  • TIM_OPMode_Single
  • TIM_OPMode_Repetitive
Return values
None
Parameters
TIMxwhere x can be 1 to 17 to select the TIM peripheral.
TIM_OPModespecifies the OPM Mode to be used. This parameter can be one of the following values:
  • TIM_OPMode_Single
  • TIM_OPMode_Repetitive
Return values
None

Definition at line 549 of file stm32f4xx_tim.c.

void TIM_SelectOutputTrigger ( TIM_TypeDef TIMx,
uint16_t  TIM_TRGOSource 
)

Selects the TIMx Trigger Output Mode.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 6, 7 or 8 to select the TIM peripheral.
TIM_TRGOSourcespecifies the Trigger Output source. This parameter can be one of the following values:
  • For all TIMx
    • TIM_TRGOSource_Reset: The UG bit in the TIM_EGR register is used as the trigger output(TRGO)
    • TIM_TRGOSource_Enable: The Counter Enable CEN is used as the trigger output(TRGO)
    • TIM_TRGOSource_Update: The update event is selected as the trigger output(TRGO)
  • For all TIMx except TIM6 and TIM7
    • TIM_TRGOSource_OC1: The trigger output sends a positive pulse when the CC1IF flag is to be set, as soon as a capture or compare match occurs(TRGO)
    • TIM_TRGOSource_OC1Ref: OC1REF signal is used as the trigger output(TRGO)
    • TIM_TRGOSource_OC2Ref: OC2REF signal is used as the trigger output(TRGO)
    • TIM_TRGOSource_OC3Ref: OC3REF signal is used as the trigger output(TRGO)
    • TIM_TRGOSource_OC4Ref: OC4REF signal is used as the trigger output(TRGO)
    Return values
    None
    Parameters
    TIMxwhere x can be 1, 2, 3, 4, 5, 6, 7, 8 or 15 to select the TIM peripheral.
    TIM_TRGOSourcespecifies the Trigger Output source. This parameter can be one of the following values:
  • For all TIMx
    • TIM_TRGOSource_Reset: The UG bit in the TIM_EGR register is used as the trigger output(TRGO)
    • TIM_TRGOSource_Enable: The Counter Enable CEN is used as the trigger output(TRGO)
    • TIM_TRGOSource_Update: The update event is selected as the trigger output(TRGO)
  • For all TIMx except TIM6 and TIM7
    • TIM_TRGOSource_OC1: The trigger output sends a positive pulse when the CC1IF flag is to be set, as soon as a capture or compare match occurs(TRGO)
    • TIM_TRGOSource_OC1Ref: OC1REF signal is used as the trigger output(TRGO)
    • TIM_TRGOSource_OC2Ref: OC2REF signal is used as the trigger output(TRGO)
    • TIM_TRGOSource_OC3Ref: OC3REF signal is used as the trigger output(TRGO)
    • TIM_TRGOSource_OC4Ref: OC4REF signal is used as the trigger output(TRGO)
    Return values
    None
    Parameters
    TIMxwhere x can be 1, 2, 3, 4, 5, 6, 7, 8, 9, 12 or 15 to select the TIM peripheral.
    TIM_TRGOSourcespecifies the Trigger Output source. This paramter can be one of the following values:
  • For all TIMx
    • TIM_TRGOSource_Reset: The UG bit in the TIM_EGR register is used as the trigger output (TRGO).
    • TIM_TRGOSource_Enable: The Counter Enable CEN is used as the trigger output (TRGO).
    • TIM_TRGOSource_Update: The update event is selected as the trigger output (TRGO).
  • For all TIMx except TIM6 and TIM7
    • TIM_TRGOSource_OC1: The trigger output sends a positive pulse when the CC1IF flag is to be set, as soon as a capture or compare match occurs (TRGO).
    • TIM_TRGOSource_OC1Ref: OC1REF signal is used as the trigger output (TRGO).
    • TIM_TRGOSource_OC2Ref: OC2REF signal is used as the trigger output (TRGO).
    • TIM_TRGOSource_OC3Ref: OC3REF signal is used as the trigger output (TRGO).
    • TIM_TRGOSource_OC4Ref: OC4REF signal is used as the trigger output (TRGO).
    Return values
    None

Definition at line 2935 of file stm32f4xx_tim.c.

void TIM_SelectOutputTrigger2 ( TIM_TypeDef TIMx,
uint32_t  TIM_TRGO2Source 
)

Selects the TIMx Trigger Output Mode2 (TRGO2).

Parameters
TIMxwhere x can be 1 or 8 to select the TIM peripheral.
TIM_TRGO2Sourcespecifies the Trigger Output source. This parameter can be one of the following values:
  • For all TIMx
    • TIM_TRGOSource_Reset: The UG bit in the TIM_EGR register is used as the trigger output(TRGO2)
    • TIM_TRGOSource_Enable: The Counter Enable CEN is used as the trigger output(TRGO2)
    • TIM_TRGOSource_Update: The update event is selected as the trigger output(TRGO2)
    • TIM_TRGOSource_OC1: The trigger output sends a positive pulse when the CC1IF flag is to be set, as soon as a capture or compare match occurs(TRGO2)
    • TIM_TRGOSource_OC1Ref: OC1REF signal is used as the trigger output(TRGO2)
    • TIM_TRGOSource_OC2Ref: OC2REF signal is used as the trigger output(TRGO2)
    • TIM_TRGOSource_OC3Ref: OC3REF signal is used as the trigger output(TRGO2)
    • TIM_TRGOSource_OC4Ref: OC4REF signal is used as the trigger output(TRGO2)
    • TIM_TRGO2Source_OC4Ref_RisingFalling: OC4Ref Rising and Falling are used as the trigger output(TRGO2)
    • TIM_TRGO2Source_OC6Ref_RisingFalling: OC6Ref Rising and Falling are used as the trigger output(TRGO2)
    • TIM_TRGO2Source_OC4RefRising_OC6RefRising: OC4Ref Rising and OC6Ref Rising are used as the trigger output(TRGO2)
    • TIM_TRGO2Source_OC4RefRising_OC6RefFalling: OC4Ref Rising and OC6Ref Falling are used as the trigger output(TRGO2)
    • TIM_TRGO2Source_OC5RefRising_OC6RefRising: OC5Ref Rising and OC6Ref Rising are used as the trigger output(TRGO2)
    • TIM_TRGO2Source_OC5RefRising_OC6RefFalling: OC5Ref Rising and OC6Ref Falling are used as the trigger output(TRGO2)
    Return values
    None

Definition at line 3557 of file stm32f30x_tim.c.

void TIM_SelectSlaveMode ( TIM_TypeDef TIMx,
uint32_t  TIM_SlaveMode 
)

Selects the TIMx Slave Mode.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 8 or 15 to select the TIM peripheral.
TIM_SlaveModespecifies the Timer Slave Mode. This parameter can be one of the following values:
  • TIM_SlaveMode_Reset: Rising edge of the selected trigger signal(TRGI) reinitialize the counter and triggers an update of the registers
  • TIM_SlaveMode_Gated: The counter clock is enabled when the trigger signal (TRGI) is high
  • TIM_SlaveMode_Trigger: The counter starts at a rising edge of the trigger TRGI
  • TIM_SlaveMode_External1: Rising edges of the selected trigger (TRGI) clock the counter
  • TIM_SlaveMode_Combined_ResetTrigger: Rising edge of the selected trigger input (TRGI) reinitializes the counter, generates an update of the registers and starts the counter.
Return values
None

Definition at line 3584 of file stm32f30x_tim.c.

void TIM_SetAutoreload ( TIM_TypeDef TIMx,
uint32_t  Autoreload 
)

Sets the TIMx Autoreload Register value.

Parameters
TIMxwhere x can be 1 to 14 to select the TIM peripheral.
Autoreloadspecifies the Autoreload register new value.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 6 ,7 ,8, 15, 16 or 17 to select the TIM peripheral.
Autoreloadspecifies the Autoreload register new value.
Return values
None

Definition at line 424 of file stm32f4xx_tim.c.

void TIM_SetClockDivision ( TIM_TypeDef TIMx,
uint16_t  TIM_CKD 
)

Sets the TIMx Clock Division value.

Parameters
TIMxwhere x can be 1 to 14 except 6 and 7, to select the TIM peripheral.
TIM_CKDspecifies the clock division value. This parameter can be one of the following value:
  • TIM_CKD_DIV1: TDTS = Tck_tim
  • TIM_CKD_DIV2: TDTS = 2*Tck_tim
  • TIM_CKD_DIV4: TDTS = 4*Tck_tim
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 8, 15, 16 or 17, to select the TIM peripheral.
TIM_CKDspecifies the clock division value. This parameter can be one of the following value:
  • TIM_CKD_DIV1: TDTS = Tck_tim
  • TIM_CKD_DIV2: TDTS = 2*Tck_tim
  • TIM_CKD_DIV4: TDTS = 4*Tck_tim
Return values
None
Parameters
TIMxwhere x can be 1 to 17 except 6 and 7 to select the TIM peripheral.
TIM_CKDspecifies the clock division value. This parameter can be one of the following value:
  • TIM_CKD_DIV1: TDTS = Tck_tim
  • TIM_CKD_DIV2: TDTS = 2*Tck_tim
  • TIM_CKD_DIV4: TDTS = 4*Tck_tim
Return values
None

Definition at line 572 of file stm32f4xx_tim.c.

void TIM_SetCompare1 ( TIM_TypeDef TIMx,
uint32_t  Compare1 
)

Sets the TIMx Capture Compare1 Register value.

Parameters
TIMxwhere x can be 1 to 14 except 6 and 7, to select the TIM peripheral.
Compare1specifies the Capture Compare1 register new value.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 8, 15, 16 or 17 to select the TIM peripheral.
Compare1specifies the Capture Compare1 register new value.
Return values
None

Definition at line 1060 of file stm32f4xx_tim.c.

void TIM_SetCompare2 ( TIM_TypeDef TIMx,
uint32_t  Compare2 
)

Sets the TIMx Capture Compare2 Register value.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM peripheral.
Compare2specifies the Capture Compare2 register new value.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 8 or 15 to select the TIM peripheral.
Compare2specifies the Capture Compare2 register new value.
Return values
None

Definition at line 1076 of file stm32f4xx_tim.c.

void TIM_SetCompare3 ( TIM_TypeDef TIMx,
uint32_t  Compare3 
)

Sets the TIMx Capture Compare3 Register value.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
Compare3specifies the Capture Compare3 register new value.
Return values
None

Definition at line 1091 of file stm32f4xx_tim.c.

void TIM_SetCompare4 ( TIM_TypeDef TIMx,
uint32_t  Compare4 
)

Sets the TIMx Capture Compare4 Register value.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
Compare4specifies the Capture Compare4 register new value.
Return values
None

Definition at line 1106 of file stm32f4xx_tim.c.

void TIM_SetCompare5 ( TIM_TypeDef TIMx,
uint32_t  Compare5 
)

Sets the TIMx Capture Compare5 Register value.

Parameters
TIMxwhere x can be 1 or 8 to select the TIM peripheral.
Compare5specifies the Capture Compare5 register new value.
Return values
None

Definition at line 1336 of file stm32f30x_tim.c.

void TIM_SetCompare6 ( TIM_TypeDef TIMx,
uint32_t  Compare6 
)

Sets the TIMx Capture Compare6 Register value.

Parameters
TIMxwhere x can be 1 or 8 to select the TIM peripheral.
Compare6specifies the Capture Compare5 register new value.
Return values
None

Definition at line 1351 of file stm32f30x_tim.c.

void TIM_SetCounter ( TIM_TypeDef TIMx,
uint32_t  Counter 
)

Sets the TIMx Counter Register value.

Parameters
TIMxwhere x can be 1 to 14 to select the TIM peripheral.
Counterspecifies the Counter register new value.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 6 ,7 ,8, 15, 16 or 17 to select the TIM peripheral.
Counterspecifies the Counter register new value.
Return values
None

Definition at line 409 of file stm32f4xx_tim.c.

void TIM_SetIC1Prescaler ( TIM_TypeDef TIMx,
uint16_t  TIM_ICPSC 
)

Sets the TIMx Input Capture 1 prescaler.

Parameters
TIMxwhere x can be 1 to 14 except 6 and 7, to select the TIM peripheral.
TIM_ICPSCspecifies the Input Capture1 prescaler new value. This parameter can be one of the following values:
  • TIM_ICPSC_DIV1: no prescaler
  • TIM_ICPSC_DIV2: capture is done once every 2 events
  • TIM_ICPSC_DIV4: capture is done once every 4 events
  • TIM_ICPSC_DIV8: capture is done once every 8 events
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 8, 15, 16 or 17 to select the TIM peripheral.
TIM_ICPSCspecifies the Input Capture1 prescaler new value. This parameter can be one of the following values:
  • TIM_ICPSC_DIV1: no prescaler
  • TIM_ICPSC_DIV2: capture is done once every 2 events
  • TIM_ICPSC_DIV4: capture is done once every 4 events
  • TIM_ICPSC_DIV8: capture is done once every 8 events
Return values
None
Parameters
TIMxwhere x can be 1 to 17 except 6 and 7 to select the TIM peripheral.
TIM_ICPSCspecifies the Input Capture1 prescaler new value. This parameter can be one of the following values:
  • TIM_ICPSC_DIV1: no prescaler
  • TIM_ICPSC_DIV2: capture is done once every 2 events
  • TIM_ICPSC_DIV4: capture is done once every 4 events
  • TIM_ICPSC_DIV8: capture is done once every 8 events
Return values
None

Definition at line 2095 of file stm32f4xx_tim.c.

void TIM_SetIC2Prescaler ( TIM_TypeDef TIMx,
uint16_t  TIM_ICPSC 
)

Sets the TIMx Input Capture 2 prescaler.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM peripheral.
TIM_ICPSCspecifies the Input Capture2 prescaler new value. This parameter can be one of the following values:
  • TIM_ICPSC_DIV1: no prescaler
  • TIM_ICPSC_DIV2: capture is done once every 2 events
  • TIM_ICPSC_DIV4: capture is done once every 4 events
  • TIM_ICPSC_DIV8: capture is done once every 8 events
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 8 or 15 to select the TIM peripheral.
TIM_ICPSCspecifies the Input Capture2 prescaler new value. This parameter can be one of the following values:
  • TIM_ICPSC_DIV1: no prescaler
  • TIM_ICPSC_DIV2: capture is done once every 2 events
  • TIM_ICPSC_DIV4: capture is done once every 4 events
  • TIM_ICPSC_DIV8: capture is done once every 8 events
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15 to select the TIM peripheral.
TIM_ICPSCspecifies the Input Capture2 prescaler new value. This parameter can be one of the following values:
  • TIM_ICPSC_DIV1: no prescaler
  • TIM_ICPSC_DIV2: capture is done once every 2 events
  • TIM_ICPSC_DIV4: capture is done once every 4 events
  • TIM_ICPSC_DIV8: capture is done once every 8 events
Return values
None

Definition at line 2120 of file stm32f4xx_tim.c.

void TIM_SetIC3Prescaler ( TIM_TypeDef TIMx,
uint16_t  TIM_ICPSC 
)

Sets the TIMx Input Capture 3 prescaler.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_ICPSCspecifies the Input Capture3 prescaler new value. This parameter can be one of the following values:
  • TIM_ICPSC_DIV1: no prescaler
  • TIM_ICPSC_DIV2: capture is done once every 2 events
  • TIM_ICPSC_DIV4: capture is done once every 4 events
  • TIM_ICPSC_DIV8: capture is done once every 8 events
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4 or 8 to select the TIM peripheral.
TIM_ICPSCspecifies the Input Capture3 prescaler new value. This parameter can be one of the following values:
  • TIM_ICPSC_DIV1: no prescaler
  • TIM_ICPSC_DIV2: capture is done once every 2 events
  • TIM_ICPSC_DIV4: capture is done once every 4 events
  • TIM_ICPSC_DIV8: capture is done once every 8 events
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_ICPSCspecifies the Input Capture3 prescaler new value. This parameter can be one of the following values:
  • TIM_ICPSC_DIV1: no prescaler
  • TIM_ICPSC_DIV2: capture is done once every 2 events
  • TIM_ICPSC_DIV4: capture is done once every 4 events
  • TIM_ICPSC_DIV8: capture is done once every 8 events
Return values
None

Definition at line 2144 of file stm32f4xx_tim.c.

void TIM_SetIC4Prescaler ( TIM_TypeDef TIMx,
uint16_t  TIM_ICPSC 
)

Sets the TIMx Input Capture 4 prescaler.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_ICPSCspecifies the Input Capture4 prescaler new value. This parameter can be one of the following values:
  • TIM_ICPSC_DIV1: no prescaler
  • TIM_ICPSC_DIV2: capture is done once every 2 events
  • TIM_ICPSC_DIV4: capture is done once every 4 events
  • TIM_ICPSC_DIV8: capture is done once every 8 events
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4 or 8 to select the TIM peripheral.
TIM_ICPSCspecifies the Input Capture4 prescaler new value. This parameter can be one of the following values:
  • TIM_ICPSC_DIV1: no prescaler
  • TIM_ICPSC_DIV2: capture is done once every 2 events
  • TIM_ICPSC_DIV4: capture is done once every 4 events
  • TIM_ICPSC_DIV8: capture is done once every 8 events
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_ICPSCspecifies the Input Capture4 prescaler new value. This parameter can be one of the following values:
  • TIM_ICPSC_DIV1: no prescaler
  • TIM_ICPSC_DIV2: capture is done once every 2 events
  • TIM_ICPSC_DIV4: capture is done once every 4 events
  • TIM_ICPSC_DIV8: capture is done once every 8 events
Return values
None

Definition at line 2168 of file stm32f4xx_tim.c.

void TIM_TimeBaseInit ( TIM_TypeDef TIMx,
TIM_TimeBaseInitTypeDef TIM_TimeBaseInitStruct 
)

Initializes the TIMx Time Base Unit peripheral according to the specified parameters in the TIM_TimeBaseInitStruct.

Parameters
TIMxwhere x can be 1 to 14 to select the TIM peripheral.
TIM_TimeBaseInitStructpointer to a TIM_TimeBaseInitTypeDef structure that contains the configuration information for the specified TIM peripheral.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 6 ,7 ,8, 15, 16 or 17 to select the TIM peripheral.
TIM_TimeBaseInitStructpointer to a TIM_TimeBaseInitTypeDef structure that contains the configuration information for the specified TIM peripheral.
Return values
None
Parameters
TIMxwhere x can be 1 to 17 to select the TIM peripheral.
TIM_TimeBaseInitStructpointer to a TIM_TimeBaseInitTypeDef structure that contains the configuration information for the specified TIM peripheral.
Return values
None

Definition at line 288 of file stm32f4xx_tim.c.

void TIM_TimeBaseStructInit ( TIM_TimeBaseInitTypeDef TIM_TimeBaseInitStruct)

Fills each TIM_TimeBaseInitStruct member with its default value.

Parameters
TIM_TimeBaseInitStruct: pointer to a TIM_TimeBaseInitTypeDef structure which will be initialized.
Return values
None

Definition at line 340 of file stm32f4xx_tim.c.

void TIM_TIxExternalClockConfig ( TIM_TypeDef TIMx,
uint16_t  TIM_TIxExternalCLKSource,
uint16_t  TIM_ICPolarity,
uint16_t  ICFilter 
)

Configures the TIMx Trigger as External Clock.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 8, 9, 10, 11, 12, 13 or 14 to select the TIM peripheral.
TIM_TIxExternalCLKSourceTrigger source. This parameter can be one of the following values:
  • TIM_TIxExternalCLK1Source_TI1ED: TI1 Edge Detector
  • TIM_TIxExternalCLK1Source_TI1: Filtered Timer Input 1
  • TIM_TIxExternalCLK1Source_TI2: Filtered Timer Input 2
TIM_ICPolarityspecifies the TIx Polarity. This parameter can be one of the following values:
  • TIM_ICPolarity_Rising
  • TIM_ICPolarity_Falling
ICFilterspecifies the filter value. This parameter must be a value between 0x0 and 0xF.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 8 or 15 to select the TIM peripheral.
TIM_TIxExternalCLKSourceTrigger source. This parameter can be one of the following values:
  • TIM_TIxExternalCLK1Source_TI1ED: TI1 Edge Detector
  • TIM_TIxExternalCLK1Source_TI1: Filtered Timer Input 1
  • TIM_TIxExternalCLK1Source_TI2: Filtered Timer Input 2
TIM_ICPolarityspecifies the TIx Polarity. This parameter can be one of the following values:
  • TIM_ICPolarity_Rising
  • TIM_ICPolarity_Falling
ICFilterspecifies the filter value. This parameter must be a value between 0x0 and 0xF.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 9, 12 or 15 to select the TIM peripheral.
TIM_TIxExternalCLKSourceTrigger source. This parameter can be one of the following values:
  • TIM_TIxExternalCLK1Source_TI1ED: TI1 Edge Detector
  • TIM_TIxExternalCLK1Source_TI1: Filtered Timer Input 1
  • TIM_TIxExternalCLK1Source_TI2: Filtered Timer Input 2
TIM_ICPolarityspecifies the TIx Polarity. This parameter can be one of the following values:
  • TIM_ICPolarity_Rising
  • TIM_ICPolarity_Falling
ICFilter: specifies the filter value. This parameter must be a value between 0x0 and 0xF.
Return values
None

Definition at line 2734 of file stm32f4xx_tim.c.

void TIM_UIFRemap ( TIM_TypeDef TIMx,
FunctionalState  NewState 
)

Sets or resets the update interrupt flag (UIF)status bit Remapping. when sets, reading TIMx_CNT register returns UIF bit instead of CNT[31].

Parameters
TIMxwhere x can be 1, 2, 3, 4, 6 ,7 ,8, 15, 16 or 17 to select the TIM peripheral.
NewStatenew state of the UIFREMAP bit. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 502 of file stm32f30x_tim.c.

void TIM_UpdateDisableConfig ( TIM_TypeDef TIMx,
FunctionalState  NewState 
)

Enables or Disables the TIMx Update event.

Parameters
TIMxwhere x can be 1 to 14 to select the TIM peripheral.
NewStatenew state of the TIMx UDIS bit This parameter can be: ENABLE or DISABLE.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 6 ,7 ,8, 15, 16 or 17 to select the TIM peripheral.
NewStatenew state of the TIMx UDIS bit This parameter can be: ENABLE or DISABLE.
Return values
None
Parameters
TIMxwhere x can be 1 to 17 to select the TIM peripheral.
NewStatenew state of the TIMx UDIS bit This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 468 of file stm32f4xx_tim.c.

void TIM_UpdateRequestConfig ( TIM_TypeDef TIMx,
uint16_t  TIM_UpdateSource 
)

Configures the TIMx Update Request Interrupt source.

Parameters
TIMxwhere x can be 1 to 14 to select the TIM peripheral.
TIM_UpdateSourcespecifies the Update source. This parameter can be one of the following values:
  • TIM_UpdateSource_Global: Source of update is the counter overflow/underflow or the setting of UG bit, or an update generation through the slave mode controller.
  • TIM_UpdateSource_Regular: Source of update is counter overflow/underflow.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 6 ,7 ,8, 15, 16 or 17 to select the TIM peripheral.
TIM_UpdateSourcespecifies the Update source. This parameter can be one of the following values:
  • TIM_UpdateSource_Regular: Source of update is the counter overflow/underflow or the setting of UG bit, or an update generation through the slave mode controller.
  • TIM_UpdateSource_Global: Source of update is counter overflow/underflow.
Return values
None
Parameters
TIMxwhere x can be 1 to 17 to select the TIM peripheral.
TIM_UpdateSourcespecifies the Update source. This parameter can be one of the following values:
  • TIM_UpdateSource_Regular: Source of update is the counter overflow/underflow or the setting of UG bit, or an update generation through the slave mode controller.
  • TIM_UpdateSource_Global: Source of update is counter overflow/underflow.
Return values
None

Definition at line 497 of file stm32f4xx_tim.c.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Fri Jul 24 2020 03:20:13