STM8S/A Standard Peripherals Drivers
|
This file contains all functions prototype and macros for the TIM6 peripheral. More...
#include "stm8s.h"
Go to the source code of this file.
Defines | |
#define | IS_TIM6_CLEAR_FLAG_OK(FLAG) ((((FLAG) & (uint8_t)0xBE) == 0x00) && ((FLAG) != 0x00)) |
#define | IS_TIM6_EVENT_SOURCE_OK(SOURCE) |
Macro TIM6 Event source. | |
#define | IS_TIM6_GET_FLAG_OK(FLAG) |
Macro TIM6 Flags. | |
#define | IS_TIM6_GET_IT_OK(IT) |
#define | IS_TIM6_IT_OK(IT) |
Macro TIM6 interrupts. | |
#define | IS_TIM6_OPM_MODE_OK(MODE) |
Macro TIM6 One Pulse Mode. | |
#define | IS_TIM6_PRESCALER_OK(PRESCALER) |
Macro used by the assert function to check the different functions parameters. | |
#define | IS_TIM6_PRESCALER_RELOAD_OK(RELOAD) |
Macro TIM6 Prescaler reload. | |
#define | IS_TIM6_SLAVE_MODE_OK(MODE) |
Macro TIM6 Slave mode. | |
#define | IS_TIM6_TRGO_SOURCE_OK(SOURCE) |
Macro TIM6 TRGO source. | |
#define | IS_TIM6_TRIGGER_SELECTION_OK(SELECTION) |
Macro TIM6 Trigger selection. | |
#define | IS_TIM6_UPDATE_SOURCE_OK(SOURCE) |
Macro TIM6 Update source. | |
Enumerations | |
enum | TIM6_EventSource_TypeDef { TIM6_EVENTSOURCE_UPDATE = ((uint8_t)0x01), TIM6_EVENTSOURCE_TRIGGER = ((uint8_t)0x40) } |
TIM6 Event Source. More... | |
enum | TIM6_FLAG_TypeDef { TIM6_FLAG_UPDATE = ((uint8_t)0x01), TIM6_FLAG_TRIGGER = ((uint8_t)0x40) } |
TIM6 Flags. More... | |
enum | TIM6_IT_TypeDef { TIM6_IT_UPDATE = ((uint8_t)0x01), TIM6_IT_TRIGGER = ((uint8_t)0x40) } |
TIM6 interrupt sources. More... | |
enum | TIM6_OPMode_TypeDef { TIM6_OPMODE_SINGLE = ((uint8_t)0x01), TIM6_OPMODE_REPETITIVE = ((uint8_t)0x00) } |
TIM6 One Pulse Mode. More... | |
enum | TIM6_Prescaler_TypeDef { TIM6_PRESCALER_1 = ((uint8_t)0x00), TIM6_PRESCALER_2 = ((uint8_t)0x01), TIM6_PRESCALER_4 = ((uint8_t)0x02), TIM6_PRESCALER_8 = ((uint8_t)0x03), TIM6_PRESCALER_16 = ((uint8_t)0x04), TIM6_PRESCALER_32 = ((uint8_t)0x05), TIM6_PRESCALER_64 = ((uint8_t)0x06), TIM6_PRESCALER_128 = ((uint8_t)0x07) } |
TIM6 Prescaler. More... | |
enum | TIM6_PSCReloadMode_TypeDef { TIM6_PSCRELOADMODE_UPDATE = ((uint8_t)0x00), TIM6_PSCRELOADMODE_IMMEDIATE = ((uint8_t)0x01) } |
TIM6 Prescaler Reload Mode. More... | |
enum | TIM6_SlaveMode_TypeDef { TIM6_SLAVEMODE_DISABLE = ((uint8_t)0x00), TIM6_SLAVEMODE_RESET = ((uint8_t)0x04), TIM6_SLAVEMODE_GATED = ((uint8_t)0x05), TIM6_SLAVEMODE_TRIGGER = ((uint8_t)0x06), TIM6_SLAVEMODE_EXTERNAL1 = ((uint8_t)0x07) } |
TIM6 Slave Mode. More... | |
enum | TIM6_TRGOSource_TypeDef { TIM6_TRGOSOURCE_RESET = ((uint8_t)0x00), TIM6_TRGOSOURCE_ENABLE = ((uint8_t)0x10), TIM6_TRGOSOURCE_UPDATE = ((uint8_t)0x20) } |
TIM6 Trigger Output Source. More... | |
enum | TIM6_TS_TypeDef { TIM6_TS_TIM1 = ((uint8_t)0x20), TIM6_TS_TIM5 = ((uint8_t)0x30) } |
TIM6 Internal Trigger Selection. More... | |
enum | TIM6_UpdateSource_TypeDef { TIM6_UPDATESOURCE_GLOBAL = ((uint8_t)0x00), TIM6_UPDATESOURCE_REGULAR = ((uint8_t)0x01) } |
TIM6 Update Source. More... | |
Functions | |
void | TIM6_ARRPreloadConfig (FunctionalState NewState) |
Enables or disables TIM6 peripheral Preload register on ARR. | |
void | TIM6_ClearFlag (TIM6_FLAG_TypeDef TIM6_FLAG) |
Clears the TIM�s pending flags. | |
void | TIM6_ClearITPendingBit (TIM6_IT_TypeDef TIM6_IT) |
Clears the TIM6's interrupt pending bits. | |
void | TIM6_Cmd (FunctionalState NewState) |
Enables or disables the TIM6 peripheral. | |
void | TIM6_DeInit (void) |
Deinitializes the TIM6 peripheral registers to their default reset values. | |
void | TIM6_GenerateEvent (TIM6_EventSource_TypeDef TIM6_EventSource) |
Configures the TIM6 event to be generated by software. | |
uint8_t | TIM6_GetCounter (void) |
Gets the TIM6 Counter value. | |
FlagStatus | TIM6_GetFlagStatus (TIM6_FLAG_TypeDef TIM6_FLAG) |
Checks whether the specified TIM6 flag is set or not. | |
ITStatus | TIM6_GetITStatus (TIM6_IT_TypeDef TIM6_IT) |
Checks whether the TIM6 interrupt has occurred or not. | |
TIM6_Prescaler_TypeDef | TIM6_GetPrescaler (void) |
Gets the TIM6 Prescaler value. | |
void | TIM6_InternalClockConfig (void) |
Enables the TIM6 internal Clock. | |
void | TIM6_ITConfig (TIM6_IT_TypeDef TIM6_IT, FunctionalState NewState) |
Enables or disables the specified TIM6 interrupts. | |
void | TIM6_PrescalerConfig (TIM6_Prescaler_TypeDef Prescaler, TIM6_PSCReloadMode_TypeDef TIM6_PSCReloadMode) |
Configures the TIM6 Prescaler. | |
void | TIM6_SelectInputTrigger (TIM6_TS_TypeDef TIM6_InputTriggerSource) |
Selects the TIM6 Input Trigger source. | |
void | TIM6_SelectMasterSlaveMode (FunctionalState NewState) |
Sets or Resets the TIM6 Master/Slave Mode. | |
void | TIM6_SelectOnePulseMode (TIM6_OPMode_TypeDef TIM6_OPMode) |
Selects the TIM6�s One Pulse Mode. | |
void | TIM6_SelectOutputTrigger (TIM6_TRGOSource_TypeDef TIM6_TRGOSource) |
Selects the TIM6 Trigger Output Mode. | |
void | TIM6_SelectSlaveMode (TIM6_SlaveMode_TypeDef TIM6_SlaveMode) |
Selects the TIM6 Slave Mode. | |
void | TIM6_SetAutoreload (uint8_t Autoreload) |
Sets the TIM6 Autoreload Register value. | |
void | TIM6_SetCounter (uint8_t Counter) |
Sets the TIM6 Counter Register value. | |
void | TIM6_TimeBaseInit (TIM6_Prescaler_TypeDef TIM6_Prescaler, uint8_t TIM6_Period) |
Initializes the TIM6 Time Base Unit according to the specified parameters. | |
void | TIM6_UpdateDisableConfig (FunctionalState NewState) |
Enables or Disables the TIM6 Update event. | |
void | TIM6_UpdateRequestConfig (TIM6_UpdateSource_TypeDef TIM6_UpdateSource) |
Selects the TIM6 Update Request Interrupt source. |
Detailed Description
This file contains all functions prototype and macros for the TIM6 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_tim6.h.