STM8L15x Standard Peripherals Drivers: TIM4_Exported_Macros

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

TIM4_Exported_Macros

Defines

#define IS_TIM4_CLEAR_FLAG(FLAG)   ((((FLAG) & (uint8_t)0xBE) == 0x00) && ((FLAG) != 0x00))
#define IS_TIM4_DMA_SOURCE(SOURCE)   (((SOURCE) == TIM4_DMASource_Update))
 Macro TIM4 DMA sources.
#define IS_TIM4_EVENT_SOURCE(SOURCE)
 Macro TIM4 Event source.
#define IS_TIM4_GET_FLAG(FLAG)
 Macro TIM4 Flags.
#define IS_TIM4_GET_IT(IT)
#define IS_TIM4_IT(IT)
 Macro TIM4 interrupts.
#define IS_TIM4_OPM_MODE(MODE)
 Macro TIM4 One Pulse Mode.
#define IS_TIM4_Prescaler(PRESCALER)
 Macro used by the assert function to check the different functions parameters.
#define IS_TIM4_Prescaler_RELOAD(RELOAD)
 Macro TIM4 Prescaler reload.
#define IS_TIM4_SLAVE_MODE(MODE)
 Macro TIM4 Slave mode.
#define IS_TIM4_TRGO_SOURCE(SOURCE)
 Macro TIM4 TRGO source.
#define IS_TIM4_TRIGGER_SELECTION(SELECTION)
 Macro TIM4 Trigger selection.
#define IS_TIM4_UPDATE_SOURCE(SOURCE)
 Macro TIM4 Update source.

Define Documentation

#define IS_TIM4_CLEAR_FLAG (   FLAG)    ((((FLAG) & (uint8_t)0xBE) == 0x00) && ((FLAG) != 0x00))

Definition at line 291 of file stm8l15x_tim4.h.

Referenced by TIM4_ClearFlag().

#define IS_TIM4_DMA_SOURCE (   SOURCE)    (((SOURCE) == TIM4_DMASource_Update))

Macro TIM4 DMA sources.

Definition at line 316 of file stm8l15x_tim4.h.

Referenced by TIM4_DMACmd().

#define IS_TIM4_EVENT_SOURCE (   SOURCE)
Value:
((((SOURCE) & (uint8_t)0xBE) == 0x00) && \
   ((SOURCE) != 0x00))

Macro TIM4 Event source.

Definition at line 264 of file stm8l15x_tim4.h.

Referenced by TIM4_GenerateEvent().

#define IS_TIM4_GET_FLAG (   FLAG)
Value:
(((FLAG) == TIM4_FLAG_Update) || \
   ((FLAG) == TIM4_FLAG_Trigger))

Macro TIM4 Flags.

Definition at line 287 of file stm8l15x_tim4.h.

Referenced by TIM4_GetFlagStatus().

#define IS_TIM4_GET_IT (   IT)
Value:
(((IT) == TIM4_IT_Update) || \
   ((IT) == TIM4_IT_Trigger))

Definition at line 300 of file stm8l15x_tim4.h.

Referenced by TIM4_GetITStatus().

#define IS_TIM4_IT (   IT)
Value:
(((IT) != 0x00) && \
   (((uint8_t)(IT) & (uint8_t)(~(uint8_t)(0x41)))== 0x00))

Macro TIM4 interrupts.

Definition at line 296 of file stm8l15x_tim4.h.

Referenced by TIM4_ClearITPendingBit(), and TIM4_ITConfig().

#define IS_TIM4_OPM_MODE (   MODE)
Value:
(((MODE) == TIM4_OPMode_Single) || \
   ((MODE) == TIM4_OPMode_Repetitive))

Macro TIM4 One Pulse Mode.

Definition at line 245 of file stm8l15x_tim4.h.

Referenced by TIM4_SelectOnePulseMode().

#define IS_TIM4_Prescaler (   PRESCALER)
Value:
(((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)  || \
   ((PRESCALER) == TIM4_Prescaler_256)  || \
   ((PRESCALER) == TIM4_Prescaler_512)  || \
   ((PRESCALER) == TIM4_Prescaler_1024) || \
   ((PRESCALER) == TIM4_Prescaler_2048) || \
   ((PRESCALER) == TIM4_Prescaler_4096) || \
   ((PRESCALER) == TIM4_Prescaler_8192) || \
   ((PRESCALER) == TIM4_Prescaler_16384)|| \
   ((PRESCALER) == TIM4_Prescaler_32768))

Macro used by the assert function to check the different functions parameters.

Macro TIM4 Prescaler

Definition at line 225 of file stm8l15x_tim4.h.

Referenced by TIM4_PrescalerConfig(), and TIM4_TimeBaseInit().

#define IS_TIM4_Prescaler_RELOAD (   RELOAD)
Value:
(((RELOAD) == TIM4_PSCReloadMode_Update) || \
   ((RELOAD) == TIM4_PSCReloadMode_Immediate))

Macro TIM4 Prescaler reload.

Definition at line 252 of file stm8l15x_tim4.h.

Referenced by TIM4_PrescalerConfig().

#define IS_TIM4_SLAVE_MODE (   MODE)
Value:
(((MODE) == TIM4_SlaveMode_Disable) || \
   ((MODE) == TIM4_SlaveMode_Reset)   || \
   ((MODE) == TIM4_SlaveMode_Gated)   || \
   ((MODE) == TIM4_SlaveMode_Trigger) || \
   ((MODE) == TIM4_SlaveMode_External1))

Macro TIM4 Slave mode.

Definition at line 278 of file stm8l15x_tim4.h.

Referenced by TIM4_SelectSlaveMode().

#define IS_TIM4_TRGO_SOURCE (   SOURCE)
Value:
(((SOURCE) == TIM4_TRGOSource_Reset) || \
   ((SOURCE) == TIM4_TRGOSource_Enable)|| \
   ((SOURCE) == TIM4_TRGOSource_Update))

Macro TIM4 TRGO source.

Definition at line 271 of file stm8l15x_tim4.h.

Referenced by TIM4_SelectOutputTrigger().

#define IS_TIM4_TRIGGER_SELECTION (   SELECTION)
Value:
(((SELECTION) == TIM4_TRGSelection_TIM5) || \
   ((SELECTION) == TIM4_TRGSelection_TIM1) || \
   ((SELECTION) == TIM4_TRGSelection_TIM3) || \
   ((SELECTION) == TIM4_TRGSelection_TIM2))

Macro TIM4 Trigger selection.

Definition at line 306 of file stm8l15x_tim4.h.

Referenced by TIM4_SelectInputTrigger().

#define IS_TIM4_UPDATE_SOURCE (   SOURCE)
Value:
(((SOURCE) == TIM4_UpdateSource_Global) || \
   ((SOURCE) == TIM4_UpdateSource_Regular))

Macro TIM4 Update source.

Definition at line 258 of file stm8l15x_tim4.h.

Referenced by TIM4_UpdateRequestConfig().

STM8S Firmware Library: Overview

 

 

 

For complete documentation on STM8L15x 8-bit microcontrollers platform visit www.st.com