STM8S/A Standard Peripherals Drivers
|
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. |
Function Documentation
void TIM4_ARRPreloadConfig | ( | FunctionalState | NewState | ) |
Enables or disables TIM4 peripheral Preload register on ARR.
Definition at line 234 of file stm8s_tim4.c.
References DISABLE, IS_FUNCTIONALSTATE_OK, and TIM4_CR1_ARPE.
void TIM4_ClearFlag | ( | TIM4_FLAG_TypeDef | TIM4_FLAG | ) |
Clears the TIM4�s pending flags.
Definition at line 344 of file stm8s_tim4.c.
References IS_TIM4_GET_FLAG_OK.
void TIM4_ClearITPendingBit | ( | TIM4_IT_TypeDef | TIM4_IT | ) |
Clears the TIM4's interrupt pending bits.
Definition at line 391 of file stm8s_tim4.c.
References IS_TIM4_IT_OK.
void TIM4_Cmd | ( | FunctionalState | NewState | ) |
Enables or disables the TIM4 peripheral.
Definition at line 81 of file stm8s_tim4.c.
References DISABLE, IS_FUNCTIONALSTATE_OK, and TIM4_CR1_CEN.
void TIM4_DeInit | ( | void | ) |
Deinitializes the TIM4 peripheral registers to their default reset values.
Definition at line 49 of file stm8s_tim4.c.
References TIM4_ARR_RESET_VALUE, TIM4_CNTR_RESET_VALUE, TIM4_CR1_RESET_VALUE, TIM4_IER_RESET_VALUE, TIM4_PSCR_RESET_VALUE, and TIM4_SR1_RESET_VALUE.
void TIM4_GenerateEvent | ( | TIM4_EventSource_TypeDef | TIM4_EventSource | ) |
Configures the TIM4 event to be generated by software.
Definition at line 257 of file stm8s_tim4.c.
References IS_TIM4_EVENT_SOURCE_OK.
uint8_t TIM4_GetCounter | ( | void | ) |
Gets the TIM4 Counter value.
Definition at line 295 of file stm8s_tim4.c.
FlagStatus TIM4_GetFlagStatus | ( | TIM4_FLAG_TypeDef | TIM4_FLAG | ) |
Checks whether the specified TIM4 flag is set or not.
Definition at line 319 of file stm8s_tim4.c.
References IS_TIM4_GET_FLAG_OK, RESET, and SET.
ITStatus TIM4_GetITStatus | ( | TIM4_IT_TypeDef | TIM4_IT | ) |
Checks whether the TIM4 interrupt has occurred or not.
Definition at line 360 of file stm8s_tim4.c.
References IS_TIM4_IT_OK, RESET, and SET.
TIM4_Prescaler_TypeDef TIM4_GetPrescaler | ( | void | ) |
Gets the TIM4 Prescaler value.
Definition at line 306 of file stm8s_tim4.c.
void TIM4_ITConfig | ( | TIM4_IT_TypeDef | TIM4_IT, |
FunctionalState | NewState | ||
) |
Enables or disables the specified TIM4 interrupts.
Definition at line 107 of file stm8s_tim4.c.
References DISABLE, IS_FUNCTIONALSTATE_OK, and IS_TIM4_IT_OK.
void TIM4_PrescalerConfig | ( | TIM4_Prescaler_TypeDef | Prescaler, |
TIM4_PSCReloadMode_TypeDef | TIM4_PSCReloadMode | ||
) |
Configures the TIM4 Prescaler.
Definition at line 215 of file stm8s_tim4.c.
References IS_TIM4_PRESCALER_OK, and IS_TIM4_PRESCALER_RELOAD_OK.
void TIM4_SelectOnePulseMode | ( | TIM4_OPMode_TypeDef | TIM4_OPMode | ) |
Selects the TIM4�s One Pulse Mode.
Definition at line 179 of file stm8s_tim4.c.
References IS_TIM4_OPM_MODE_OK, TIM4_CR1_OPM, and TIM4_OPMODE_REPETITIVE.
void TIM4_SetAutoreload | ( | uint8_t | Autoreload | ) |
Sets the TIM4 Autoreload Register value.
Definition at line 284 of file stm8s_tim4.c.
void TIM4_SetCounter | ( | uint8_t | Counter | ) |
Sets the TIM4 Counter Register value.
Definition at line 272 of file stm8s_tim4.c.
void TIM4_TimeBaseInit | ( | TIM4_Prescaler_TypeDef | TIM4_Prescaler, |
uint8_t | TIM4_Period | ||
) |
Initializes the TIM4 Time Base Unit according to the specified parameters.
Definition at line 65 of file stm8s_tim4.c.
References IS_TIM4_PRESCALER_OK.
void TIM4_UpdateDisableConfig | ( | FunctionalState | NewState | ) |
Enables or Disables the TIM4 Update event.
Definition at line 131 of file stm8s_tim4.c.
References DISABLE, IS_FUNCTIONALSTATE_OK, and TIM4_CR1_UDIS.
void TIM4_UpdateRequestConfig | ( | TIM4_UpdateSource_TypeDef | TIM4_UpdateSource | ) |
Selects the TIM4 Update Request Interrupt source.
Definition at line 155 of file stm8s_tim4.c.
References IS_TIM4_UPDATE_SOURCE_OK, TIM4_CR1_URS, and TIM4_UPDATESOURCE_GLOBAL.