STM8L15x Standard Peripherals Drivers
|
TIM3 driver modules. More...
Modules | |
TIM3_Exported_Types | |
TIM3_Exported_Macros | |
TIM3_Private_Functions | |
Functions | |
void | TIM3_ARRPreloadConfig (FunctionalState NewState) |
Enables or disables TIM3 peripheral Preload register on ARR. | |
void | TIM3_BKRConfig (TIM3_OSSIState_TypeDef TIM3_OSSIState, TIM3_LockLevel_TypeDef TIM3_LockLevel, TIM3_BreakState_TypeDef TIM3_BreakState, TIM3_BreakPolarity_TypeDef TIM3_BreakPolarity, TIM3_AutomaticOutput_TypeDef TIM3_AutomaticOutput) |
Configures the Break feature, dead time, Lock level, the OSSI, and the AOE(automatic output enable). | |
void | TIM3_CCxCmd (TIM3_Channel_TypeDef TIM3_Channel, FunctionalState NewState) |
Enables or disables the TIM3 Capture Compare Channel x. | |
void | TIM3_ClearFlag (TIM3_FLAG_TypeDef TIM3_FLAG) |
Clears the TIM�s pending flags. | |
void | TIM3_ClearITPendingBit (TIM3_IT_TypeDef TIM3_IT) |
Clears the TIM's interrupt pending bits. | |
void | TIM3_Cmd (FunctionalState NewState) |
Enables or disables the TIM3 peripheral. | |
void | TIM3_CounterModeConfig (TIM3_CounterMode_TypeDef TIM3_CounterMode) |
Specifies the TIM3 Counter Mode to be used. | |
void | TIM3_CtrlPWMOutputs (FunctionalState NewState) |
Enables or disables the TIM3 peripheral Main Outputs. | |
void | TIM3_DeInit (void) |
Deinitialize the TIM3 peripheral registers to their default reset values. | |
void | TIM3_DMACmd (TIM3_DMASource_TypeDef TIM3_DMASource, FunctionalState NewState) |
Enables or disables the TIM3 DMA Requests. | |
void | TIM3_EncoderInterfaceConfig (TIM3_EncoderMode_TypeDef TIM3_EncoderMode, TIM3_ICPolarity_TypeDef TIM3_IC1Polarity, TIM3_ICPolarity_TypeDef TIM3_IC2Polarity) |
Configures the TIM3 Encoder Interface. | |
void | TIM3_ETRClockMode1Config (TIM3_ExtTRGPSC_TypeDef TIM3_ExtTRGPrescaler, TIM3_ExtTRGPolarity_TypeDef TIM3_ExtTRGPolarity, uint8_t ExtTRGFilter) |
Configures the TIM3 External clock Mode1. | |
void | TIM3_ETRClockMode2Config (TIM3_ExtTRGPSC_TypeDef TIM3_ExtTRGPrescaler, TIM3_ExtTRGPolarity_TypeDef TIM3_ExtTRGPolarity, uint8_t ExtTRGFilter) |
Configures the TIM3 External clock Mode2. | |
void | TIM3_ETRConfig (TIM3_ExtTRGPSC_TypeDef TIM3_ExtTRGPrescaler, TIM3_ExtTRGPolarity_TypeDef TIM3_ExtTRGPolarity, uint8_t ExtTRGFilter) |
Configures the TIM3 External Trigger. | |
void | TIM3_ForcedOC1Config (TIM3_ForcedAction_TypeDef TIM3_ForcedAction) |
Forces the TIM3 Channel1 output waveform to active or inactive level. | |
void | TIM3_ForcedOC2Config (TIM3_ForcedAction_TypeDef TIM3_ForcedAction) |
Forces the TIM3 Channel2 output waveform to active or inactive level. | |
void | TIM3_GenerateEvent (TIM3_EventSource_TypeDef TIM3_EventSource) |
Configures the TIM3 event to be generated by software. | |
uint16_t | TIM3_GetCapture1 (void) |
Gets the TIM3 Input Capture 1 value. | |
uint16_t | TIM3_GetCapture2 (void) |
Gets the TIM3 Input Capture 2 value. | |
uint16_t | TIM3_GetCounter (void) |
Gets the TIM3 Counter value. | |
FlagStatus | TIM3_GetFlagStatus (TIM3_FLAG_TypeDef TIM3_FLAG) |
Checks whether the specified TIM3 flag is set or not. | |
ITStatus | TIM3_GetITStatus (TIM3_IT_TypeDef TIM3_IT) |
Checks whether the TIM3 interrupt has occurred or not. | |
TIM3_Prescaler_TypeDef | TIM3_GetPrescaler (void) |
Gets the TIM3 Prescaler value. | |
void | TIM3_ICInit (TIM3_Channel_TypeDef TIM3_Channel, TIM3_ICPolarity_TypeDef TIM3_ICPolarity, TIM3_ICSelection_TypeDef TIM3_ICSelection, TIM3_ICPSC_TypeDef TIM3_ICPrescaler, uint8_t TIM3_ICFilter) |
Initializes the TIM3 peripheral according to the specified parameters. | |
void | TIM3_InternalClockConfig (void) |
Enables the TIM3 internal Clock. | |
void | TIM3_ITConfig (TIM3_IT_TypeDef TIM3_IT, FunctionalState NewState) |
Enables or disables the specified TIM3 interrupts. | |
void | TIM3_OC1FastConfig (FunctionalState NewState) |
Configures the TIM3 Capture Compare 1 Fast feature. | |
void | TIM3_OC1Init (TIM3_OCMode_TypeDef TIM3_OCMode, TIM3_OutputState_TypeDef TIM3_OutputState, uint16_t TIM3_Pulse, TIM3_OCPolarity_TypeDef TIM3_OCPolarity, TIM3_OCIdleState_TypeDef TIM3_OCIdleState) |
Initializes the TIM3 Channel1 according to the specified parameters. | |
void | TIM3_OC1PolarityConfig (TIM3_OCPolarity_TypeDef TIM3_OCPolarity) |
Configures the TIM3 Channel 1 polarity. | |
void | TIM3_OC1PreloadConfig (FunctionalState NewState) |
Enables or disables the TIM3 peripheral Preload Register on CCR1. | |
void | TIM3_OC2FastConfig (FunctionalState NewState) |
Configures the TIM3 Capture Compare 2 Fast feature. | |
void | TIM3_OC2Init (TIM3_OCMode_TypeDef TIM3_OCMode, TIM3_OutputState_TypeDef TIM3_OutputState, uint16_t TIM3_Pulse, TIM3_OCPolarity_TypeDef TIM3_OCPolarity, TIM3_OCIdleState_TypeDef TIM3_OCIdleState) |
Initializes the TIM3 Channel2 according to the specified parameters. | |
void | TIM3_OC2PolarityConfig (TIM3_OCPolarity_TypeDef TIM3_OCPolarity) |
Configures the TIM3 Channel 2 polarity. | |
void | TIM3_OC2PreloadConfig (FunctionalState NewState) |
Enables or disables the TIM3 peripheral Preload Register on CCR2. | |
void | TIM3_PrescalerConfig (TIM3_Prescaler_TypeDef Prescaler, TIM3_PSCReloadMode_TypeDef TIM3_PSCReloadMode) |
Configures the TIM3 Prescaler. | |
void | TIM3_PWMIConfig (TIM3_Channel_TypeDef TIM3_Channel, TIM3_ICPolarity_TypeDef TIM3_ICPolarity, TIM3_ICSelection_TypeDef TIM3_ICSelection, TIM3_ICPSC_TypeDef TIM3_ICPrescaler, uint8_t TIM3_ICFilter) |
Configures the TIM3 peripheral in PWM Input Mode according to the specified parameters. | |
void | TIM3_SelectCCDMA (FunctionalState NewState) |
Selects the TIM3 peripheral Capture Compare DMA source. | |
void | TIM3_SelectHallSensor (FunctionalState NewState) |
Enables or Disables the TIM�s Hall sensor interface. | |
void | TIM3_SelectInputTrigger (TIM3_TRGSelection_TypeDef TIM3_InputTriggerSource) |
Selects the TIM3 Input Trigger source. | |
void | TIM3_SelectMasterSlaveMode (FunctionalState NewState) |
Sets or Resets the TIM3 Master/Slave Mode. | |
void | TIM3_SelectOCxM (TIM3_Channel_TypeDef TIM3_Channel, TIM3_OCMode_TypeDef TIM3_OCMode) |
Selects the TIM3 Output Compare Mode. | |
void | TIM3_SelectOnePulseMode (TIM3_OPMode_TypeDef TIM3_OPMode) |
Selects the TIM�s One Pulse Mode. | |
void | TIM3_SelectOutputTrigger (TIM3_TRGOSource_TypeDef TIM3_TRGOSource) |
Selects the TIM3 Trigger Output Mode. | |
void | TIM3_SelectSlaveMode (TIM3_SlaveMode_TypeDef TIM3_SlaveMode) |
Selects the TIM3 Slave Mode. | |
void | TIM3_SetAutoreload (uint16_t Autoreload) |
Sets the TIM3 Autoreload Register value. | |
void | TIM3_SetCompare1 (uint16_t Compare) |
Sets the TIM3 Capture Compare1 Register value. | |
void | TIM3_SetCompare2 (uint16_t Compare) |
Sets the TIM3 Capture Compare2 Register value. | |
void | TIM3_SetCounter (uint16_t Counter) |
Sets the TIM3 Counter Register value. | |
void | TIM3_SetIC1Prescaler (TIM3_ICPSC_TypeDef TIM3_IC1Prescaler) |
Sets the TIM3 Input Capture 1 prescaler. | |
void | TIM3_SetIC2Prescaler (TIM3_ICPSC_TypeDef TIM3_IC2Prescaler) |
Sets the TIM3 Input Capture 2 prescaler. | |
void | TIM3_TimeBaseInit (TIM3_Prescaler_TypeDef TIM3_Prescaler, TIM3_CounterMode_TypeDef TIM3_CounterMode, uint16_t TIM3_Period) |
Initializes the TIM3 Time Base Unit according to the specified parameters. | |
void | TIM3_TIxExternalClockConfig (TIM3_TIxExternalCLK1Source_TypeDef TIM3_TIxExternalCLKSource, TIM3_ICPolarity_TypeDef TIM3_ICPolarity, uint8_t ICFilter) |
Configures the TIM3 Trigger as External Clock. | |
void | TIM3_UpdateDisableConfig (FunctionalState NewState) |
Enables or Disables the TIM3 Update event. | |
void | TIM3_UpdateRequestConfig (TIM3_UpdateSource_TypeDef TIM3_UpdateSource) |
Selects the TIM3 Update Request Interrupt source. |
Detailed Description
TIM3 driver modules.
Function Documentation
void TIM3_ARRPreloadConfig | ( | FunctionalState | NewState | ) |
Enables or disables TIM3 peripheral Preload register on ARR.
Definition at line 436 of file stm8l15x_tim3.c.
References DISABLE, IS_FUNCTIONAL_STATE, TIM3, and TIM_CR1_ARPE.
void TIM3_BKRConfig | ( | TIM3_OSSIState_TypeDef | TIM3_OSSIState, |
TIM3_LockLevel_TypeDef | TIM3_LockLevel, | ||
TIM3_BreakState_TypeDef | TIM3_BreakState, | ||
TIM3_BreakPolarity_TypeDef | TIM3_BreakPolarity, | ||
TIM3_AutomaticOutput_TypeDef | TIM3_AutomaticOutput | ||
) |
Configures the Break feature, dead time, Lock level, the OSSI, and the AOE(automatic output enable).
Definition at line 748 of file stm8l15x_tim3.c.
References IS_TIM3_AUTOMATIC_OUTPUT_STATE, IS_TIM3_BREAK_POLARITY, IS_TIM3_BREAK_STATE, IS_TIM3_LOCK_LEVEL, IS_TIM3_OSSI_STATE, and TIM3.
void TIM3_CCxCmd | ( | TIM3_Channel_TypeDef | TIM3_Channel, |
FunctionalState | NewState | ||
) |
Enables or disables the TIM3 Capture Compare Channel x.
Definition at line 1068 of file stm8l15x_tim3.c.
References DISABLE, IS_FUNCTIONAL_STATE, IS_TIM3_CHANNEL, TIM3, TIM3_Channel_1, TIM_CCER1_CC1E, and TIM_CCER1_CC2E.
void TIM3_ClearFlag | ( | TIM3_FLAG_TypeDef | TIM3_FLAG | ) |
Clears the TIM�s pending flags.
Definition at line 1500 of file stm8l15x_tim3.c.
References IS_TIM3_CLEAR_FLAG, and TIM3.
void TIM3_ClearITPendingBit | ( | TIM3_IT_TypeDef | TIM3_IT | ) |
Clears the TIM's interrupt pending bits.
Definition at line 1555 of file stm8l15x_tim3.c.
References IS_TIM3_IT, and TIM3.
void TIM3_Cmd | ( | FunctionalState | NewState | ) |
Enables or disables the TIM3 peripheral.
Definition at line 482 of file stm8l15x_tim3.c.
References DISABLE, IS_FUNCTIONAL_STATE, TIM3, and TIM_CR1_CEN.
void TIM3_CounterModeConfig | ( | TIM3_CounterMode_TypeDef | TIM3_CounterMode | ) |
Specifies the TIM3 Counter Mode to be used.
Definition at line 300 of file stm8l15x_tim3.c.
References IS_TIM3_COUNTER_MODE, TIM3, TIM_CR1_CMS, and TIM_CR1_DIR.
void TIM3_CtrlPWMOutputs | ( | FunctionalState | NewState | ) |
Enables or disables the TIM3 peripheral Main Outputs.
Definition at line 777 of file stm8l15x_tim3.c.
References DISABLE, IS_FUNCTIONAL_STATE, TIM3, and TIM_BKR_MOE.
void TIM3_DeInit | ( | void | ) |
Deinitialize the TIM3 peripheral registers to their default reset values.
Definition at line 162 of file stm8l15x_tim3.c.
References TIM3, TIM_ARRH_RESET_VALUE, TIM_ARRL_RESET_VALUE, TIM_BKR_RESET_VALUE, TIM_CCER1_RESET_VALUE, TIM_CCMR1_RESET_VALUE, TIM_CCMR2_RESET_VALUE, TIM_CCR1H_RESET_VALUE, TIM_CCR1L_RESET_VALUE, TIM_CCR2H_RESET_VALUE, TIM_CCR2L_RESET_VALUE, TIM_CNTRH_RESET_VALUE, TIM_CNTRL_RESET_VALUE, TIM_CR1_RESET_VALUE, TIM_CR2_RESET_VALUE, TIM_ETR_RESET_VALUE, TIM_IER_RESET_VALUE, TIM_OISR_RESET_VALUE, TIM_PSCR_RESET_VALUE, TIM_SMCR_RESET_VALUE, TIM_SR1_RESET_VALUE, and TIM_SR2_RESET_VALUE.
void TIM3_DMACmd | ( | TIM3_DMASource_TypeDef | TIM3_DMASource, |
FunctionalState | NewState | ||
) |
Enables or disables the TIM3 DMA Requests.
Definition at line 1575 of file stm8l15x_tim3.c.
References DISABLE, IS_FUNCTIONAL_STATE, IS_TIM3_DMA_SOURCE, and TIM3.
void TIM3_EncoderInterfaceConfig | ( | TIM3_EncoderMode_TypeDef | TIM3_EncoderMode, |
TIM3_ICPolarity_TypeDef | TIM3_IC1Polarity, | ||
TIM3_ICPolarity_TypeDef | TIM3_IC2Polarity | ||
) |
Configures the TIM3 Encoder Interface.
Definition at line 1952 of file stm8l15x_tim3.c.
References IS_TIM3_ENCODER_MODE, IS_TIM3_IC_POLARITY, TIM3, TIM3_ICPolarity_Falling, TIM_CCER1_CC1P, TIM_CCER1_CC2P, TIM_CCMR_CCxS, TIM_CCMR_TIxDirect_Set, TIM_SMCR_MSM, and TIM_SMCR_TS.
void TIM3_ETRClockMode1Config | ( | TIM3_ExtTRGPSC_TypeDef | TIM3_ExtTRGPrescaler, |
TIM3_ExtTRGPolarity_TypeDef | TIM3_ExtTRGPolarity, | ||
uint8_t | ExtTRGFilter | ||
) |
Configures the TIM3 External clock Mode1.
Definition at line 1701 of file stm8l15x_tim3.c.
References TIM3, TIM3_ETRConfig(), TIM3_SlaveMode_External1, TIM3_TRGSelection_ETRF, TIM_SMCR_SMS, and TIM_SMCR_TS.
void TIM3_ETRClockMode2Config | ( | TIM3_ExtTRGPSC_TypeDef | TIM3_ExtTRGPrescaler, |
TIM3_ExtTRGPolarity_TypeDef | TIM3_ExtTRGPolarity, | ||
uint8_t | ExtTRGFilter | ||
) |
Configures the TIM3 External clock Mode2.
Definition at line 1733 of file stm8l15x_tim3.c.
References TIM3, TIM3_ETRConfig(), and TIM_ETR_ECE.
void TIM3_ETRConfig | ( | TIM3_ExtTRGPSC_TypeDef | TIM3_ExtTRGPrescaler, |
TIM3_ExtTRGPolarity_TypeDef | TIM3_ExtTRGPolarity, | ||
uint8_t | ExtTRGFilter | ||
) |
Configures the TIM3 External Trigger.
Definition at line 1905 of file stm8l15x_tim3.c.
References IS_TIM3_EXT_FILTER, IS_TIM3_EXT_POLARITY, IS_TIM3_EXT_PRESCALER, and TIM3.
Referenced by TIM3_ETRClockMode1Config(), and TIM3_ETRClockMode2Config().
void TIM3_ForcedOC1Config | ( | TIM3_ForcedAction_TypeDef | TIM3_ForcedAction | ) |
Forces the TIM3 Channel1 output waveform to active or inactive level.
Definition at line 877 of file stm8l15x_tim3.c.
References IS_TIM3_FORCED_ACTION, TIM3, and TIM_CCMR_OCM.
void TIM3_ForcedOC2Config | ( | TIM3_ForcedAction_TypeDef | TIM3_ForcedAction | ) |
Forces the TIM3 Channel2 output waveform to active or inactive level.
Definition at line 903 of file stm8l15x_tim3.c.
References IS_TIM3_FORCED_ACTION, TIM3, and TIM_CCMR_OCM.
void TIM3_GenerateEvent | ( | TIM3_EventSource_TypeDef | TIM3_EventSource | ) |
Configures the TIM3 event to be generated by software.
Definition at line 1445 of file stm8l15x_tim3.c.
References IS_TIM3_EVENT_SOURCE, and TIM3.
uint16_t TIM3_GetCapture1 | ( | void | ) |
Gets the TIM3 Input Capture 1 value.
Definition at line 1298 of file stm8l15x_tim3.c.
References TIM3.
uint16_t TIM3_GetCapture2 | ( | void | ) |
Gets the TIM3 Input Capture 2 value.
Definition at line 1317 of file stm8l15x_tim3.c.
References TIM3.
uint16_t TIM3_GetCounter | ( | void | ) |
FlagStatus TIM3_GetFlagStatus | ( | TIM3_FLAG_TypeDef | TIM3_FLAG | ) |
Checks whether the specified TIM3 flag is set or not.
Definition at line 1467 of file stm8l15x_tim3.c.
References IS_TIM3_GET_FLAG, RESET, SET, and TIM3.
ITStatus TIM3_GetITStatus | ( | TIM3_IT_TypeDef | TIM3_IT | ) |
Checks whether the TIM3 interrupt has occurred or not.
Definition at line 1520 of file stm8l15x_tim3.c.
References IS_TIM3_GET_IT, RESET, SET, and TIM3.
TIM3_Prescaler_TypeDef TIM3_GetPrescaler | ( | void | ) |
void TIM3_ICInit | ( | TIM3_Channel_TypeDef | TIM3_Channel, |
TIM3_ICPolarity_TypeDef | TIM3_ICPolarity, | ||
TIM3_ICSelection_TypeDef | TIM3_ICSelection, | ||
TIM3_ICPSC_TypeDef | TIM3_ICPrescaler, | ||
uint8_t | TIM3_ICFilter | ||
) |
Initializes the TIM3 peripheral according to the specified parameters.
Definition at line 1178 of file stm8l15x_tim3.c.
References IS_TIM3_CHANNEL, TI1_Config(), TI2_Config(), TIM3_Channel_1, TIM3_SetIC1Prescaler(), and TIM3_SetIC2Prescaler().
void TIM3_InternalClockConfig | ( | void | ) |
Enables the TIM3 internal Clock.
Definition at line 1638 of file stm8l15x_tim3.c.
References TIM3, and TIM_SMCR_SMS.
void TIM3_ITConfig | ( | TIM3_IT_TypeDef | TIM3_IT, |
FunctionalState | NewState | ||
) |
Enables or disables the specified TIM3 interrupts.
Definition at line 1416 of file stm8l15x_tim3.c.
References DISABLE, IS_FUNCTIONAL_STATE, IS_TIM3_IT, and TIM3.
void TIM3_OC1FastConfig | ( | FunctionalState | NewState | ) |
Configures the TIM3 Capture Compare 1 Fast feature.
Definition at line 971 of file stm8l15x_tim3.c.
References DISABLE, IS_FUNCTIONAL_STATE, TIM3, and TIM_CCMR_OCxFE.
void TIM3_OC1Init | ( | TIM3_OCMode_TypeDef | TIM3_OCMode, |
TIM3_OutputState_TypeDef | TIM3_OutputState, | ||
uint16_t | TIM3_Pulse, | ||
TIM3_OCPolarity_TypeDef | TIM3_OCPolarity, | ||
TIM3_OCIdleState_TypeDef | TIM3_OCIdleState | ||
) |
Initializes the TIM3 Channel1 according to the specified parameters.
Definition at line 572 of file stm8l15x_tim3.c.
References IS_TIM3_OC_MODE, IS_TIM3_OC_POLARITY, IS_TIM3_OCIDLE_STATE, IS_TIM3_OUTPUT_STATE, TIM3, TIM3_OCIdleState_Set, TIM3_OCPolarity_Low, TIM3_OutputState_Enable, TIM_CCER1_CC1E, TIM_CCER1_CC1P, TIM_CCMR_OCM, and TIM_OISR_OIS1.
void TIM3_OC1PolarityConfig | ( | TIM3_OCPolarity_TypeDef | TIM3_OCPolarity | ) |
Configures the TIM3 Channel 1 polarity.
Definition at line 1018 of file stm8l15x_tim3.c.
References IS_TIM3_OC_POLARITY, TIM3, TIM3_OCPolarity_Low, and TIM_CCER1_CC1P.
void TIM3_OC1PreloadConfig | ( | FunctionalState | NewState | ) |
Enables or disables the TIM3 peripheral Preload Register on CCR1.
Definition at line 927 of file stm8l15x_tim3.c.
References DISABLE, IS_FUNCTIONAL_STATE, TIM3, and TIM_CCMR_OCxPE.
void TIM3_OC2FastConfig | ( | FunctionalState | NewState | ) |
Configures the TIM3 Capture Compare 2 Fast feature.
Definition at line 994 of file stm8l15x_tim3.c.
References DISABLE, IS_FUNCTIONAL_STATE, TIM3, and TIM_CCMR_OCxFE.
void TIM3_OC2Init | ( | TIM3_OCMode_TypeDef | TIM3_OCMode, |
TIM3_OutputState_TypeDef | TIM3_OutputState, | ||
uint16_t | TIM3_Pulse, | ||
TIM3_OCPolarity_TypeDef | TIM3_OCPolarity, | ||
TIM3_OCIdleState_TypeDef | TIM3_OCIdleState | ||
) |
Initializes the TIM3 Channel2 according to the specified parameters.
Definition at line 658 of file stm8l15x_tim3.c.
References IS_TIM3_OC_MODE, IS_TIM3_OC_POLARITY, IS_TIM3_OCIDLE_STATE, IS_TIM3_OUTPUT_STATE, TIM3, TIM3_OCIdleState_Set, TIM3_OCPolarity_Low, TIM3_OutputState_Enable, TIM_CCER1_CC2E, TIM_CCER1_CC2P, TIM_CCMR_OCM, and TIM_OISR_OIS2.
void TIM3_OC2PolarityConfig | ( | TIM3_OCPolarity_TypeDef | TIM3_OCPolarity | ) |
Configures the TIM3 Channel 2 polarity.
Definition at line 1042 of file stm8l15x_tim3.c.
References IS_TIM3_OC_POLARITY, TIM3, TIM3_OCPolarity_Low, and TIM_CCER1_CC2P.
void TIM3_OC2PreloadConfig | ( | FunctionalState | NewState | ) |
Enables or disables the TIM3 peripheral Preload Register on CCR2.
Definition at line 949 of file stm8l15x_tim3.c.
References DISABLE, IS_FUNCTIONAL_STATE, TIM3, and TIM_CCMR_OCxPE.
void TIM3_PrescalerConfig | ( | TIM3_Prescaler_TypeDef | Prescaler, |
TIM3_PSCReloadMode_TypeDef | TIM3_PSCReloadMode | ||
) |
Configures the TIM3 Prescaler.
Definition at line 268 of file stm8l15x_tim3.c.
References IS_TIM3_PRESCALER, IS_TIM3_PRESCALER_RELOAD, TIM3, TIM3_PSCReloadMode_Immediate, and TIM_EGR_UG.
void TIM3_PWMIConfig | ( | TIM3_Channel_TypeDef | TIM3_Channel, |
TIM3_ICPolarity_TypeDef | TIM3_ICPolarity, | ||
TIM3_ICSelection_TypeDef | TIM3_ICSelection, | ||
TIM3_ICPSC_TypeDef | TIM3_ICPrescaler, | ||
uint8_t | TIM3_ICFilter | ||
) |
Configures the TIM3 peripheral in PWM Input Mode according to the specified parameters.
Definition at line 1229 of file stm8l15x_tim3.c.
References IS_TIM3_CHANNEL, TI1_Config(), TI2_Config(), TIM3_Channel_1, TIM3_ICPolarity_Falling, TIM3_ICPolarity_Rising, TIM3_ICSelection_DirectTI, TIM3_ICSelection_IndirectTI, TIM3_SetIC1Prescaler(), and TIM3_SetIC2Prescaler().
void TIM3_SelectCCDMA | ( | FunctionalState | NewState | ) |
Selects the TIM3 peripheral Capture Compare DMA source.
Definition at line 1599 of file stm8l15x_tim3.c.
References DISABLE, IS_FUNCTIONAL_STATE, TIM3, and TIM_CR2_CCDS.
void TIM3_SelectHallSensor | ( | FunctionalState | NewState | ) |
Enables or Disables the TIM�s Hall sensor interface.
Definition at line 2009 of file stm8l15x_tim3.c.
References DISABLE, IS_FUNCTIONAL_STATE, TIM3, and TIM_CR2_TI1S.
void TIM3_SelectInputTrigger | ( | TIM3_TRGSelection_TypeDef | TIM3_InputTriggerSource | ) |
Selects the TIM3 Input Trigger source.
Definition at line 1793 of file stm8l15x_tim3.c.
References IS_TIM3_TRIGGER_SELECTION, TIM3, and TIM_SMCR_TS.
Referenced by TIM3_TIxExternalClockConfig().
void TIM3_SelectMasterSlaveMode | ( | FunctionalState | NewState | ) |
Sets or Resets the TIM3 Master/Slave Mode.
Definition at line 1873 of file stm8l15x_tim3.c.
References DISABLE, IS_FUNCTIONAL_STATE, TIM3, and TIM_SMCR_MSM.
void TIM3_SelectOCxM | ( | TIM3_Channel_TypeDef | TIM3_Channel, |
TIM3_OCMode_TypeDef | TIM3_OCMode | ||
) |
Selects the TIM3 Output Compare Mode.
This function disables the selected channel before changing the Output Compare Mode. User has to enable this channel using TIM3_CCxCmd and TIM3_CCxNCmd functions.
Definition at line 812 of file stm8l15x_tim3.c.
References IS_TIM3_CHANNEL, IS_TIM3_OCM, TIM3, TIM3_Channel_1, TIM_CCER1_CC1E, TIM_CCER1_CC2E, and TIM_CCMR_OCM.
void TIM3_SelectOnePulseMode | ( | TIM3_OPMode_TypeDef | TIM3_OPMode | ) |
Selects the TIM�s One Pulse Mode.
Definition at line 460 of file stm8l15x_tim3.c.
References IS_TIM3_OPM_MODE, TIM3, TIM3_OPMode_Single, and TIM_CR1_OPM.
void TIM3_SelectOutputTrigger | ( | TIM3_TRGOSource_TypeDef | TIM3_TRGOSource | ) |
Selects the TIM3 Trigger Output Mode.
Definition at line 1821 of file stm8l15x_tim3.c.
References IS_TIM3_TRGO_SOURCE, TIM3, and TIM_CR2_MMS.
void TIM3_SelectSlaveMode | ( | TIM3_SlaveMode_TypeDef | TIM3_SlaveMode | ) |
Selects the TIM3 Slave Mode.
Definition at line 1849 of file stm8l15x_tim3.c.
References IS_TIM3_SLAVE_MODE, TIM3, and TIM_SMCR_SMS.
void TIM3_SetAutoreload | ( | uint16_t | Autoreload | ) |
Sets the TIM3 Autoreload Register value.
Definition at line 338 of file stm8l15x_tim3.c.
References TIM3.
void TIM3_SetCompare1 | ( | uint16_t | Compare | ) |
Sets the TIM3 Capture Compare1 Register value.
Definition at line 849 of file stm8l15x_tim3.c.
References TIM3.
void TIM3_SetCompare2 | ( | uint16_t | Compare | ) |
Sets the TIM3 Capture Compare2 Register value.
Definition at line 862 of file stm8l15x_tim3.c.
References TIM3.
void TIM3_SetCounter | ( | uint16_t | Counter | ) |
Sets the TIM3 Counter Register value.
Definition at line 324 of file stm8l15x_tim3.c.
References TIM3.
void TIM3_SetIC1Prescaler | ( | TIM3_ICPSC_TypeDef | TIM3_IC1Prescaler | ) |
Sets the TIM3 Input Capture 1 prescaler.
Definition at line 1341 of file stm8l15x_tim3.c.
References IS_TIM3_IC_PRESCALER, TIM3, and TIM_CCMR_ICxPSC.
Referenced by TIM3_ICInit(), and TIM3_PWMIConfig().
void TIM3_SetIC2Prescaler | ( | TIM3_ICPSC_TypeDef | TIM3_IC2Prescaler | ) |
Sets the TIM3 Input Capture 2 prescaler.
Definition at line 1369 of file stm8l15x_tim3.c.
References IS_TIM3_IC_PRESCALER, TIM3, and TIM_CCMR_ICxPSC.
Referenced by TIM3_ICInit(), and TIM3_PWMIConfig().
void TIM3_TimeBaseInit | ( | TIM3_Prescaler_TypeDef | TIM3_Prescaler, |
TIM3_CounterMode_TypeDef | TIM3_CounterMode, | ||
uint16_t | TIM3_Period | ||
) |
Initializes the TIM3 Time Base Unit according to the specified parameters.
Definition at line 225 of file stm8l15x_tim3.c.
References IS_TIM3_COUNTER_MODE, IS_TIM3_PRESCALER, TIM3, TIM3_EventSource_Update, TIM_CR1_CMS, and TIM_CR1_DIR.
void TIM3_TIxExternalClockConfig | ( | TIM3_TIxExternalCLK1Source_TypeDef | TIM3_TIxExternalCLKSource, |
TIM3_ICPolarity_TypeDef | TIM3_ICPolarity, | ||
uint8_t | ICFilter | ||
) |
Configures the TIM3 Trigger as External Clock.
Definition at line 1659 of file stm8l15x_tim3.c.
References IS_TIM3_IC_FILTER, IS_TIM3_IC_POLARITY, IS_TIM3_TIXCLK_SOURCE, TI1_Config(), TI2_Config(), TIM3, TIM3_ICSelection_DirectTI, TIM3_SelectInputTrigger(), TIM3_SlaveMode_External1, and TIM3_TIxExternalCLK1Source_TI2.
void TIM3_UpdateDisableConfig | ( | FunctionalState | NewState | ) |
Enables or Disables the TIM3 Update event.
Definition at line 390 of file stm8l15x_tim3.c.
References DISABLE, IS_FUNCTIONAL_STATE, TIM3, and TIM_CR1_UDIS.
void TIM3_UpdateRequestConfig | ( | TIM3_UpdateSource_TypeDef | TIM3_UpdateSource | ) |
Selects the TIM3 Update Request Interrupt source.
Definition at line 414 of file stm8l15x_tim3.c.
References IS_TIM3_UPDATE_SOURCE, TIM3, TIM3_UpdateSource_Regular, and TIM_CR1_URS.