STM8S/A Standard Peripherals Drivers
|
Defines | |
#define | IS_TIM4_EVENT_SOURCE_OK(SOURCE) (((SOURCE) == 0x01)) |
#define | IS_TIM4_GET_FLAG_OK(FLAG) ((FLAG) == TIM4_FLAG_UPDATE) |
#define | IS_TIM4_IT_OK(IT) ((IT) == TIM4_IT_UPDATE) |
#define | IS_TIM4_OPM_MODE_OK(MODE) |
#define | IS_TIM4_PRESCALER_OK(PRESCALER) |
#define | IS_TIM4_PRESCALER_RELOAD_OK(RELOAD) |
#define | IS_TIM4_UPDATE_SOURCE_OK(SOURCE) |
Enumerations | |
enum | TIM4_EventSource_TypeDef { TIM4_EVENTSOURCE_UPDATE = ((uint8_t)0x01) } |
TIM4 Event Source. More... | |
enum | TIM4_FLAG_TypeDef { TIM4_FLAG_UPDATE = ((uint8_t)0x01) } |
TIM4 Flags. More... | |
enum | TIM4_IT_TypeDef { TIM4_IT_UPDATE = ((uint8_t)0x01) } |
TIM4 interrupt sources. More... | |
enum | TIM4_OPMode_TypeDef { TIM4_OPMODE_SINGLE = ((uint8_t)0x01), TIM4_OPMODE_REPETITIVE = ((uint8_t)0x00) } |
TIM4 One Pulse Mode. More... | |
enum | TIM4_Prescaler_TypeDef { TIM4_PRESCALER_1 = ((uint8_t)0x00), TIM4_PRESCALER_2 = ((uint8_t)0x01), TIM4_PRESCALER_4 = ((uint8_t)0x02), TIM4_PRESCALER_8 = ((uint8_t)0x03), TIM4_PRESCALER_16 = ((uint8_t)0x04), TIM4_PRESCALER_32 = ((uint8_t)0x05), TIM4_PRESCALER_64 = ((uint8_t)0x06), TIM4_PRESCALER_128 = ((uint8_t)0x07) } |
TIM4 Prescaler. More... | |
enum | TIM4_PSCReloadMode_TypeDef { TIM4_PSCRELOADMODE_UPDATE = ((uint8_t)0x00), TIM4_PSCRELOADMODE_IMMEDIATE = ((uint8_t)0x01) } |
TIM4 Prescaler Reload Mode. More... | |
enum | TIM4_UpdateSource_TypeDef { TIM4_UPDATESOURCE_GLOBAL = ((uint8_t)0x00), TIM4_UPDATESOURCE_REGULAR = ((uint8_t)0x01) } |
TIM4 Update Source. More... |
Define Documentation
#define IS_TIM4_EVENT_SOURCE_OK | ( | SOURCE | ) | (((SOURCE) == 0x01)) |
Definition at line 105 of file stm8s_tim4.h.
Referenced by TIM4_GenerateEvent().
#define IS_TIM4_GET_FLAG_OK | ( | FLAG | ) | ((FLAG) == TIM4_FLAG_UPDATE) |
Definition at line 113 of file stm8s_tim4.h.
Referenced by TIM4_ClearFlag(), and TIM4_GetFlagStatus().
#define IS_TIM4_IT_OK | ( | IT | ) | ((IT) == TIM4_IT_UPDATE) |
Definition at line 123 of file stm8s_tim4.h.
Referenced by TIM4_ClearITPendingBit(), TIM4_GetITStatus(), and TIM4_ITConfig().
#define IS_TIM4_OPM_MODE_OK | ( | MODE | ) |
(((MODE) == TIM4_OPMODE_SINGLE) || \ ((MODE) == TIM4_OPMODE_REPETITIVE))
Definition at line 76 of file stm8s_tim4.h.
Referenced by TIM4_SelectOnePulseMode().
#define IS_TIM4_PRESCALER_OK | ( | PRESCALER | ) |
(((PRESCALER) == TIM4_PRESCALER_1 ) || \ ((PRESCALER) == TIM4_PRESCALER_2 ) || \ ((PRESCALER) == TIM4_PRESCALER_4 ) || \ ((PRESCALER) == TIM4_PRESCALER_8 ) || \ ((PRESCALER) == TIM4_PRESCALER_16 ) || \ ((PRESCALER) == TIM4_PRESCALER_32 ) || \ ((PRESCALER) == TIM4_PRESCALER_64 ) || \ ((PRESCALER) == TIM4_PRESCALER_128 ) )
Definition at line 60 of file stm8s_tim4.h.
Referenced by TIM4_PrescalerConfig(), and TIM4_TimeBaseInit().
#define IS_TIM4_PRESCALER_RELOAD_OK | ( | RELOAD | ) |
(((RELOAD) == TIM4_PSCRELOADMODE_UPDATE) || \ ((RELOAD) == TIM4_PSCRELOADMODE_IMMEDIATE))
Definition at line 86 of file stm8s_tim4.h.
Referenced by TIM4_PrescalerConfig().
#define IS_TIM4_UPDATE_SOURCE_OK | ( | SOURCE | ) |
(((SOURCE) == TIM4_UPDATESOURCE_GLOBAL) || \ ((SOURCE) == TIM4_UPDATESOURCE_REGULAR))
Definition at line 96 of file stm8s_tim4.h.
Referenced by TIM4_UpdateRequestConfig().
Enumeration Type Documentation
TIM4 Event Source.
Definition at line 100 of file stm8s_tim4.h.
enum TIM4_FLAG_TypeDef |
TIM4 Flags.
Definition at line 108 of file stm8s_tim4.h.
enum TIM4_IT_TypeDef |
TIM4 interrupt sources.
Definition at line 118 of file stm8s_tim4.h.
enum TIM4_OPMode_TypeDef |
TIM4 One Pulse Mode.
Definition at line 70 of file stm8s_tim4.h.
TIM4 Prescaler.
Definition at line 48 of file stm8s_tim4.h.
TIM4 Prescaler Reload Mode.
Definition at line 80 of file stm8s_tim4.h.
TIM4 Update Source.
Definition at line 90 of file stm8s_tim4.h.