STM8S/A Standard Peripherals Drivers
|
This file contains all the functions for the TIM5 peripheral. More...
#include "stm8s_tim5.h"
Go to the source code of this file.
Functions | |
static void | TI1_Config (uint8_t TIM1_ICPolarity, uint8_t TIM1_ICSelection, uint8_t TIM1_ICFilter) |
Configure the TI1 as Input. | |
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 TIM1_ICPolarity, uint8_t TIM1_ICSelection, uint8_t TIM1_ICFilter) |
Configure the TI2 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 TIM1_ICPolarity, uint8_t TIM1_ICSelection, uint8_t TIM1_ICFilter) |
Configure the TI3 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. |
Detailed Description
This file contains all the functions for the TIM5 peripheral.
- Attention:
© COPYRIGHT 2014 STMicroelectronics
Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:
http://www.st.com/software_license_agreement_liberty_v2
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file stm8s_tim5.c.