STM8S/A Standard Peripherals Drivers
|
Functions | |
static void | TI1_Config (uint8_t TIM5_ICPolarity, uint8_t TIM5_ICSelection, uint8_t TIM5_ICFilter) |
Configure the TI1 as Input. | |
static void | TI2_Config (uint8_t TIM5_ICPolarity, uint8_t TIM5_ICSelection, uint8_t TIM5_ICFilter) |
Configure the TI2 as Input. | |
static void | TI3_Config (uint8_t TIM5_ICPolarity, uint8_t TIM5_ICSelection, uint8_t TIM5_ICFilter) |
Configure the TI3 as Input. | |
void | TIM5_ARRPreloadConfig (FunctionalState NewState) |
Enables or disables TIM5 peripheral Preload register on ARR. | |
void | TIM5_CCxCmd (TIM5_Channel_TypeDef TIM5_Channel, FunctionalState NewState) |
Enables or disables the TIM5 Capture Compare Channel x. | |
void | TIM5_ClearFlag (TIM5_FLAG_TypeDef TIM5_FLAG) |
Clears the TIM5�s pending flags. | |
void | TIM5_ClearITPendingBit (TIM5_IT_TypeDef TIM5_IT) |
Clears the TIM5's interrupt pending bits. | |
void | TIM5_Cmd (FunctionalState NewState) |
Enables or disables the TIM5 peripheral. | |
void | TIM5_DeInit (void) |
Deinitializes the TIM5 peripheral registers to their default reset values. | |
void | TIM5_EncoderInterfaceConfig (TIM5_EncoderMode_TypeDef TIM5_EncoderMode, TIM5_ICPolarity_TypeDef TIM5_IC1Polarity, TIM5_ICPolarity_TypeDef TIM5_IC2Polarity) |
Configures the TIM5 Encoder Interface. | |
void | TIM5_ForcedOC1Config (TIM5_ForcedAction_TypeDef TIM5_ForcedAction) |
Forces the TIM5 Channel1 output waveform to active or inactive level. | |
void | TIM5_ForcedOC2Config (TIM5_ForcedAction_TypeDef TIM5_ForcedAction) |
Forces the TIM5 Channel2 output waveform to active or inactive level. | |
void | TIM5_ForcedOC3Config (TIM5_ForcedAction_TypeDef TIM5_ForcedAction) |
Forces the TIM5 Channel3 output waveform to active or inactive level. | |
void | TIM5_GenerateEvent (TIM5_EventSource_TypeDef TIM5_EventSource) |
Configures the TIM5 event to be generated by software. | |
uint16_t | TIM5_GetCapture1 (void) |
Gets the TIM5 Input Capture 1 value. | |
uint16_t | TIM5_GetCapture2 (void) |
Gets the TIM5 Input Capture 2 value. | |
uint16_t | TIM5_GetCapture3 (void) |
Gets the TIM5 Input Capture 3 value. | |
uint16_t | TIM5_GetCounter (void) |
Gets the TIM5 Counter value. | |
FlagStatus | TIM5_GetFlagStatus (TIM5_FLAG_TypeDef TIM5_FLAG) |
Checks whether the specified TIM5 flag is set or not. | |
ITStatus | TIM5_GetITStatus (TIM5_IT_TypeDef TIM5_IT) |
Checks whether the TIM5 interrupt has occurred or not. | |
TIM5_Prescaler_TypeDef | TIM5_GetPrescaler (void) |
Gets the TIM5 Prescaler value. | |
void | TIM5_ICInit (TIM5_Channel_TypeDef TIM5_Channel, TIM5_ICPolarity_TypeDef TIM5_ICPolarity, TIM5_ICSelection_TypeDef TIM5_ICSelection, TIM5_ICPSC_TypeDef TIM5_ICPrescaler, uint8_t TIM5_ICFilter) |
Initializes the TIM5 peripheral according to the specified parameters. | |
void | TIM5_InternalClockConfig (void) |
Enables the TIM5 internal Clock. | |
void | TIM5_ITConfig (TIM5_IT_TypeDef TIM5_IT, FunctionalState NewState) |
Enables or disables the specified TIM5 interrupts. | |
void | TIM5_OC1Init (TIM5_OCMode_TypeDef TIM5_OCMode, TIM5_OutputState_TypeDef TIM5_OutputState, uint16_t TIM5_Pulse, TIM5_OCPolarity_TypeDef TIM5_OCPolarity) |
Initializes the TIM5 Channel1 according to the specified parameters. | |
void | TIM5_OC1PolarityConfig (TIM5_OCPolarity_TypeDef TIM5_OCPolarity) |
Configures the TIM5 Channel 1 polarity. | |
void | TIM5_OC1PreloadConfig (FunctionalState NewState) |
Enables or disables the TIM5 peripheral Preload Register on CCR1. | |
void | TIM5_OC2Init (TIM5_OCMode_TypeDef TIM5_OCMode, TIM5_OutputState_TypeDef TIM5_OutputState, uint16_t TIM5_Pulse, TIM5_OCPolarity_TypeDef TIM5_OCPolarity) |
Initializes the TIM5 Channel2 according to the specified parameters. | |
void | TIM5_OC2PolarityConfig (TIM5_OCPolarity_TypeDef TIM5_OCPolarity) |
Configures the TIM5 Channel 2 polarity. | |
void | TIM5_OC2PreloadConfig (FunctionalState NewState) |
Enables or disables the TIM5 peripheral Preload Register on CCR2. | |
void | TIM5_OC3Init (TIM5_OCMode_TypeDef TIM5_OCMode, TIM5_OutputState_TypeDef TIM5_OutputState, uint16_t TIM5_Pulse, TIM5_OCPolarity_TypeDef TIM5_OCPolarity) |
Initializes the TIM5 Channel3 according to the specified parameters. | |
void | TIM5_OC3PolarityConfig (TIM5_OCPolarity_TypeDef TIM5_OCPolarity) |
Configures the TIM5 Channel 3 polarity. | |
void | TIM5_OC3PreloadConfig (FunctionalState NewState) |
Enables or disables the TIM5 peripheral Preload Register on CCR3. | |
void | TIM5_PrescalerConfig (TIM5_Prescaler_TypeDef Prescaler, TIM5_PSCReloadMode_TypeDef TIM5_PSCReloadMode) |
Configures the TIM5 Prescaler. | |
void | TIM5_PWMIConfig (TIM5_Channel_TypeDef TIM5_Channel, TIM5_ICPolarity_TypeDef TIM5_ICPolarity, TIM5_ICSelection_TypeDef TIM5_ICSelection, TIM5_ICPSC_TypeDef TIM5_ICPrescaler, uint8_t TIM5_ICFilter) |
Configures the TIM5 peripheral in PWM Input Mode according to the specified parameters. | |
void | TIM5_SelectInputTrigger (TIM5_TS_TypeDef TIM5_InputTriggerSource) |
Selects the TIM5 Input Trigger source. | |
void | TIM5_SelectOCxM (TIM5_Channel_TypeDef TIM5_Channel, TIM5_OCMode_TypeDef TIM5_OCMode) |
Selects the TIM5 Output Compare Mode. | |
void | TIM5_SelectOnePulseMode (TIM5_OPMode_TypeDef TIM5_OPMode) |
Selects the TIM5�s One Pulse Mode. | |
void | TIM5_SelectOutputTrigger (TIM5_TRGOSource_TypeDef TIM5_TRGOSource) |
Selects the TIM5 Trigger Output Mode. | |
void | TIM5_SelectSlaveMode (TIM5_SlaveMode_TypeDef TIM5_SlaveMode) |
Selects the TIM5 Slave Mode. | |
void | TIM5_SetAutoreload (uint16_t Autoreload) |
Sets the TIM5 Autoreload Register value. | |
void | TIM5_SetCompare1 (uint16_t Compare1) |
Sets the TIM5 Capture Compare1 Register value. | |
void | TIM5_SetCompare2 (uint16_t Compare2) |
Sets the TIM5 Capture Compare2 Register value. | |
void | TIM5_SetCompare3 (uint16_t Compare3) |
Sets the TIM5 Capture Compare3 Register value. | |
void | TIM5_SetCounter (uint16_t Counter) |
Sets the TIM5 Counter Register value. | |
void | TIM5_SetIC1Prescaler (TIM5_ICPSC_TypeDef TIM5_IC1Prescaler) |
Sets the TIM5 Input Capture 1 prescaler. | |
void | TIM5_SetIC2Prescaler (TIM5_ICPSC_TypeDef TIM5_IC2Prescaler) |
Sets the TIM5 Input Capture 2 prescaler. | |
void | TIM5_SetIC3Prescaler (TIM5_ICPSC_TypeDef TIM5_IC3Prescaler) |
Sets the TIM5 Input Capture 3 prescaler. | |
void | TIM5_TimeBaseInit (TIM5_Prescaler_TypeDef TIM5_Prescaler, uint16_t TIM5_Period) |
Initializes the TIM5 Time Base Unit according to the specified parameters. | |
void | TIM5_UpdateDisableConfig (FunctionalState NewState) |
Enables or Disables the TIM5 Update event. | |
void | TIM5_UpdateRequestConfig (TIM5_UpdateSource_TypeDef TIM5_UpdateSource) |
Selects the TIM5 Update Request Interrupt source. |
Function Documentation
static void TI1_Config | ( | uint8_t | TIM5_ICPolarity, |
uint8_t | TIM5_ICSelection, | ||
uint8_t | TIM5_ICFilter | ||
) | [static] |
Configure the TI1 as Input.
Definition at line 1161 of file stm8s_tim5.c.
References TIM5_CCER1_CC1E, TIM5_CCER1_CC1P, TIM5_CCMR_CCxS, TIM5_CCMR_ICxF, and TIM5_ICPOLARITY_RISING.
Referenced by TIM5_ICInit(), and TIM5_PWMIConfig().
static void TI2_Config | ( | uint8_t | TIM5_ICPolarity, |
uint8_t | TIM5_ICSelection, | ||
uint8_t | TIM5_ICFilter | ||
) | [static] |
Configure the TI2 as Input.
Definition at line 1201 of file stm8s_tim5.c.
References TIM5_CCER1_CC2E, TIM5_CCER1_CC2P, TIM5_CCMR_CCxS, TIM5_CCMR_ICxF, and TIM5_ICPOLARITY_RISING.
Referenced by TIM5_ICInit(), and TIM5_PWMIConfig().
static void TI3_Config | ( | uint8_t | TIM5_ICPolarity, |
uint8_t | TIM5_ICSelection, | ||
uint8_t | TIM5_ICFilter | ||
) | [static] |
Configure the TI3 as Input.
Definition at line 1241 of file stm8s_tim5.c.
References TIM5_CCER2_CC3E, TIM5_CCER2_CC3P, TIM5_CCMR_CCxS, TIM5_CCMR_ICxF, and TIM5_ICPOLARITY_RISING.
Referenced by TIM5_ICInit().
void TIM5_ARRPreloadConfig | ( | FunctionalState | NewState | ) |
Enables or disables TIM5 peripheral Preload register on ARR.
Definition at line 556 of file stm8s_tim5.c.
References DISABLE, IS_FUNCTIONALSTATE_OK, and TIM5_CR1_ARPE.
void TIM5_CCxCmd | ( | TIM5_Channel_TypeDef | TIM5_Channel, |
FunctionalState | NewState | ||
) |
Enables or disables the TIM5 Capture Compare Channel x.
Definition at line 741 of file stm8s_tim5.c.
References DISABLE, IS_FUNCTIONALSTATE_OK, IS_TIM5_CHANNEL_OK, TIM5_CCER1_CC1E, TIM5_CCER1_CC2E, TIM5_CCER2_CC3E, TIM5_CHANNEL_1, and TIM5_CHANNEL_2.
void TIM5_ClearFlag | ( | TIM5_FLAG_TypeDef | TIM5_FLAG | ) |
Clears the TIM5�s pending flags.
Definition at line 1082 of file stm8s_tim5.c.
References IS_TIM5_CLEAR_FLAG_OK.
void TIM5_ClearITPendingBit | ( | TIM5_IT_TypeDef | TIM5_IT | ) |
Clears the TIM5's interrupt pending bits.
Definition at line 1136 of file stm8s_tim5.c.
References IS_TIM5_IT_OK.
void TIM5_Cmd | ( | FunctionalState | NewState | ) |
Enables or disables the TIM5 peripheral.
Definition at line 334 of file stm8s_tim5.c.
References DISABLE, IS_FUNCTIONALSTATE_OK, and TIM5_CR1_CEN.
void TIM5_DeInit | ( | void | ) |
Deinitializes the TIM5 peripheral registers to their default reset values.
Definition at line 52 of file stm8s_tim5.c.
References TIM5_ARRH_RESET_VALUE, TIM5_ARRL_RESET_VALUE, TIM5_CCER1_RESET_VALUE, TIM5_CCER2_RESET_VALUE, TIM5_CCMR1_RESET_VALUE, TIM5_CCMR2_RESET_VALUE, TIM5_CCMR3_RESET_VALUE, TIM5_CCR1H_RESET_VALUE, TIM5_CCR1L_RESET_VALUE, TIM5_CCR2H_RESET_VALUE, TIM5_CCR2L_RESET_VALUE, TIM5_CCR3H_RESET_VALUE, TIM5_CCR3L_RESET_VALUE, TIM5_CNTRH_RESET_VALUE, TIM5_CNTRL_RESET_VALUE, TIM5_CR1_RESET_VALUE, TIM5_CR2_RESET_VALUE, TIM5_IER_RESET_VALUE, TIM5_PSCR_RESET_VALUE, TIM5_SMCR_RESET_VALUE, TIM5_SR1_RESET_VALUE, and TIM5_SR2_RESET_VALUE.
void TIM5_EncoderInterfaceConfig | ( | TIM5_EncoderMode_TypeDef | TIM5_EncoderMode, |
TIM5_ICPolarity_TypeDef | TIM5_IC1Polarity, | ||
TIM5_ICPolarity_TypeDef | TIM5_IC2Polarity | ||
) |
Configures the TIM5 Encoder Interface.
Definition at line 1357 of file stm8s_tim5.c.
References IS_TIM5_ENCODER_MODE_OK, IS_TIM5_IC_POLARITY_OK, TIM5_CCER1_CC1P, TIM5_CCER1_CC2P, TIM5_CCMR_CCxS, TIM5_CCMR_TIxDirect_Set, TIM5_ICPOLARITY_FALLING, TIM5_SMCR_MSM, and TIM5_SMCR_TS.
void TIM5_ForcedOC1Config | ( | TIM5_ForcedAction_TypeDef | TIM5_ForcedAction | ) |
Forces the TIM5 Channel1 output waveform to active or inactive level.
Definition at line 502 of file stm8s_tim5.c.
References IS_TIM5_FORCED_ACTION_OK, and TIM5_CCMR_OCM.
void TIM5_ForcedOC2Config | ( | TIM5_ForcedAction_TypeDef | TIM5_ForcedAction | ) |
Forces the TIM5 Channel2 output waveform to active or inactive level.
Definition at line 521 of file stm8s_tim5.c.
References IS_TIM5_FORCED_ACTION_OK, and TIM5_CCMR_OCM.
void TIM5_ForcedOC3Config | ( | TIM5_ForcedAction_TypeDef | TIM5_ForcedAction | ) |
Forces the TIM5 Channel3 output waveform to active or inactive level.
Definition at line 540 of file stm8s_tim5.c.
References IS_TIM5_FORCED_ACTION_OK, and TIM5_CCMR_OCM.
void TIM5_GenerateEvent | ( | TIM5_EventSource_TypeDef | TIM5_EventSource | ) |
Configures the TIM5 event to be generated by software.
Definition at line 648 of file stm8s_tim5.c.
References IS_TIM5_EVENT_SOURCE_OK.
uint16_t TIM5_GetCapture1 | ( | void | ) |
Gets the TIM5 Input Capture 1 value.
Definition at line 970 of file stm8s_tim5.c.
uint16_t TIM5_GetCapture2 | ( | void | ) |
Gets the TIM5 Input Capture 2 value.
Definition at line 985 of file stm8s_tim5.c.
uint16_t TIM5_GetCapture3 | ( | void | ) |
Gets the TIM5 Input Capture 3 value.
Definition at line 1000 of file stm8s_tim5.c.
uint16_t TIM5_GetCounter | ( | void | ) |
Gets the TIM5 Counter value.
Definition at line 1014 of file stm8s_tim5.c.
FlagStatus TIM5_GetFlagStatus | ( | TIM5_FLAG_TypeDef | TIM5_FLAG | ) |
Checks whether the specified TIM5 flag is set or not.
Definition at line 1047 of file stm8s_tim5.c.
References IS_TIM5_GET_FLAG_OK, RESET, and SET.
ITStatus TIM5_GetITStatus | ( | TIM5_IT_TypeDef | TIM5_IT | ) |
Checks whether the TIM5 interrupt has occurred or not.
Definition at line 1103 of file stm8s_tim5.c.
References IS_TIM5_GET_IT_OK, RESET, and SET.
TIM5_Prescaler_TypeDef TIM5_GetPrescaler | ( | void | ) |
Gets the TIM5 Prescaler value.
Definition at line 1028 of file stm8s_tim5.c.
void TIM5_ICInit | ( | TIM5_Channel_TypeDef | TIM5_Channel, |
TIM5_ICPolarity_TypeDef | TIM5_ICPolarity, | ||
TIM5_ICSelection_TypeDef | TIM5_ICSelection, | ||
TIM5_ICPSC_TypeDef | TIM5_ICPrescaler, | ||
uint8_t | TIM5_ICFilter | ||
) |
Initializes the TIM5 peripheral according to the specified parameters.
Definition at line 207 of file stm8s_tim5.c.
References IS_TIM5_CHANNEL_OK, IS_TIM5_IC_FILTER_OK, IS_TIM5_IC_POLARITY_OK, IS_TIM5_IC_PRESCALER_OK, IS_TIM5_IC_SELECTION_OK, TI1_Config(), TI2_Config(), TI3_Config(), TIM5_CHANNEL_1, TIM5_CHANNEL_2, TIM5_SetIC1Prescaler(), TIM5_SetIC2Prescaler(), and TIM5_SetIC3Prescaler().
void TIM5_InternalClockConfig | ( | void | ) |
Enables the TIM5 internal Clock.
Definition at line 1271 of file stm8s_tim5.c.
References TIM5_SMCR_SMS.
void TIM5_ITConfig | ( | TIM5_IT_TypeDef | TIM5_IT, |
FunctionalState | NewState | ||
) |
Enables or disables the specified TIM5 interrupts.
Definition at line 363 of file stm8s_tim5.c.
References DISABLE, IS_FUNCTIONALSTATE_OK, and IS_TIM5_IT_OK.
void TIM5_OC1Init | ( | TIM5_OCMode_TypeDef | TIM5_OCMode, |
TIM5_OutputState_TypeDef | TIM5_OutputState, | ||
uint16_t | TIM5_Pulse, | ||
TIM5_OCPolarity_TypeDef | TIM5_OCPolarity | ||
) |
Initializes the TIM5 Channel1 according to the specified parameters.
Definition at line 108 of file stm8s_tim5.c.
References IS_TIM5_OC_MODE_OK, IS_TIM5_OC_POLARITY_OK, IS_TIM5_OUTPUT_STATE_OK, TIM5_CCER1_CC1E, TIM5_CCER1_CC1P, and TIM5_CCMR_OCM.
void TIM5_OC1PolarityConfig | ( | TIM5_OCPolarity_TypeDef | TIM5_OCPolarity | ) |
Configures the TIM5 Channel 1 polarity.
Definition at line 665 of file stm8s_tim5.c.
References IS_TIM5_OC_POLARITY_OK, TIM5_CCER1_CC1P, and TIM5_OCPOLARITY_HIGH.
void TIM5_OC1PreloadConfig | ( | FunctionalState | NewState | ) |
Enables or disables the TIM5 peripheral Preload Register on CCR1.
Definition at line 578 of file stm8s_tim5.c.
References DISABLE, IS_FUNCTIONALSTATE_OK, and TIM5_CCMR_OCxPE.
void TIM5_OC2Init | ( | TIM5_OCMode_TypeDef | TIM5_OCMode, |
TIM5_OutputState_TypeDef | TIM5_OutputState, | ||
uint16_t | TIM5_Pulse, | ||
TIM5_OCPolarity_TypeDef | TIM5_OCPolarity | ||
) |
Initializes the TIM5 Channel2 according to the specified parameters.
Definition at line 141 of file stm8s_tim5.c.
References IS_TIM5_OC_MODE_OK, IS_TIM5_OC_POLARITY_OK, IS_TIM5_OUTPUT_STATE_OK, TIM5_CCER1_CC2E, TIM5_CCER1_CC2P, and TIM5_CCMR_OCM.
void TIM5_OC2PolarityConfig | ( | TIM5_OCPolarity_TypeDef | TIM5_OCPolarity | ) |
Configures the TIM5 Channel 2 polarity.
Definition at line 690 of file stm8s_tim5.c.
References IS_TIM5_OC_POLARITY_OK, TIM5_CCER1_CC2P, and TIM5_OCPOLARITY_HIGH.
void TIM5_OC2PreloadConfig | ( | FunctionalState | NewState | ) |
Enables or disables the TIM5 peripheral Preload Register on CCR2.
Definition at line 600 of file stm8s_tim5.c.
References DISABLE, IS_FUNCTIONALSTATE_OK, and TIM5_CCMR_OCxPE.
void TIM5_OC3Init | ( | TIM5_OCMode_TypeDef | TIM5_OCMode, |
TIM5_OutputState_TypeDef | TIM5_OutputState, | ||
uint16_t | TIM5_Pulse, | ||
TIM5_OCPolarity_TypeDef | TIM5_OCPolarity | ||
) |
Initializes the TIM5 Channel3 according to the specified parameters.
Definition at line 175 of file stm8s_tim5.c.
References IS_TIM5_OC_MODE_OK, IS_TIM5_OC_POLARITY_OK, IS_TIM5_OUTPUT_STATE_OK, TIM5_CCER2_CC3E, TIM5_CCER2_CC3P, and TIM5_CCMR_OCM.
void TIM5_OC3PolarityConfig | ( | TIM5_OCPolarity_TypeDef | TIM5_OCPolarity | ) |
Configures the TIM5 Channel 3 polarity.
Definition at line 714 of file stm8s_tim5.c.
References IS_TIM5_OC_POLARITY_OK, TIM5_CCER2_CC3P, and TIM5_OCPOLARITY_HIGH.
void TIM5_OC3PreloadConfig | ( | FunctionalState | NewState | ) |
Enables or disables the TIM5 peripheral Preload Register on CCR3.
Definition at line 622 of file stm8s_tim5.c.
References DISABLE, IS_FUNCTIONALSTATE_OK, and TIM5_CCMR_OCxPE.
void TIM5_PrescalerConfig | ( | TIM5_Prescaler_TypeDef | Prescaler, |
TIM5_PSCReloadMode_TypeDef | TIM5_PSCReloadMode | ||
) |
Configures the TIM5 Prescaler.
Definition at line 479 of file stm8s_tim5.c.
References IS_TIM5_PRESCALER_OK, and IS_TIM5_PRESCALER_RELOAD_OK.
void TIM5_PWMIConfig | ( | TIM5_Channel_TypeDef | TIM5_Channel, |
TIM5_ICPolarity_TypeDef | TIM5_ICPolarity, | ||
TIM5_ICSelection_TypeDef | TIM5_ICSelection, | ||
TIM5_ICPSC_TypeDef | TIM5_ICPrescaler, | ||
uint8_t | TIM5_ICFilter | ||
) |
Configures the TIM5 peripheral in PWM Input Mode according to the specified parameters.
Definition at line 261 of file stm8s_tim5.c.
References IS_TIM5_IC_POLARITY_OK, IS_TIM5_IC_PRESCALER_OK, IS_TIM5_IC_SELECTION_OK, IS_TIM5_PWMI_CHANNEL_OK, TI1_Config(), TI2_Config(), TIM5_CHANNEL_1, TIM5_ICPOLARITY_FALLING, TIM5_ICPOLARITY_RISING, TIM5_ICSELECTION_DIRECTTI, TIM5_ICSELECTION_INDIRECTTI, TIM5_SetIC1Prescaler(), and TIM5_SetIC2Prescaler().
void TIM5_SelectInputTrigger | ( | TIM5_TS_TypeDef | TIM5_InputTriggerSource | ) |
Selects the TIM5 Input Trigger source.
Definition at line 1331 of file stm8s_tim5.c.
References IS_TIM5_TRIGGER_SELECTION_OK, and TIM5_SMCR_TS.
void TIM5_SelectOCxM | ( | TIM5_Channel_TypeDef | TIM5_Channel, |
TIM5_OCMode_TypeDef | TIM5_OCMode | ||
) |
Selects the TIM5 Output Compare Mode.
This function disables the selected channel before changing the Output Compare Mode. User has to enable this channel using TIM5_CCxCmd and TIM5_CCxNCmd functions.
Definition at line 806 of file stm8s_tim5.c.
References IS_TIM5_CHANNEL_OK, IS_TIM5_OCM_OK, TIM5_CCER1_CC1E, TIM5_CCER1_CC2E, TIM5_CCER2_CC3E, TIM5_CCMR_OCM, TIM5_CHANNEL_1, and TIM5_CHANNEL_2.
void TIM5_SelectOnePulseMode | ( | TIM5_OPMode_TypeDef | TIM5_OPMode | ) |
Selects the TIM5�s One Pulse Mode.
Definition at line 435 of file stm8s_tim5.c.
References IS_TIM5_OPM_MODE_OK, TIM5_CR1_OPM, and TIM5_OPMODE_REPETITIVE.
void TIM5_SelectOutputTrigger | ( | TIM5_TRGOSource_TypeDef | TIM5_TRGOSource | ) |
Selects the TIM5 Trigger Output Mode.
Definition at line 1283 of file stm8s_tim5.c.
References IS_TIM5_TRGO_SOURCE_OK, and TIM5_CR2_MMS.
void TIM5_SelectSlaveMode | ( | TIM5_SlaveMode_TypeDef | TIM5_SlaveMode | ) |
Selects the TIM5 Slave Mode.
Definition at line 1307 of file stm8s_tim5.c.
References IS_TIM5_SLAVE_MODE_OK, and TIM5_SMCR_SMS.
void TIM5_SetAutoreload | ( | uint16_t | Autoreload | ) |
Sets the TIM5 Autoreload Register value.
Definition at line 860 of file stm8s_tim5.c.
void TIM5_SetCompare1 | ( | uint16_t | Compare1 | ) |
Sets the TIM5 Capture Compare1 Register value.
Definition at line 873 of file stm8s_tim5.c.
void TIM5_SetCompare2 | ( | uint16_t | Compare2 | ) |
Sets the TIM5 Capture Compare2 Register value.
Definition at line 886 of file stm8s_tim5.c.
void TIM5_SetCompare3 | ( | uint16_t | Compare3 | ) |
Sets the TIM5 Capture Compare3 Register value.
Definition at line 899 of file stm8s_tim5.c.
void TIM5_SetCounter | ( | uint16_t | Counter | ) |
Sets the TIM5 Counter Register value.
Definition at line 847 of file stm8s_tim5.c.
void TIM5_SetIC1Prescaler | ( | TIM5_ICPSC_TypeDef | TIM5_IC1Prescaler | ) |
Sets the TIM5 Input Capture 1 prescaler.
Definition at line 916 of file stm8s_tim5.c.
References IS_TIM5_IC_PRESCALER_OK, and TIM5_CCMR_ICxPSC.
Referenced by TIM5_ICInit(), and TIM5_PWMIConfig().
void TIM5_SetIC2Prescaler | ( | TIM5_ICPSC_TypeDef | TIM5_IC2Prescaler | ) |
Sets the TIM5 Input Capture 2 prescaler.
Definition at line 936 of file stm8s_tim5.c.
References IS_TIM5_IC_PRESCALER_OK, and TIM5_CCMR_ICxPSC.
Referenced by TIM5_ICInit(), and TIM5_PWMIConfig().
void TIM5_SetIC3Prescaler | ( | TIM5_ICPSC_TypeDef | TIM5_IC3Prescaler | ) |
Sets the TIM5 Input Capture 3 prescaler.
Definition at line 956 of file stm8s_tim5.c.
References IS_TIM5_IC_PRESCALER_OK, and TIM5_CCMR_ICxPSC.
Referenced by TIM5_ICInit().
void TIM5_TimeBaseInit | ( | TIM5_Prescaler_TypeDef | TIM5_Prescaler, |
uint16_t | TIM5_Period | ||
) |
Initializes the TIM5 Time Base Unit according to the specified parameters.
Definition at line 90 of file stm8s_tim5.c.
void TIM5_UpdateDisableConfig | ( | FunctionalState | NewState | ) |
Enables or Disables the TIM5 Update event.
Definition at line 387 of file stm8s_tim5.c.
References DISABLE, IS_FUNCTIONALSTATE_OK, and TIM5_CR1_UDIS.
void TIM5_UpdateRequestConfig | ( | TIM5_UpdateSource_TypeDef | TIM5_UpdateSource | ) |
Selects the TIM5 Update Request Interrupt source.
Definition at line 411 of file stm8s_tim5.c.
References IS_TIM5_UPDATE_SOURCE_OK, TIM5_CR1_URS, and TIM5_UPDATESOURCE_GLOBAL.