STM8S/A Standard Peripherals Drivers: stm8s_tim4.c File Reference

STM8S/A

stm8s_tim4.c File Reference

This file contains all the functions for the TIM4 peripheral. More...

#include "stm8s_tim4.h"

Go to the source code of this file.

Functions

void TIM4_ARRPreloadConfig (FunctionalState NewState)
 Enables or disables TIM4 peripheral Preload register on ARR.
void TIM4_ClearFlag (TIM4_FLAG_TypeDef TIM4_FLAG)
 Clears the TIM4�s pending flags.
void TIM4_ClearITPendingBit (TIM4_IT_TypeDef TIM4_IT)
 Clears the TIM4's interrupt pending bits.
void TIM4_Cmd (FunctionalState NewState)
 Enables or disables the TIM4 peripheral.
void TIM4_DeInit (void)
 Deinitializes the TIM4 peripheral registers to their default reset values.
void TIM4_GenerateEvent (TIM4_EventSource_TypeDef TIM4_EventSource)
 Configures the TIM4 event to be generated by software.
uint8_t TIM4_GetCounter (void)
 Gets the TIM4 Counter value.
FlagStatus TIM4_GetFlagStatus (TIM4_FLAG_TypeDef TIM4_FLAG)
 Checks whether the specified TIM4 flag is set or not.
ITStatus TIM4_GetITStatus (TIM4_IT_TypeDef TIM4_IT)
 Checks whether the TIM4 interrupt has occurred or not.
TIM4_Prescaler_TypeDef TIM4_GetPrescaler (void)
 Gets the TIM4 Prescaler value.
void TIM4_ITConfig (TIM4_IT_TypeDef TIM4_IT, FunctionalState NewState)
 Enables or disables the specified TIM4 interrupts.
void TIM4_PrescalerConfig (TIM4_Prescaler_TypeDef Prescaler, TIM4_PSCReloadMode_TypeDef TIM4_PSCReloadMode)
 Configures the TIM4 Prescaler.
void TIM4_SelectOnePulseMode (TIM4_OPMode_TypeDef TIM4_OPMode)
 Selects the TIM4�s One Pulse Mode.
void TIM4_SetAutoreload (uint8_t Autoreload)
 Sets the TIM4 Autoreload Register value.
void TIM4_SetCounter (uint8_t Counter)
 Sets the TIM4 Counter Register value.
void TIM4_TimeBaseInit (TIM4_Prescaler_TypeDef TIM4_Prescaler, uint8_t TIM4_Period)
 Initializes the TIM4 Time Base Unit according to the specified parameters.
void TIM4_UpdateDisableConfig (FunctionalState NewState)
 Enables or Disables the TIM4 Update event.
void TIM4_UpdateRequestConfig (TIM4_UpdateSource_TypeDef TIM4_UpdateSource)
 Selects the TIM4 Update Request Interrupt source.

Detailed Description

This file contains all the functions for the TIM4 peripheral.

Author:
MCD Application Team
Version:
V2.3.0
Date:
16-June-2017
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_tim4.c.

STM8 Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM8 8-bit Microcontrollers platform visit www.st.com