Functions | |
void | TIM_DeInit (TIM_TypeDef *TIMx) |
Deinitializes the TIMx peripheral registers to their default reset values. | |
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. | |
void | TIM_OC1Init (TIM_TypeDef *TIMx, TIM_OCInitTypeDef *TIM_OCInitStruct) |
Initializes the TIMx Channel1 according to the specified parameters in the TIM_OCInitStruct. | |
void | TIM_OC2Init (TIM_TypeDef *TIMx, TIM_OCInitTypeDef *TIM_OCInitStruct) |
Initializes the TIMx Channel2 according to the specified parameters in the TIM_OCInitStruct. | |
void | TIM_OC3Init (TIM_TypeDef *TIMx, TIM_OCInitTypeDef *TIM_OCInitStruct) |
Initializes the TIMx Channel3 according to the specified parameters in the TIM_OCInitStruct. | |
void | TIM_OC4Init (TIM_TypeDef *TIMx, TIM_OCInitTypeDef *TIM_OCInitStruct) |
Initializes the TIMx Channel4 according to the specified parameters in the TIM_OCInitStruct. | |
void | TIM_ICInit (TIM_TypeDef *TIMx, TIM_ICInitTypeDef *TIM_ICInitStruct) |
Initializes the TIM peripheral according to the specified parameters in the TIM_ICInitStruct. | |
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. | |
void | TIM_BDTRConfig (TIM_TypeDef *TIMx, TIM_BDTRInitTypeDef *TIM_BDTRInitStruct) |
Configures the: Break feature, dead time, Lock level, the OSSI, the OSSR State and the AOE(automatic output enable). | |
void | TIM_TimeBaseStructInit (TIM_TimeBaseInitTypeDef *TIM_TimeBaseInitStruct) |
Fills each TIM_TimeBaseInitStruct member with its default value. | |
void | TIM_OCStructInit (TIM_OCInitTypeDef *TIM_OCInitStruct) |
Fills each TIM_OCInitStruct member with its default value. | |
void | TIM_ICStructInit (TIM_ICInitTypeDef *TIM_ICInitStruct) |
Fills each TIM_ICInitStruct member with its default value. | |
void | TIM_BDTRStructInit (TIM_BDTRInitTypeDef *TIM_BDTRInitStruct) |
Fills each TIM_BDTRInitStruct member with its default value. | |
void | TIM_Cmd (TIM_TypeDef *TIMx, FunctionalState NewState) |
Enables or disables the specified TIM peripheral. | |
void | TIM_CtrlPWMOutputs (TIM_TypeDef *TIMx, FunctionalState NewState) |
Enables or disables the TIM peripheral Main Outputs. | |
void | TIM_ITConfig (TIM_TypeDef *TIMx, uint16_t TIM_IT, FunctionalState NewState) |
Enables or disables the specified TIM interrupts. | |
void | TIM_GenerateEvent (TIM_TypeDef *TIMx, uint16_t TIM_EventSource) |
Configures the TIMx event to be generate by software. | |
void | TIM_DMAConfig (TIM_TypeDef *TIMx, uint16_t TIM_DMABase, uint16_t TIM_DMABurstLength) |
Configures the TIMx’s DMA interface. | |
void | TIM_DMACmd (TIM_TypeDef *TIMx, uint16_t TIM_DMASource, FunctionalState NewState) |
Enables or disables the TIMx’s DMA Requests. | |
void | TIM_InternalClockConfig (TIM_TypeDef *TIMx) |
Configures the TIMx interrnal Clock. | |
void | TIM_ITRxExternalClockConfig (TIM_TypeDef *TIMx, uint16_t TIM_InputTriggerSource) |
Configures the TIMx Internal Trigger as External Clock. | |
void | TIM_TIxExternalClockConfig (TIM_TypeDef *TIMx, uint16_t TIM_TIxExternalCLKSource, uint16_t TIM_ICPolarity, uint16_t ICFilter) |
Configures the TIMx Trigger as External Clock. | |
void | TIM_ETRClockMode1Config (TIM_TypeDef *TIMx, uint16_t TIM_ExtTRGPrescaler, uint16_t TIM_ExtTRGPolarity, uint16_t ExtTRGFilter) |
Configures the External clock Mode1. | |
void | TIM_ETRClockMode2Config (TIM_TypeDef *TIMx, uint16_t TIM_ExtTRGPrescaler, uint16_t TIM_ExtTRGPolarity, uint16_t ExtTRGFilter) |
Configures the External clock Mode2. | |
void | TIM_ETRConfig (TIM_TypeDef *TIMx, uint16_t TIM_ExtTRGPrescaler, uint16_t TIM_ExtTRGPolarity, uint16_t ExtTRGFilter) |
Configures the TIMx External Trigger (ETR). | |
void | TIM_PrescalerConfig (TIM_TypeDef *TIMx, uint16_t Prescaler, uint16_t TIM_PSCReloadMode) |
Configures the TIMx Prescaler. | |
void | TIM_CounterModeConfig (TIM_TypeDef *TIMx, uint16_t TIM_CounterMode) |
Specifies the TIMx Counter Mode to be used. | |
void | TIM_SelectInputTrigger (TIM_TypeDef *TIMx, uint16_t TIM_InputTriggerSource) |
Selects the Input Trigger source. | |
void | TIM_EncoderInterfaceConfig (TIM_TypeDef *TIMx, uint16_t TIM_EncoderMode, uint16_t TIM_IC1Polarity, uint16_t TIM_IC2Polarity) |
Configures the TIMx Encoder Interface. | |
void | TIM_ForcedOC1Config (TIM_TypeDef *TIMx, uint16_t TIM_ForcedAction) |
Forces the TIMx output 1 waveform to active or inactive level. | |
void | TIM_ForcedOC2Config (TIM_TypeDef *TIMx, uint16_t TIM_ForcedAction) |
Forces the TIMx output 2 waveform to active or inactive level. | |
void | TIM_ForcedOC3Config (TIM_TypeDef *TIMx, uint16_t TIM_ForcedAction) |
Forces the TIMx output 3 waveform to active or inactive level. | |
void | TIM_ForcedOC4Config (TIM_TypeDef *TIMx, uint16_t TIM_ForcedAction) |
Forces the TIMx output 4 waveform to active or inactive level. | |
void | TIM_ARRPreloadConfig (TIM_TypeDef *TIMx, FunctionalState NewState) |
Enables or disables TIMx peripheral Preload register on ARR. | |
void | TIM_SelectCOM (TIM_TypeDef *TIMx, FunctionalState NewState) |
Selects the TIM peripheral Commutation event. | |
void | TIM_SelectCCDMA (TIM_TypeDef *TIMx, FunctionalState NewState) |
Selects the TIMx peripheral Capture Compare DMA source. | |
void | TIM_CCPreloadControl (TIM_TypeDef *TIMx, FunctionalState NewState) |
Sets or Resets the TIM peripheral Capture Compare Preload Control bit. | |
void | TIM_OC1PreloadConfig (TIM_TypeDef *TIMx, uint16_t TIM_OCPreload) |
Enables or disables the TIMx peripheral Preload register on CCR1. | |
void | TIM_OC2PreloadConfig (TIM_TypeDef *TIMx, uint16_t TIM_OCPreload) |
Enables or disables the TIMx peripheral Preload register on CCR2. | |
void | TIM_OC3PreloadConfig (TIM_TypeDef *TIMx, uint16_t TIM_OCPreload) |
Enables or disables the TIMx peripheral Preload register on CCR3. | |
void | TIM_OC4PreloadConfig (TIM_TypeDef *TIMx, uint16_t TIM_OCPreload) |
Enables or disables the TIMx peripheral Preload register on CCR4. | |
void | TIM_OC1FastConfig (TIM_TypeDef *TIMx, uint16_t TIM_OCFast) |
Configures the TIMx Output Compare 1 Fast feature. | |
void | TIM_OC2FastConfig (TIM_TypeDef *TIMx, uint16_t TIM_OCFast) |
Configures the TIMx Output Compare 2 Fast feature. | |
void | TIM_OC3FastConfig (TIM_TypeDef *TIMx, uint16_t TIM_OCFast) |
Configures the TIMx Output Compare 3 Fast feature. | |
void | TIM_OC4FastConfig (TIM_TypeDef *TIMx, uint16_t TIM_OCFast) |
Configures the TIMx Output Compare 4 Fast feature. | |
void | TIM_ClearOC1Ref (TIM_TypeDef *TIMx, uint16_t TIM_OCClear) |
Clears or safeguards the OCREF1 signal on an external event. | |
void | TIM_ClearOC2Ref (TIM_TypeDef *TIMx, uint16_t TIM_OCClear) |
Clears or safeguards the OCREF2 signal on an external event. | |
void | TIM_ClearOC3Ref (TIM_TypeDef *TIMx, uint16_t TIM_OCClear) |
Clears or safeguards the OCREF3 signal on an external event. | |
void | TIM_ClearOC4Ref (TIM_TypeDef *TIMx, uint16_t TIM_OCClear) |
Clears or safeguards the OCREF4 signal on an external event. | |
void | TIM_OC1PolarityConfig (TIM_TypeDef *TIMx, uint16_t TIM_OCPolarity) |
Configures the TIMx channel 1 polarity. | |
void | TIM_OC1NPolarityConfig (TIM_TypeDef *TIMx, uint16_t TIM_OCNPolarity) |
Configures the TIMx Channel 1N polarity. | |
void | TIM_OC2PolarityConfig (TIM_TypeDef *TIMx, uint16_t TIM_OCPolarity) |
Configures the TIMx channel 2 polarity. | |
void | TIM_OC2NPolarityConfig (TIM_TypeDef *TIMx, uint16_t TIM_OCNPolarity) |
Configures the TIMx Channel 2N polarity. | |
void | TIM_OC3PolarityConfig (TIM_TypeDef *TIMx, uint16_t TIM_OCPolarity) |
Configures the TIMx channel 3 polarity. | |
void | TIM_OC3NPolarityConfig (TIM_TypeDef *TIMx, uint16_t TIM_OCNPolarity) |
Configures the TIMx Channel 3N polarity. | |
void | TIM_OC4PolarityConfig (TIM_TypeDef *TIMx, uint16_t TIM_OCPolarity) |
Configures the TIMx channel 4 polarity. | |
void | TIM_CCxCmd (TIM_TypeDef *TIMx, uint16_t TIM_Channel, uint16_t TIM_CCx) |
Enables or disables the TIM Capture Compare Channel x. | |
void | TIM_CCxNCmd (TIM_TypeDef *TIMx, uint16_t TIM_Channel, uint16_t TIM_CCxN) |
Enables or disables the TIM Capture Compare Channel xN. | |
void | TIM_SelectOCxM (TIM_TypeDef *TIMx, uint16_t TIM_Channel, uint16_t TIM_OCMode) |
Selects the TIM Ouput Compare Mode. | |
void | TIM_UpdateDisableConfig (TIM_TypeDef *TIMx, FunctionalState NewState) |
Enables or Disables the TIMx Update event. | |
void | TIM_UpdateRequestConfig (TIM_TypeDef *TIMx, uint16_t TIM_UpdateSource) |
Configures the TIMx Update Request Interrupt source. | |
void | TIM_SelectHallSensor (TIM_TypeDef *TIMx, FunctionalState NewState) |
Enables or disables the TIMx’s Hall sensor interface. | |
void | TIM_SelectOnePulseMode (TIM_TypeDef *TIMx, uint16_t TIM_OPMode) |
Selects the TIMx’s One Pulse Mode. | |
void | TIM_SelectOutputTrigger (TIM_TypeDef *TIMx, uint16_t TIM_TRGOSource) |
Selects the TIMx Trigger Output Mode. | |
void | TIM_SelectSlaveMode (TIM_TypeDef *TIMx, uint16_t TIM_SlaveMode) |
Selects the TIMx Slave Mode. | |
void | TIM_SelectMasterSlaveMode (TIM_TypeDef *TIMx, uint16_t TIM_MasterSlaveMode) |
Sets or Resets the TIMx Master/Slave Mode. | |
void | TIM_SetCounter (TIM_TypeDef *TIMx, uint16_t Counter) |
Sets the TIMx Counter Register value. | |
void | TIM_SetAutoreload (TIM_TypeDef *TIMx, uint16_t Autoreload) |
Sets the TIMx Autoreload Register value. | |
void | TIM_SetCompare1 (TIM_TypeDef *TIMx, uint16_t Compare1) |
Sets the TIMx Capture Compare1 Register value. | |
void | TIM_SetCompare2 (TIM_TypeDef *TIMx, uint16_t Compare2) |
Sets the TIMx Capture Compare2 Register value. | |
void | TIM_SetCompare3 (TIM_TypeDef *TIMx, uint16_t Compare3) |
Sets the TIMx Capture Compare3 Register value. | |
void | TIM_SetCompare4 (TIM_TypeDef *TIMx, uint16_t Compare4) |
Sets the TIMx Capture Compare4 Register value. | |
void | TIM_SetIC1Prescaler (TIM_TypeDef *TIMx, uint16_t TIM_ICPSC) |
Sets the TIMx Input Capture 1 prescaler. | |
void | TIM_SetIC2Prescaler (TIM_TypeDef *TIMx, uint16_t TIM_ICPSC) |
Sets the TIMx Input Capture 2 prescaler. | |
void | TIM_SetIC3Prescaler (TIM_TypeDef *TIMx, uint16_t TIM_ICPSC) |
Sets the TIMx Input Capture 3 prescaler. | |
void | TIM_SetIC4Prescaler (TIM_TypeDef *TIMx, uint16_t TIM_ICPSC) |
Sets the TIMx Input Capture 4 prescaler. | |
void | TIM_SetClockDivision (TIM_TypeDef *TIMx, uint16_t TIM_CKD) |
Sets the TIMx Clock Division value. | |
uint16_t | TIM_GetCapture1 (TIM_TypeDef *TIMx) |
Gets the TIMx Input Capture 1 value. | |
uint16_t | TIM_GetCapture2 (TIM_TypeDef *TIMx) |
Gets the TIMx Input Capture 2 value. | |
uint16_t | TIM_GetCapture3 (TIM_TypeDef *TIMx) |
Gets the TIMx Input Capture 3 value. | |
uint16_t | TIM_GetCapture4 (TIM_TypeDef *TIMx) |
Gets the TIMx Input Capture 4 value. | |
uint16_t | TIM_GetCounter (TIM_TypeDef *TIMx) |
Gets the TIMx Counter value. | |
uint16_t | TIM_GetPrescaler (TIM_TypeDef *TIMx) |
Gets the TIMx Prescaler value. | |
FlagStatus | TIM_GetFlagStatus (TIM_TypeDef *TIMx, uint16_t TIM_FLAG) |
Checks whether the specified TIM flag is set or not. | |
void | TIM_ClearFlag (TIM_TypeDef *TIMx, uint16_t TIM_FLAG) |
Clears the TIMx's pending flags. | |
ITStatus | TIM_GetITStatus (TIM_TypeDef *TIMx, uint16_t TIM_IT) |
Checks whether the TIM interrupt has occurred or not. | |
void | TIM_ClearITPendingBit (TIM_TypeDef *TIMx, uint16_t TIM_IT) |
Clears the TIMx's interrupt pending bits. |
void TIM_DeInit | ( | TIM_TypeDef * | TIMx | ) |
Deinitializes the TIMx peripheral registers to their default reset values.
TIMx,: | where x can be 1 to 17 to select the TIM peripheral. |
None |
References assert_param, DISABLE, ENABLE, IS_TIM_ALL_PERIPH, RCC_APB1Periph_TIM12, RCC_APB1Periph_TIM13, RCC_APB1Periph_TIM14, RCC_APB1Periph_TIM2, RCC_APB1Periph_TIM3, RCC_APB1Periph_TIM4, RCC_APB1Periph_TIM5, RCC_APB1Periph_TIM6, RCC_APB1Periph_TIM7, RCC_APB1PeriphResetCmd(), RCC_APB2Periph_TIM1, RCC_APB2Periph_TIM10, RCC_APB2Periph_TIM11, RCC_APB2Periph_TIM15, RCC_APB2Periph_TIM16, RCC_APB2Periph_TIM17, RCC_APB2Periph_TIM8, RCC_APB2Periph_TIM9, RCC_APB2PeriphResetCmd(), TIM1, TIM10, TIM11, TIM12, TIM13, TIM14, TIM15, TIM16, TIM17, TIM2, TIM3, TIM4, TIM5, TIM6, TIM7, TIM8, and TIM9.
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.
TIMx,: | where x can be 1 to 17 to select the TIM peripheral. |
TIM_TimeBaseInitStruct,: | pointer to a TIM_TimeBaseInitTypeDef structure that contains the configuration information for the specified TIM peripheral. |
None |
References TIM_TypeDef::ARR, assert_param, TIM_TypeDef::CR1, TIM_TypeDef::EGR, IS_TIM_ALL_PERIPH, IS_TIM_CKD_DIV, IS_TIM_COUNTER_MODE, TIM_TypeDef::PSC, TIM_TypeDef::RCR, TIM1, TIM15, TIM16, TIM17, TIM2, TIM3, TIM4, TIM5, TIM6, TIM7, TIM8, TIM_TimeBaseInitTypeDef::TIM_ClockDivision, TIM_TimeBaseInitTypeDef::TIM_CounterMode, TIM_CR1_CKD, TIM_CR1_CMS, TIM_CR1_DIR, TIM_TimeBaseInitTypeDef::TIM_Period, TIM_TimeBaseInitTypeDef::TIM_Prescaler, TIM_PSCReloadMode_Immediate, and TIM_TimeBaseInitTypeDef::TIM_RepetitionCounter.
void TIM_OC1Init | ( | TIM_TypeDef * | TIMx, |
TIM_OCInitTypeDef * | TIM_OCInitStruct | ||
) |
Initializes the TIMx Channel1 according to the specified parameters in the TIM_OCInitStruct.
TIMx,: | where x can be 1 to 17 except 6 and 7 to select the TIM peripheral. |
TIM_OCInitStruct,: | pointer to a TIM_OCInitTypeDef structure that contains the configuration information for the specified TIM peripheral. |
None |
References assert_param, TIM_TypeDef::CCER, TIM_TypeDef::CCMR1, TIM_TypeDef::CCR1, TIM_TypeDef::CR2, IS_TIM_LIST8_PERIPH, IS_TIM_OC_MODE, IS_TIM_OC_POLARITY, IS_TIM_OCIDLE_STATE, IS_TIM_OCN_POLARITY, IS_TIM_OCNIDLE_STATE, IS_TIM_OUTPUT_STATE, IS_TIM_OUTPUTN_STATE, TIM1, TIM15, TIM16, TIM17, TIM8, TIM_CCER_CC1E, TIM_CCER_CC1NE, TIM_CCER_CC1NP, TIM_CCER_CC1P, TIM_CCMR1_CC1S, TIM_CCMR1_OC1M, TIM_CR2_OIS1, TIM_CR2_OIS1N, TIM_OCInitTypeDef::TIM_OCIdleState, TIM_OCInitTypeDef::TIM_OCMode, TIM_OCInitTypeDef::TIM_OCNIdleState, TIM_OCInitTypeDef::TIM_OCNPolarity, TIM_OCInitTypeDef::TIM_OCPolarity, TIM_OCInitTypeDef::TIM_OutputNState, TIM_OCInitTypeDef::TIM_OutputState, and TIM_OCInitTypeDef::TIM_Pulse.
void TIM_OC2Init | ( | TIM_TypeDef * | TIMx, |
TIM_OCInitTypeDef * | TIM_OCInitStruct | ||
) |
Initializes the TIMx Channel2 according to the specified parameters in the TIM_OCInitStruct.
TIMx,: | where x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15 to select the TIM peripheral. |
TIM_OCInitStruct,: | pointer to a TIM_OCInitTypeDef structure that contains the configuration information for the specified TIM peripheral. |
None |
References assert_param, TIM_TypeDef::CCER, TIM_TypeDef::CCMR1, TIM_TypeDef::CCR2, TIM_TypeDef::CR2, IS_TIM_LIST6_PERIPH, IS_TIM_OC_MODE, IS_TIM_OC_POLARITY, IS_TIM_OCIDLE_STATE, IS_TIM_OCN_POLARITY, IS_TIM_OCNIDLE_STATE, IS_TIM_OUTPUT_STATE, IS_TIM_OUTPUTN_STATE, TIM1, TIM8, TIM_CCER_CC2E, TIM_CCER_CC2NE, TIM_CCER_CC2NP, TIM_CCER_CC2P, TIM_CCMR1_CC2S, TIM_CCMR1_OC2M, TIM_CR2_OIS2, TIM_CR2_OIS2N, TIM_OCInitTypeDef::TIM_OCIdleState, TIM_OCInitTypeDef::TIM_OCMode, TIM_OCInitTypeDef::TIM_OCNIdleState, TIM_OCInitTypeDef::TIM_OCNPolarity, TIM_OCInitTypeDef::TIM_OCPolarity, TIM_OCInitTypeDef::TIM_OutputNState, TIM_OCInitTypeDef::TIM_OutputState, and TIM_OCInitTypeDef::TIM_Pulse.
void TIM_OC3Init | ( | TIM_TypeDef * | TIMx, |
TIM_OCInitTypeDef * | TIM_OCInitStruct | ||
) |
Initializes the TIMx Channel3 according to the specified parameters in the TIM_OCInitStruct.
TIMx,: | where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. |
TIM_OCInitStruct,: | pointer to a TIM_OCInitTypeDef structure that contains the configuration information for the specified TIM peripheral. |
None |
References assert_param, TIM_TypeDef::CCER, TIM_TypeDef::CCMR2, TIM_TypeDef::CCR3, TIM_TypeDef::CR2, IS_TIM_LIST3_PERIPH, IS_TIM_OC_MODE, IS_TIM_OC_POLARITY, IS_TIM_OCIDLE_STATE, IS_TIM_OCN_POLARITY, IS_TIM_OCNIDLE_STATE, IS_TIM_OUTPUT_STATE, IS_TIM_OUTPUTN_STATE, TIM1, TIM8, TIM_CCER_CC3E, TIM_CCER_CC3NE, TIM_CCER_CC3NP, TIM_CCER_CC3P, TIM_CCMR2_CC3S, TIM_CCMR2_OC3M, TIM_CR2_OIS3, TIM_CR2_OIS3N, TIM_OCInitTypeDef::TIM_OCIdleState, TIM_OCInitTypeDef::TIM_OCMode, TIM_OCInitTypeDef::TIM_OCNIdleState, TIM_OCInitTypeDef::TIM_OCNPolarity, TIM_OCInitTypeDef::TIM_OCPolarity, TIM_OCInitTypeDef::TIM_OutputNState, TIM_OCInitTypeDef::TIM_OutputState, and TIM_OCInitTypeDef::TIM_Pulse.
void TIM_OC4Init | ( | TIM_TypeDef * | TIMx, |
TIM_OCInitTypeDef * | TIM_OCInitStruct | ||
) |
Initializes the TIMx Channel4 according to the specified parameters in the TIM_OCInitStruct.
TIMx,: | where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. |
TIM_OCInitStruct,: | pointer to a TIM_OCInitTypeDef structure that contains the configuration information for the specified TIM peripheral. |
None |
References assert_param, TIM_TypeDef::CCER, TIM_TypeDef::CCMR2, TIM_TypeDef::CCR4, TIM_TypeDef::CR2, IS_TIM_LIST3_PERIPH, IS_TIM_OC_MODE, IS_TIM_OC_POLARITY, IS_TIM_OCIDLE_STATE, IS_TIM_OUTPUT_STATE, TIM1, TIM8, TIM_CCER_CC4E, TIM_CCER_CC4P, TIM_CCMR2_CC4S, TIM_CCMR2_OC4M, TIM_CR2_OIS4, TIM_OCInitTypeDef::TIM_OCIdleState, TIM_OCInitTypeDef::TIM_OCMode, TIM_OCInitTypeDef::TIM_OCPolarity, TIM_OCInitTypeDef::TIM_OutputState, and TIM_OCInitTypeDef::TIM_Pulse.
void TIM_ICInit | ( | TIM_TypeDef * | TIMx, |
TIM_ICInitTypeDef * | TIM_ICInitStruct | ||
) |
Initializes the TIM peripheral according to the specified parameters in the TIM_ICInitStruct.
TIMx,: | where x can be 1 to 17 except 6 and 7 to select the TIM peripheral. |
TIM_ICInitStruct,: | pointer to a TIM_ICInitTypeDef structure that contains the configuration information for the specified TIM peripheral. |
None |
References assert_param, IS_TIM_CHANNEL, IS_TIM_IC_FILTER, IS_TIM_IC_POLARITY, IS_TIM_IC_PRESCALER, IS_TIM_IC_SELECTION, IS_TIM_LIST3_PERIPH, IS_TIM_LIST6_PERIPH, IS_TIM_LIST8_PERIPH, TIM_ICInitTypeDef::TIM_Channel, TIM_Channel_1, TIM_Channel_2, TIM_Channel_3, TIM_ICInitTypeDef::TIM_ICFilter, TIM_ICInitTypeDef::TIM_ICPolarity, TIM_ICInitTypeDef::TIM_ICPrescaler, TIM_ICInitTypeDef::TIM_ICSelection, TIM_SetIC1Prescaler(), TIM_SetIC2Prescaler(), TIM_SetIC3Prescaler(), and TIM_SetIC4Prescaler().
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.
TIMx,: | where x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15 to select the TIM peripheral. |
TIM_ICInitStruct,: | pointer to a TIM_ICInitTypeDef structure that contains the configuration information for the specified TIM peripheral. |
None |
References assert_param, IS_TIM_LIST6_PERIPH, TIM_ICInitTypeDef::TIM_Channel, TIM_Channel_1, TIM_ICInitTypeDef::TIM_ICFilter, TIM_ICInitTypeDef::TIM_ICPolarity, TIM_ICPolarity_Falling, TIM_ICPolarity_Rising, TIM_ICInitTypeDef::TIM_ICPrescaler, TIM_ICInitTypeDef::TIM_ICSelection, TIM_ICSelection_DirectTI, TIM_ICSelection_IndirectTI, TIM_SetIC1Prescaler(), and TIM_SetIC2Prescaler().
void TIM_BDTRConfig | ( | TIM_TypeDef * | TIMx, |
TIM_BDTRInitTypeDef * | TIM_BDTRInitStruct | ||
) |
Configures the: Break feature, dead time, Lock level, the OSSI, the OSSR State and the AOE(automatic output enable).
TIMx,: | where x can be 1 or 8 to select the TIM |
TIM_BDTRInitStruct,: | pointer to a TIM_BDTRInitTypeDef structure that contains the BDTR Register configuration information for the TIM peripheral. |
None |
References assert_param, TIM_TypeDef::BDTR, IS_TIM_AUTOMATIC_OUTPUT_STATE, IS_TIM_BREAK_POLARITY, IS_TIM_BREAK_STATE, IS_TIM_LIST2_PERIPH, IS_TIM_LOCK_LEVEL, IS_TIM_OSSI_STATE, IS_TIM_OSSR_STATE, TIM_BDTRInitTypeDef::TIM_AutomaticOutput, TIM_BDTRInitTypeDef::TIM_Break, TIM_BDTRInitTypeDef::TIM_BreakPolarity, TIM_BDTRInitTypeDef::TIM_DeadTime, TIM_BDTRInitTypeDef::TIM_LOCKLevel, TIM_BDTRInitTypeDef::TIM_OSSIState, and TIM_BDTRInitTypeDef::TIM_OSSRState.
void TIM_TimeBaseStructInit | ( | TIM_TimeBaseInitTypeDef * | TIM_TimeBaseInitStruct | ) |
Fills each TIM_TimeBaseInitStruct member with its default value.
TIM_TimeBaseInitStruct | : pointer to a TIM_TimeBaseInitTypeDef structure which will be initialized. |
None |
References TIM_CKD_DIV1, TIM_TimeBaseInitTypeDef::TIM_ClockDivision, TIM_TimeBaseInitTypeDef::TIM_CounterMode, TIM_CounterMode_Up, TIM_TimeBaseInitTypeDef::TIM_Period, TIM_TimeBaseInitTypeDef::TIM_Prescaler, and TIM_TimeBaseInitTypeDef::TIM_RepetitionCounter.
void TIM_OCStructInit | ( | TIM_OCInitTypeDef * | TIM_OCInitStruct | ) |
Fills each TIM_OCInitStruct member with its default value.
TIM_OCInitStruct | : pointer to a TIM_OCInitTypeDef structure which will be initialized. |
None |
References TIM_OCInitTypeDef::TIM_OCIdleState, TIM_OCIdleState_Reset, TIM_OCInitTypeDef::TIM_OCMode, TIM_OCMode_Timing, TIM_OCInitTypeDef::TIM_OCNIdleState, TIM_OCNIdleState_Reset, TIM_OCInitTypeDef::TIM_OCNPolarity, TIM_OCInitTypeDef::TIM_OCPolarity, TIM_OCPolarity_High, TIM_OCInitTypeDef::TIM_OutputNState, TIM_OutputNState_Disable, TIM_OCInitTypeDef::TIM_OutputState, TIM_OutputState_Disable, and TIM_OCInitTypeDef::TIM_Pulse.
void TIM_ICStructInit | ( | TIM_ICInitTypeDef * | TIM_ICInitStruct | ) |
Fills each TIM_ICInitStruct member with its default value.
TIM_ICInitStruct | : pointer to a TIM_ICInitTypeDef structure which will be initialized. |
None |
References TIM_ICInitTypeDef::TIM_Channel, TIM_Channel_1, TIM_ICInitTypeDef::TIM_ICFilter, TIM_ICInitTypeDef::TIM_ICPolarity, TIM_ICPolarity_Rising, TIM_ICInitTypeDef::TIM_ICPrescaler, TIM_ICPSC_DIV1, TIM_ICInitTypeDef::TIM_ICSelection, and TIM_ICSelection_DirectTI.
void TIM_BDTRStructInit | ( | TIM_BDTRInitTypeDef * | TIM_BDTRInitStruct | ) |
Fills each TIM_BDTRInitStruct member with its default value.
TIM_BDTRInitStruct,: | pointer to a TIM_BDTRInitTypeDef structure which will be initialized. |
None |
References TIM_BDTRInitTypeDef::TIM_AutomaticOutput, TIM_AutomaticOutput_Disable, TIM_BDTRInitTypeDef::TIM_Break, TIM_Break_Disable, TIM_BDTRInitTypeDef::TIM_BreakPolarity, TIM_BreakPolarity_Low, TIM_BDTRInitTypeDef::TIM_DeadTime, TIM_BDTRInitTypeDef::TIM_LOCKLevel, TIM_LOCKLevel_OFF, TIM_BDTRInitTypeDef::TIM_OSSIState, TIM_OSSIState_Disable, TIM_BDTRInitTypeDef::TIM_OSSRState, and TIM_OSSRState_Disable.
void TIM_Cmd | ( | TIM_TypeDef * | TIMx, |
FunctionalState | NewState | ||
) |
Enables or disables the specified TIM peripheral.
TIMx,: | where x can be 1 to 17 to select the TIMx peripheral. |
NewState,: | new state of the TIMx peripheral. This parameter can be: ENABLE or DISABLE. |
None |
References assert_param, TIM_TypeDef::CR1, DISABLE, IS_FUNCTIONAL_STATE, IS_TIM_ALL_PERIPH, and TIM_CR1_CEN.
void TIM_CtrlPWMOutputs | ( | TIM_TypeDef * | TIMx, |
FunctionalState | NewState | ||
) |
Enables or disables the TIM peripheral Main Outputs.
TIMx,: | where x can be 1, 8, 15, 16 or 17 to select the TIMx peripheral. |
NewState,: | new state of the TIM peripheral Main Outputs. This parameter can be: ENABLE or DISABLE. |
None |
References assert_param, TIM_TypeDef::BDTR, DISABLE, IS_FUNCTIONAL_STATE, IS_TIM_LIST2_PERIPH, and TIM_BDTR_MOE.
void TIM_ITConfig | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_IT, | ||
FunctionalState | NewState | ||
) |
Enables or disables the specified TIM interrupts.
TIMx,: | where x can be 1 to 17 to select the TIMx peripheral. |
TIM_IT,: | specifies the TIM interrupts sources to be enabled or disabled. This parameter can be any combination of the following values:
|
NewState,: | new state of the TIM interrupts. This parameter can be: ENABLE or DISABLE. |
None |
References assert_param, TIM_TypeDef::DIER, DISABLE, IS_FUNCTIONAL_STATE, IS_TIM_ALL_PERIPH, and IS_TIM_IT.
void TIM_GenerateEvent | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_EventSource | ||
) |
Configures the TIMx event to be generate by software.
TIMx,: | where x can be 1 to 17 to select the TIM peripheral. |
TIM_EventSource,: | specifies the event source. This parameter can be one or more of the following values:
|
None |
References assert_param, TIM_TypeDef::EGR, IS_TIM_ALL_PERIPH, and IS_TIM_EVENT_SOURCE.
void TIM_DMAConfig | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_DMABase, | ||
uint16_t | TIM_DMABurstLength | ||
) |
Configures the TIMx’s DMA interface.
TIMx,: | where x can be 1, 2, 3, 4, 5, 8, 15, 16 or 17 to select the TIM peripheral. |
TIM_DMABase,: | DMA Base address. This parameter can be one of the following values:
|
TIM_DMABurstLength,: | DMA Burst length. This parameter can be one value between: TIM_DMABurstLength_1Byte and TIM_DMABurstLength_18Bytes. |
None |
References assert_param, TIM_TypeDef::DCR, IS_TIM_DMA_BASE, IS_TIM_DMA_LENGTH, and IS_TIM_LIST4_PERIPH.
void TIM_DMACmd | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_DMASource, | ||
FunctionalState | NewState | ||
) |
Enables or disables the TIMx’s DMA Requests.
TIMx,: | where x can be 1, 2, 3, 4, 5, 6, 7, 8, 15, 16 or 17 to select the TIM peripheral. |
TIM_DMASource,: | specifies the DMA Request sources. This parameter can be any combination of the following values:
|
NewState,: | new state of the DMA Request sources. This parameter can be: ENABLE or DISABLE. |
None |
References assert_param, TIM_TypeDef::DIER, DISABLE, IS_FUNCTIONAL_STATE, IS_TIM_DMA_SOURCE, and IS_TIM_LIST9_PERIPH.
void TIM_InternalClockConfig | ( | TIM_TypeDef * | TIMx | ) |
Configures the TIMx interrnal Clock.
TIMx,: | where x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15 to select the TIM peripheral. |
None |
References assert_param, IS_TIM_LIST6_PERIPH, TIM_TypeDef::SMCR, and TIM_SMCR_SMS.
void TIM_ITRxExternalClockConfig | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_InputTriggerSource | ||
) |
Configures the TIMx Internal Trigger as External Clock.
TIMx,: | where x can be 1, 2, 3, 4, 5, 9, 12 or 15 to select the TIM peripheral. |
TIM_ITRSource,: | 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 |
None |
References assert_param, IS_TIM_INTERNAL_TRIGGER_SELECTION, IS_TIM_LIST6_PERIPH, TIM_TypeDef::SMCR, TIM_SelectInputTrigger(), and TIM_SlaveMode_External1.
void TIM_TIxExternalClockConfig | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_TIxExternalCLKSource, | ||
uint16_t | TIM_ICPolarity, | ||
uint16_t | ICFilter | ||
) |
Configures the TIMx Trigger as External Clock.
TIMx,: | where x can be 1, 2, 3, 4, 5, 9, 12 or 15 to select the TIM peripheral. |
TIM_TIxExternalCLKSource,: | Trigger source. This parameter can be one of the following values:
|
TIM_ICPolarity,: | specifies the TIx Polarity. This parameter can be one of the following values:
|
ICFilter | : specifies the filter value. This parameter must be a value between 0x0 and 0xF. |
None |
References assert_param, IS_TIM_IC_FILTER, IS_TIM_IC_POLARITY, IS_TIM_LIST6_PERIPH, IS_TIM_TIXCLK_SOURCE, TIM_TypeDef::SMCR, TIM_ICSelection_DirectTI, TIM_SelectInputTrigger(), TIM_SlaveMode_External1, and TIM_TIxExternalCLK1Source_TI2.
void TIM_ETRClockMode1Config | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_ExtTRGPrescaler, | ||
uint16_t | TIM_ExtTRGPolarity, | ||
uint16_t | ExtTRGFilter | ||
) |
Configures the External clock Mode1.
TIMx,: | where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. |
TIM_ExtTRGPrescaler,: | The external Trigger Prescaler. This parameter can be one of the following values:
|
TIM_ExtTRGPolarity,: | The external Trigger Polarity. This parameter can be one of the following values:
|
ExtTRGFilter,: | External Trigger Filter. This parameter must be a value between 0x00 and 0x0F |
None |
References assert_param, IS_TIM_EXT_FILTER, IS_TIM_EXT_POLARITY, IS_TIM_EXT_PRESCALER, IS_TIM_LIST3_PERIPH, TIM_TypeDef::SMCR, TIM_ETRConfig(), TIM_SlaveMode_External1, TIM_SMCR_SMS, TIM_SMCR_TS, and TIM_TS_ETRF.
void TIM_ETRClockMode2Config | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_ExtTRGPrescaler, | ||
uint16_t | TIM_ExtTRGPolarity, | ||
uint16_t | ExtTRGFilter | ||
) |
Configures the External clock Mode2.
TIMx,: | where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. |
TIM_ExtTRGPrescaler,: | The external Trigger Prescaler. This parameter can be one of the following values:
|
TIM_ExtTRGPolarity,: | The external Trigger Polarity. This parameter can be one of the following values:
|
ExtTRGFilter,: | External Trigger Filter. This parameter must be a value between 0x00 and 0x0F |
None |
References assert_param, IS_TIM_EXT_FILTER, IS_TIM_EXT_POLARITY, IS_TIM_EXT_PRESCALER, IS_TIM_LIST3_PERIPH, TIM_TypeDef::SMCR, TIM_ETRConfig(), and TIM_SMCR_ECE.
void TIM_ETRConfig | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_ExtTRGPrescaler, | ||
uint16_t | TIM_ExtTRGPolarity, | ||
uint16_t | ExtTRGFilter | ||
) |
Configures the TIMx External Trigger (ETR).
TIMx,: | where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. |
TIM_ExtTRGPrescaler,: | The external Trigger Prescaler. This parameter can be one of the following values:
|
TIM_ExtTRGPolarity,: | The external Trigger Polarity. This parameter can be one of the following values:
|
ExtTRGFilter,: | External Trigger Filter. This parameter must be a value between 0x00 and 0x0F |
None |
References assert_param, IS_TIM_EXT_FILTER, IS_TIM_EXT_POLARITY, IS_TIM_EXT_PRESCALER, IS_TIM_LIST3_PERIPH, TIM_TypeDef::SMCR, and SMCR_ETR_Mask.
Referenced by TIM_ETRClockMode1Config(), and TIM_ETRClockMode2Config().
void TIM_PrescalerConfig | ( | TIM_TypeDef * | TIMx, |
uint16_t | Prescaler, | ||
uint16_t | TIM_PSCReloadMode | ||
) |
Configures the TIMx Prescaler.
TIMx,: | where x can be 1 to 17 to select the TIM peripheral. |
Prescaler,: | specifies the Prescaler Register value |
TIM_PSCReloadMode,: | specifies the TIM Prescaler Reload mode This parameter can be one of the following values:
|
None |
References assert_param, TIM_TypeDef::EGR, IS_TIM_ALL_PERIPH, IS_TIM_PRESCALER_RELOAD, and TIM_TypeDef::PSC.
void TIM_CounterModeConfig | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_CounterMode | ||
) |
Specifies the TIMx Counter Mode to be used.
TIMx,: | where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. |
TIM_CounterMode,: | specifies the Counter Mode to be used This parameter can be one of the following values:
|
None |
References assert_param, TIM_TypeDef::CR1, IS_TIM_COUNTER_MODE, IS_TIM_LIST3_PERIPH, TIM_CR1_CMS, and TIM_CR1_DIR.
void TIM_SelectInputTrigger | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_InputTriggerSource | ||
) |
Selects the Input Trigger source.
TIMx,: | where x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15 to select the TIM peripheral. |
TIM_InputTriggerSource,: | The Input Trigger source. This parameter can be one of the following values:
|
None |
References assert_param, IS_TIM_LIST6_PERIPH, IS_TIM_TRIGGER_SELECTION, TIM_TypeDef::SMCR, and TIM_SMCR_TS.
Referenced by TIM_ITRxExternalClockConfig(), and TIM_TIxExternalClockConfig().
void TIM_EncoderInterfaceConfig | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_EncoderMode, | ||
uint16_t | TIM_IC1Polarity, | ||
uint16_t | TIM_IC2Polarity | ||
) |
Configures the TIMx Encoder Interface.
TIMx,: | where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. |
TIM_EncoderMode,: | specifies the TIMx Encoder Mode. This parameter can be one of the following values: |
TIM_IC1Polarity,: | specifies the IC1 Polarity This parmeter can be one of the following values:
|
TIM_IC2Polarity,: | specifies the IC2 Polarity This parmeter can be one of the following values:
|
None |
References assert_param, TIM_TypeDef::CCER, TIM_TypeDef::CCMR1, IS_TIM_ENCODER_MODE, IS_TIM_IC_POLARITY, IS_TIM_LIST5_PERIPH, TIM_TypeDef::SMCR, TIM_CCER_CC1P, TIM_CCER_CC2P, TIM_CCMR1_CC1S, TIM_CCMR1_CC1S_0, TIM_CCMR1_CC2S, TIM_CCMR1_CC2S_0, and TIM_SMCR_SMS.
void TIM_ForcedOC1Config | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_ForcedAction | ||
) |
Forces the TIMx output 1 waveform to active or inactive level.
TIMx,: | where x can be 1 to 17 except 6 and 7 to select the TIM peripheral. |
TIM_ForcedAction,: | specifies the forced Action to be set to the output waveform. This parameter can be one of the following values:
|
None |
References assert_param, TIM_TypeDef::CCMR1, IS_TIM_FORCED_ACTION, IS_TIM_LIST8_PERIPH, and TIM_CCMR1_OC1M.
void TIM_ForcedOC2Config | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_ForcedAction | ||
) |
Forces the TIMx output 2 waveform to active or inactive level.
TIMx,: | where x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15 to select the TIM peripheral. |
TIM_ForcedAction,: | specifies the forced Action to be set to the output waveform. This parameter can be one of the following values:
|
None |
References assert_param, TIM_TypeDef::CCMR1, IS_TIM_FORCED_ACTION, IS_TIM_LIST6_PERIPH, and TIM_CCMR1_OC2M.
void TIM_ForcedOC3Config | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_ForcedAction | ||
) |
Forces the TIMx output 3 waveform to active or inactive level.
TIMx,: | where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. |
TIM_ForcedAction,: | specifies the forced Action to be set to the output waveform. This parameter can be one of the following values:
|
None |
References assert_param, TIM_TypeDef::CCMR2, IS_TIM_FORCED_ACTION, IS_TIM_LIST3_PERIPH, and TIM_CCMR2_OC3M.
void TIM_ForcedOC4Config | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_ForcedAction | ||
) |
Forces the TIMx output 4 waveform to active or inactive level.
TIMx,: | where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. |
TIM_ForcedAction,: | specifies the forced Action to be set to the output waveform. This parameter can be one of the following values:
|
None |
References assert_param, TIM_TypeDef::CCMR2, IS_TIM_FORCED_ACTION, IS_TIM_LIST3_PERIPH, and TIM_CCMR2_OC4M.
void TIM_ARRPreloadConfig | ( | TIM_TypeDef * | TIMx, |
FunctionalState | NewState | ||
) |
Enables or disables TIMx peripheral Preload register on ARR.
TIMx,: | where x can be 1 to 17 to select the TIM peripheral. |
NewState,: | new state of the TIMx peripheral Preload register This parameter can be: ENABLE or DISABLE. |
None |
References assert_param, TIM_TypeDef::CR1, DISABLE, IS_FUNCTIONAL_STATE, IS_TIM_ALL_PERIPH, and TIM_CR1_ARPE.
void TIM_SelectCOM | ( | TIM_TypeDef * | TIMx, |
FunctionalState | NewState | ||
) |
Selects the TIM peripheral Commutation event.
TIMx,: | where x can be 1, 8, 15, 16 or 17 to select the TIMx peripheral |
NewState,: | new state of the Commutation event. This parameter can be: ENABLE or DISABLE. |
None |
References assert_param, TIM_TypeDef::CR2, DISABLE, IS_FUNCTIONAL_STATE, IS_TIM_LIST2_PERIPH, and TIM_CR2_CCUS.
void TIM_SelectCCDMA | ( | TIM_TypeDef * | TIMx, |
FunctionalState | NewState | ||
) |
Selects the TIMx peripheral Capture Compare DMA source.
TIMx,: | where x can be 1, 2, 3, 4, 5, 8, 15, 16 or 17 to select the TIM peripheral. |
NewState,: | new state of the Capture Compare DMA source This parameter can be: ENABLE or DISABLE. |
None |
References assert_param, TIM_TypeDef::CR2, DISABLE, IS_FUNCTIONAL_STATE, IS_TIM_LIST4_PERIPH, and TIM_CR2_CCDS.
void TIM_CCPreloadControl | ( | TIM_TypeDef * | TIMx, |
FunctionalState | NewState | ||
) |
Sets or Resets the TIM peripheral Capture Compare Preload Control bit.
TIMx,: | where x can be 1, 2, 3, 4, 5, 8 or 15 to select the TIMx peripheral |
NewState,: | new state of the Capture Compare Preload Control bit This parameter can be: ENABLE or DISABLE. |
None |
References assert_param, TIM_TypeDef::CR2, DISABLE, IS_FUNCTIONAL_STATE, IS_TIM_LIST5_PERIPH, and TIM_CR2_CCPC.
void TIM_OC1PreloadConfig | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_OCPreload | ||
) |
Enables or disables the TIMx peripheral Preload register on CCR1.
TIMx,: | where x can be 1 to 17 except 6 and 7 to select the TIM peripheral. |
TIM_OCPreload,: | new state of the TIMx peripheral Preload register This parameter can be one of the following values:
|
None |
References assert_param, TIM_TypeDef::CCMR1, IS_TIM_LIST8_PERIPH, IS_TIM_OCPRELOAD_STATE, and TIM_CCMR1_OC1PE.
void TIM_OC2PreloadConfig | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_OCPreload | ||
) |
Enables or disables the TIMx peripheral Preload register on CCR2.
TIMx,: | where x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15 to select the TIM peripheral. |
TIM_OCPreload,: | new state of the TIMx peripheral Preload register This parameter can be one of the following values:
|
None |
References assert_param, TIM_TypeDef::CCMR1, IS_TIM_LIST6_PERIPH, IS_TIM_OCPRELOAD_STATE, and TIM_CCMR1_OC2PE.
void TIM_OC3PreloadConfig | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_OCPreload | ||
) |
Enables or disables the TIMx peripheral Preload register on CCR3.
TIMx,: | where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. |
TIM_OCPreload,: | new state of the TIMx peripheral Preload register This parameter can be one of the following values:
|
None |
References assert_param, TIM_TypeDef::CCMR2, IS_TIM_LIST3_PERIPH, IS_TIM_OCPRELOAD_STATE, and TIM_CCMR2_OC3PE.
void TIM_OC4PreloadConfig | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_OCPreload | ||
) |
Enables or disables the TIMx peripheral Preload register on CCR4.
TIMx,: | where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. |
TIM_OCPreload,: | new state of the TIMx peripheral Preload register This parameter can be one of the following values:
|
None |
References assert_param, TIM_TypeDef::CCMR2, IS_TIM_LIST3_PERIPH, IS_TIM_OCPRELOAD_STATE, and TIM_CCMR2_OC4PE.
void TIM_OC1FastConfig | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_OCFast | ||
) |
Configures the TIMx Output Compare 1 Fast feature.
TIMx,: | where x can be 1 to 17 except 6 and 7 to select the TIM peripheral. |
TIM_OCFast,: | new state of the Output Compare Fast Enable Bit. This parameter can be one of the following values:
|
None |
References assert_param, TIM_TypeDef::CCMR1, IS_TIM_LIST8_PERIPH, IS_TIM_OCFAST_STATE, and TIM_CCMR1_OC1FE.
void TIM_OC2FastConfig | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_OCFast | ||
) |
Configures the TIMx Output Compare 2 Fast feature.
TIMx,: | where x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15 to select the TIM peripheral. |
TIM_OCFast,: | new state of the Output Compare Fast Enable Bit. This parameter can be one of the following values:
|
None |
References assert_param, TIM_TypeDef::CCMR1, IS_TIM_LIST6_PERIPH, IS_TIM_OCFAST_STATE, and TIM_CCMR1_OC2FE.
void TIM_OC3FastConfig | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_OCFast | ||
) |
Configures the TIMx Output Compare 3 Fast feature.
TIMx,: | where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. |
TIM_OCFast,: | new state of the Output Compare Fast Enable Bit. This parameter can be one of the following values:
|
None |
References assert_param, TIM_TypeDef::CCMR2, IS_TIM_LIST3_PERIPH, IS_TIM_OCFAST_STATE, and TIM_CCMR2_OC3FE.
void TIM_OC4FastConfig | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_OCFast | ||
) |
Configures the TIMx Output Compare 4 Fast feature.
TIMx,: | where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. |
TIM_OCFast,: | new state of the Output Compare Fast Enable Bit. This parameter can be one of the following values:
|
None |
References assert_param, TIM_TypeDef::CCMR2, IS_TIM_LIST3_PERIPH, IS_TIM_OCFAST_STATE, and TIM_CCMR2_OC4FE.
void TIM_ClearOC1Ref | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_OCClear | ||
) |
Clears or safeguards the OCREF1 signal on an external event.
TIMx,: | where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. |
TIM_OCClear,: | new state of the Output Compare Clear Enable Bit. This parameter can be one of the following values:
|
None |
References assert_param, TIM_TypeDef::CCMR1, IS_TIM_LIST3_PERIPH, IS_TIM_OCCLEAR_STATE, and TIM_CCMR1_OC1CE.
void TIM_ClearOC2Ref | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_OCClear | ||
) |
Clears or safeguards the OCREF2 signal on an external event.
TIMx,: | where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. |
TIM_OCClear,: | new state of the Output Compare Clear Enable Bit. This parameter can be one of the following values:
|
None |
References assert_param, TIM_TypeDef::CCMR1, IS_TIM_LIST3_PERIPH, IS_TIM_OCCLEAR_STATE, and TIM_CCMR1_OC2CE.
void TIM_ClearOC3Ref | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_OCClear | ||
) |
Clears or safeguards the OCREF3 signal on an external event.
TIMx,: | where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. |
TIM_OCClear,: | new state of the Output Compare Clear Enable Bit. This parameter can be one of the following values:
|
None |
References assert_param, TIM_TypeDef::CCMR2, IS_TIM_LIST3_PERIPH, IS_TIM_OCCLEAR_STATE, and TIM_CCMR2_OC3CE.
void TIM_ClearOC4Ref | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_OCClear | ||
) |
Clears or safeguards the OCREF4 signal on an external event.
TIMx,: | where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. |
TIM_OCClear,: | new state of the Output Compare Clear Enable Bit. This parameter can be one of the following values:
|
None |
References assert_param, TIM_TypeDef::CCMR2, IS_TIM_LIST3_PERIPH, IS_TIM_OCCLEAR_STATE, and TIM_CCMR2_OC4CE.
void TIM_OC1PolarityConfig | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_OCPolarity | ||
) |
Configures the TIMx channel 1 polarity.
TIMx,: | where x can be 1 to 17 except 6 and 7 to select the TIM peripheral. |
TIM_OCPolarity,: | specifies the OC1 Polarity This parmeter can be one of the following values:
|
None |
References assert_param, TIM_TypeDef::CCER, IS_TIM_LIST8_PERIPH, IS_TIM_OC_POLARITY, and TIM_CCER_CC1P.
void TIM_OC1NPolarityConfig | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_OCNPolarity | ||
) |
Configures the TIMx Channel 1N polarity.
TIMx,: | where x can be 1, 8, 15, 16 or 17 to select the TIM peripheral. |
TIM_OCNPolarity,: | specifies the OC1N Polarity This parmeter can be one of the following values:
|
None |
References assert_param, TIM_TypeDef::CCER, IS_TIM_LIST2_PERIPH, IS_TIM_OCN_POLARITY, and TIM_CCER_CC1NP.
void TIM_OC2PolarityConfig | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_OCPolarity | ||
) |
Configures the TIMx channel 2 polarity.
TIMx,: | where x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15 to select the TIM peripheral. |
TIM_OCPolarity,: | specifies the OC2 Polarity This parmeter can be one of the following values:
|
None |
References assert_param, TIM_TypeDef::CCER, IS_TIM_LIST6_PERIPH, IS_TIM_OC_POLARITY, and TIM_CCER_CC2P.
void TIM_OC2NPolarityConfig | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_OCNPolarity | ||
) |
Configures the TIMx Channel 2N polarity.
TIMx,: | where x can be 1 or 8 to select the TIM peripheral. |
TIM_OCNPolarity,: | specifies the OC2N Polarity This parmeter can be one of the following values:
|
None |
References assert_param, TIM_TypeDef::CCER, IS_TIM_LIST1_PERIPH, IS_TIM_OCN_POLARITY, and TIM_CCER_CC2NP.
void TIM_OC3PolarityConfig | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_OCPolarity | ||
) |
Configures the TIMx channel 3 polarity.
TIMx,: | where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. |
TIM_OCPolarity,: | specifies the OC3 Polarity This parmeter can be one of the following values:
|
None |
References assert_param, TIM_TypeDef::CCER, IS_TIM_LIST3_PERIPH, IS_TIM_OC_POLARITY, and TIM_CCER_CC3P.
void TIM_OC3NPolarityConfig | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_OCNPolarity | ||
) |
Configures the TIMx Channel 3N polarity.
TIMx,: | where x can be 1 or 8 to select the TIM peripheral. |
TIM_OCNPolarity,: | specifies the OC3N Polarity This parmeter can be one of the following values:
|
None |
References assert_param, TIM_TypeDef::CCER, IS_TIM_LIST1_PERIPH, IS_TIM_OCN_POLARITY, and TIM_CCER_CC3NP.
void TIM_OC4PolarityConfig | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_OCPolarity | ||
) |
Configures the TIMx channel 4 polarity.
TIMx,: | where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. |
TIM_OCPolarity,: | specifies the OC4 Polarity This parmeter can be one of the following values:
|
None |
References assert_param, TIM_TypeDef::CCER, IS_TIM_LIST3_PERIPH, IS_TIM_OC_POLARITY, and TIM_CCER_CC4P.
void TIM_CCxCmd | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_Channel, | ||
uint16_t | TIM_CCx | ||
) |
Enables or disables the TIM Capture Compare Channel x.
TIMx,: | where x can be 1 to 17 except 6 and 7 to select the TIM peripheral. |
TIM_Channel,: | specifies the TIM Channel This parmeter can be one of the following values:
|
TIM_CCx,: | specifies the TIM Channel CCxE bit new state. This parameter can be: TIM_CCx_Enable or TIM_CCx_Disable. |
None |
References assert_param, TIM_TypeDef::CCER, CCER_CCE_Set, IS_TIM_CCX, IS_TIM_CHANNEL, and IS_TIM_LIST8_PERIPH.
void TIM_CCxNCmd | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_Channel, | ||
uint16_t | TIM_CCxN | ||
) |
Enables or disables the TIM Capture Compare Channel xN.
TIMx,: | where x can be 1, 8, 15, 16 or 17 to select the TIM peripheral. |
TIM_Channel,: | specifies the TIM Channel This parmeter can be one of the following values:
|
TIM_CCxN,: | specifies the TIM Channel CCxNE bit new state. This parameter can be: TIM_CCxN_Enable or TIM_CCxN_Disable. |
None |
References assert_param, TIM_TypeDef::CCER, CCER_CCNE_Set, IS_TIM_CCXN, IS_TIM_COMPLEMENTARY_CHANNEL, and IS_TIM_LIST2_PERIPH.
void TIM_SelectOCxM | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_Channel, | ||
uint16_t | TIM_OCMode | ||
) |
Selects the TIM Ouput Compare Mode.
TIMx,: | where x can be 1 to 17 except 6 and 7 to select the TIM peripheral. |
TIM_Channel,: | specifies the TIM Channel This parmeter can be one of the following values:
|
TIM_OCMode,: | specifies the TIM Output Compare Mode. This paramter can be one of the following values:
|
None |
References __IO, assert_param, TIM_TypeDef::CCER, CCER_CCE_Set, CCMR_Offset, IS_TIM_CHANNEL, IS_TIM_LIST8_PERIPH, IS_TIM_OCM, TIM_CCMR1_OC1M, TIM_CCMR1_OC2M, TIM_Channel_1, and TIM_Channel_3.
void TIM_UpdateDisableConfig | ( | TIM_TypeDef * | TIMx, |
FunctionalState | NewState | ||
) |
Enables or Disables the TIMx Update event.
TIMx,: | where x can be 1 to 17 to select the TIM peripheral. |
NewState,: | new state of the TIMx UDIS bit This parameter can be: ENABLE or DISABLE. |
None |
References assert_param, TIM_TypeDef::CR1, DISABLE, IS_FUNCTIONAL_STATE, IS_TIM_ALL_PERIPH, and TIM_CR1_UDIS.
void TIM_UpdateRequestConfig | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_UpdateSource | ||
) |
Configures the TIMx Update Request Interrupt source.
TIMx,: | where x can be 1 to 17 to select the TIM peripheral. |
TIM_UpdateSource,: | specifies the Update source. This parameter can be one of the following values:
|
None |
References assert_param, TIM_TypeDef::CR1, IS_TIM_ALL_PERIPH, IS_TIM_UPDATE_SOURCE, TIM_CR1_URS, and TIM_UpdateSource_Global.
void TIM_SelectHallSensor | ( | TIM_TypeDef * | TIMx, |
FunctionalState | NewState | ||
) |
Enables or disables the TIMx’s Hall sensor interface.
TIMx,: | where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. |
NewState,: | new state of the TIMx Hall sensor interface. This parameter can be: ENABLE or DISABLE. |
None |
References assert_param, TIM_TypeDef::CR2, DISABLE, IS_FUNCTIONAL_STATE, IS_TIM_LIST6_PERIPH, and TIM_CR2_TI1S.
void TIM_SelectOnePulseMode | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_OPMode | ||
) |
Selects the TIMx’s One Pulse Mode.
TIMx,: | where x can be 1 to 17 to select the TIM peripheral. |
TIM_OPMode,: | specifies the OPM Mode to be used. This parameter can be one of the following values:
|
None |
References assert_param, TIM_TypeDef::CR1, IS_TIM_ALL_PERIPH, IS_TIM_OPM_MODE, and TIM_CR1_OPM.
void TIM_SelectOutputTrigger | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_TRGOSource | ||
) |
Selects the TIMx Trigger Output Mode.
TIMx,: | where x can be 1, 2, 3, 4, 5, 6, 7, 8, 9, 12 or 15 to select the TIM peripheral. |
TIM_TRGOSource,: | specifies the Trigger Output source. This paramter can be one of the following values: |
None |
References assert_param, TIM_TypeDef::CR2, IS_TIM_LIST7_PERIPH, IS_TIM_TRGO_SOURCE, and TIM_CR2_MMS.
void TIM_SelectSlaveMode | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_SlaveMode | ||
) |
Selects the TIMx Slave Mode.
TIMx,: | where x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15 to select the TIM peripheral. |
TIM_SlaveMode,: | specifies the Timer Slave Mode. This paramter can be one of the following values:
|
None |
References assert_param, IS_TIM_LIST6_PERIPH, IS_TIM_SLAVE_MODE, TIM_TypeDef::SMCR, and TIM_SMCR_SMS.
void TIM_SelectMasterSlaveMode | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_MasterSlaveMode | ||
) |
Sets or Resets the TIMx Master/Slave Mode.
TIMx,: | where x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15 to select the TIM peripheral. |
TIM_MasterSlaveMode,: | specifies the Timer Master Slave Mode. This paramter can be one of the following values:
|
None |
References assert_param, IS_TIM_LIST6_PERIPH, IS_TIM_MSM_STATE, TIM_TypeDef::SMCR, and TIM_SMCR_MSM.
void TIM_SetCounter | ( | TIM_TypeDef * | TIMx, |
uint16_t | Counter | ||
) |
Sets the TIMx Counter Register value.
TIMx,: | where x can be 1 to 17 to select the TIM peripheral. |
Counter,: | specifies the Counter register new value. |
None |
References assert_param, TIM_TypeDef::CNT, and IS_TIM_ALL_PERIPH.
void TIM_SetAutoreload | ( | TIM_TypeDef * | TIMx, |
uint16_t | Autoreload | ||
) |
Sets the TIMx Autoreload Register value.
TIMx,: | where x can be 1 to 17 to select the TIM peripheral. |
Autoreload,: | specifies the Autoreload register new value. |
None |
References TIM_TypeDef::ARR, assert_param, and IS_TIM_ALL_PERIPH.
void TIM_SetCompare1 | ( | TIM_TypeDef * | TIMx, |
uint16_t | Compare1 | ||
) |
Sets the TIMx Capture Compare1 Register value.
TIMx,: | where x can be 1 to 17 except 6 and 7 to select the TIM peripheral. |
Compare1,: | specifies the Capture Compare1 register new value. |
None |
References assert_param, TIM_TypeDef::CCR1, and IS_TIM_LIST8_PERIPH.
void TIM_SetCompare2 | ( | TIM_TypeDef * | TIMx, |
uint16_t | Compare2 | ||
) |
Sets the TIMx Capture Compare2 Register value.
TIMx,: | where x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15 to select the TIM peripheral. |
Compare2,: | specifies the Capture Compare2 register new value. |
None |
References assert_param, TIM_TypeDef::CCR2, and IS_TIM_LIST6_PERIPH.
void TIM_SetCompare3 | ( | TIM_TypeDef * | TIMx, |
uint16_t | Compare3 | ||
) |
Sets the TIMx Capture Compare3 Register value.
TIMx,: | where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. |
Compare3,: | specifies the Capture Compare3 register new value. |
None |
References assert_param, TIM_TypeDef::CCR3, and IS_TIM_LIST3_PERIPH.
void TIM_SetCompare4 | ( | TIM_TypeDef * | TIMx, |
uint16_t | Compare4 | ||
) |
Sets the TIMx Capture Compare4 Register value.
TIMx,: | where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. |
Compare4,: | specifies the Capture Compare4 register new value. |
None |
References assert_param, TIM_TypeDef::CCR4, and IS_TIM_LIST3_PERIPH.
void TIM_SetIC1Prescaler | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_ICPSC | ||
) |
Sets the TIMx Input Capture 1 prescaler.
TIMx,: | where x can be 1 to 17 except 6 and 7 to select the TIM peripheral. |
TIM_ICPSC,: | specifies the Input Capture1 prescaler new value. This parameter can be one of the following values:
|
None |
References assert_param, TIM_TypeDef::CCMR1, IS_TIM_IC_PRESCALER, IS_TIM_LIST8_PERIPH, and TIM_CCMR1_IC1PSC.
Referenced by TIM_ICInit(), and TIM_PWMIConfig().
void TIM_SetIC2Prescaler | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_ICPSC | ||
) |
Sets the TIMx Input Capture 2 prescaler.
TIMx,: | where x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15 to select the TIM peripheral. |
TIM_ICPSC,: | specifies the Input Capture2 prescaler new value. This parameter can be one of the following values:
|
None |
References assert_param, TIM_TypeDef::CCMR1, IS_TIM_IC_PRESCALER, IS_TIM_LIST6_PERIPH, and TIM_CCMR1_IC2PSC.
Referenced by TIM_ICInit(), and TIM_PWMIConfig().
void TIM_SetIC3Prescaler | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_ICPSC | ||
) |
Sets the TIMx Input Capture 3 prescaler.
TIMx,: | where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. |
TIM_ICPSC,: | specifies the Input Capture3 prescaler new value. This parameter can be one of the following values:
|
None |
References assert_param, TIM_TypeDef::CCMR2, IS_TIM_IC_PRESCALER, IS_TIM_LIST3_PERIPH, and TIM_CCMR2_IC3PSC.
Referenced by TIM_ICInit().
void TIM_SetIC4Prescaler | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_ICPSC | ||
) |
Sets the TIMx Input Capture 4 prescaler.
TIMx,: | where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. |
TIM_ICPSC,: | specifies the Input Capture4 prescaler new value. This parameter can be one of the following values:
|
None |
References assert_param, TIM_TypeDef::CCMR2, IS_TIM_IC_PRESCALER, IS_TIM_LIST3_PERIPH, and TIM_CCMR2_IC4PSC.
Referenced by TIM_ICInit().
void TIM_SetClockDivision | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_CKD | ||
) |
Sets the TIMx Clock Division value.
TIMx,: | where x can be 1 to 17 except 6 and 7 to select the TIM peripheral. |
TIM_CKD,: | specifies the clock division value. This parameter can be one of the following value:
|
None |
References assert_param, TIM_TypeDef::CR1, IS_TIM_CKD_DIV, IS_TIM_LIST8_PERIPH, and TIM_CR1_CKD.
uint16_t TIM_GetCapture1 | ( | TIM_TypeDef * | TIMx | ) |
Gets the TIMx Input Capture 1 value.
TIMx,: | where x can be 1 to 17 except 6 and 7 to select the TIM peripheral. |
Capture | Compare 1 Register value. |
References assert_param, TIM_TypeDef::CCR1, and IS_TIM_LIST8_PERIPH.
uint16_t TIM_GetCapture2 | ( | TIM_TypeDef * | TIMx | ) |
Gets the TIMx Input Capture 2 value.
TIMx,: | where x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15 to select the TIM peripheral. |
Capture | Compare 2 Register value. |
References assert_param, TIM_TypeDef::CCR2, and IS_TIM_LIST6_PERIPH.
uint16_t TIM_GetCapture3 | ( | TIM_TypeDef * | TIMx | ) |
Gets the TIMx Input Capture 3 value.
TIMx,: | where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. |
Capture | Compare 3 Register value. |
References assert_param, TIM_TypeDef::CCR3, and IS_TIM_LIST3_PERIPH.
uint16_t TIM_GetCapture4 | ( | TIM_TypeDef * | TIMx | ) |
Gets the TIMx Input Capture 4 value.
TIMx,: | where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. |
Capture | Compare 4 Register value. |
References assert_param, TIM_TypeDef::CCR4, and IS_TIM_LIST3_PERIPH.
uint16_t TIM_GetCounter | ( | TIM_TypeDef * | TIMx | ) |
Gets the TIMx Counter value.
TIMx,: | where x can be 1 to 17 to select the TIM peripheral. |
Counter | Register value. |
References assert_param, TIM_TypeDef::CNT, and IS_TIM_ALL_PERIPH.
uint16_t TIM_GetPrescaler | ( | TIM_TypeDef * | TIMx | ) |
Gets the TIMx Prescaler value.
TIMx,: | where x can be 1 to 17 to select the TIM peripheral. |
Prescaler | Register value. |
References assert_param, IS_TIM_ALL_PERIPH, and TIM_TypeDef::PSC.
FlagStatus TIM_GetFlagStatus | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_FLAG | ||
) |
Checks whether the specified TIM flag is set or not.
TIMx,: | where x can be 1 to 17 to select the TIM peripheral. |
TIM_FLAG,: | specifies the flag to check. This parameter can be one of the following values:
|
The | new state of TIM_FLAG (SET or RESET). |
References assert_param, IS_TIM_ALL_PERIPH, IS_TIM_GET_FLAG, RESET, SET, and TIM_TypeDef::SR.
void TIM_ClearFlag | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_FLAG | ||
) |
Clears the TIMx's pending flags.
TIMx,: | where x can be 1 to 17 to select the TIM peripheral. |
TIM_FLAG,: | specifies the flag bit to clear. This parameter can be any combination of the following values:
|
None |
References assert_param, IS_TIM_ALL_PERIPH, IS_TIM_CLEAR_FLAG, and TIM_TypeDef::SR.
ITStatus TIM_GetITStatus | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_IT | ||
) |
Checks whether the TIM interrupt has occurred or not.
TIMx,: | where x can be 1 to 17 to select the TIM peripheral. |
TIM_IT,: | specifies the TIM interrupt source to check. This parameter can be one of the following values:
|
The | new state of the TIM_IT(SET or RESET). |
References assert_param, TIM_TypeDef::DIER, IS_TIM_ALL_PERIPH, IS_TIM_GET_IT, RESET, SET, and TIM_TypeDef::SR.
void TIM_ClearITPendingBit | ( | TIM_TypeDef * | TIMx, |
uint16_t | TIM_IT | ||
) |
Clears the TIMx's interrupt pending bits.
TIMx,: | where x can be 1 to 17 to select the TIM peripheral. |
TIM_IT,: | specifies the pending bit to clear. This parameter can be any combination of the following values:
|
None |
References assert_param, IS_TIM_ALL_PERIPH, IS_TIM_IT, and TIM_TypeDef::SR.