STM8L15x Standard Peripherals Drivers: TIM1_Exported_Macros

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

TIM1_Exported_Macros

Defines

#define IS_TIM1_AUTOMATIC_OUTPUT_STATE(STATE)
#define IS_TIM1_BREAK_POLARITY(POLARITY)
#define IS_TIM1_BREAK_STATE(STATE)
#define IS_TIM1_CHANNEL(CHANNEL)
#define IS_TIM1_CLEAR_FLAG(FLAG)   ((((uint16_t)(FLAG) & (uint16_t)0xE100) == 0x0000) && ((FLAG) != 0x0000))
#define IS_TIM1_COMPLEMENTARY_CHANNEL(CHANNEL)
#define IS_TIM1_COUNTER_MODE(MODE)
#define IS_TIM1_DMA_SOURCE(SOURCE)
#define IS_TIM1_DMABase(SOURCE)
#define IS_TIM1_DMABurstLength(SOURCE)
#define IS_TIM1_ENCODER_MODE(MODE)
#define IS_TIM1_EVENT_SOURCE(SOURCE)   ((SOURCE) != 0x00)
#define IS_TIM1_EXT_POLARITY(POLARITY)
#define IS_TIM1_EXT_PRESCALER(PRESCALER)
#define IS_TIM1_EXT_TRG_FILTER(FILTER)   ((FILTER) <= 0x0F)
 TIM1 External Trigger Filer Value.
#define IS_TIM1_FORCED_ACTION(ACTION)
#define IS_TIM1_GET_FLAG(FLAG)
#define IS_TIM1_GET_IT(IT)
#define IS_TIM1_IC_FILTER(ICFILTER)   ((ICFILTER) <= 0x0F)
 TIM1 Input Capture Filer Value.
#define IS_TIM1_IC_POLARITY(POLARITY)
#define IS_TIM1_IC_PRESCALER(PRESCALER)
#define IS_TIM1_IC_SELECTION(SELECTION)
#define IS_TIM1_IT(IT)   ((IT) != 0x00)
#define IS_TIM1_LOCK_LEVEL(LEVEL)
#define IS_TIM1_OC_MODE(MODE)
#define IS_TIM1_OC_POLARITY(POLARITY)
#define IS_TIM1_OCIDLE_STATE(STATE)
#define IS_TIM1_OCM(MODE)
#define IS_TIM1_OCN_POLARITY(POLARITY)
#define IS_TIM1_OCNIDLE_STATE(STATE)
#define IS_TIM1_OCREFERENCECECLEAR_SOURCE(SOURCE)
#define IS_TIM1_OPM_MODE(MODE)
#define IS_TIM1_OSSI_STATE(STATE)
#define IS_TIM1_OUTPUT_STATE(STATE)
#define IS_TIM1_OUTPUTN_STATE(STATE)
#define IS_TIM1_PRESCALER_RELOAD(RELOAD)
#define IS_TIM1_PWMI_CHANNEL(CHANNEL)
#define IS_TIM1_SLAVE_MODE(MODE)
#define IS_TIM1_TIX_TRIGGER_SELECTION(SELECTION)
#define IS_TIM1_TIXCLK_SOURCE(SOURCE)
#define IS_TIM1_TRGO_SOURCE(SOURCE)
#define IS_TIM1_TRIGGER_SELECTION(SELECTION)
#define IS_TIM1_UPDATE_SOURCE(SOURCE)

Define Documentation

#define IS_TIM1_AUTOMATIC_OUTPUT_STATE (   STATE)
Value:

Definition at line 683 of file stm8l15x_tim1.h.

Referenced by TIM1_BDTRConfig().

#define IS_TIM1_BREAK_POLARITY (   POLARITY)
Value:
(((POLARITY) == TIM1_BreakPolarity_Low) || \
    ((POLARITY) == TIM1_BreakPolarity_High))

Definition at line 680 of file stm8l15x_tim1.h.

Referenced by TIM1_BDTRConfig().

#define IS_TIM1_BREAK_STATE (   STATE)
Value:
(((STATE) == TIM1_BreakState_Enable) || \
                                    ((STATE) == TIM1_BreakState_Disable))

Definition at line 677 of file stm8l15x_tim1.h.

Referenced by TIM1_BDTRConfig().

#define IS_TIM1_CHANNEL (   CHANNEL)
Value:
(((CHANNEL) == TIM1_Channel_1) || \
                                  ((CHANNEL) == TIM1_Channel_2) || \
                                  ((CHANNEL) == TIM1_Channel_3) || \
                                  ((CHANNEL) == TIM1_Channel_4))

Definition at line 647 of file stm8l15x_tim1.h.

Referenced by TIM1_CCxCmd(), TIM1_ICInit(), and TIM1_SelectOCxM().

#define IS_TIM1_CLEAR_FLAG (   FLAG)    ((((uint16_t)(FLAG) & (uint16_t)0xE100) == 0x0000) && ((FLAG) != 0x0000))

Definition at line 795 of file stm8l15x_tim1.h.

Referenced by TIM1_ClearFlag().

#define IS_TIM1_COMPLEMENTARY_CHANNEL (   CHANNEL)
Value:
(((CHANNEL) == TIM1_Channel_1) || \
    ((CHANNEL) == TIM1_Channel_2) || \
    ((CHANNEL) == TIM1_Channel_3))

Definition at line 655 of file stm8l15x_tim1.h.

Referenced by TIM1_CCxNCmd().

#define IS_TIM1_COUNTER_MODE (   MODE)
Value:

Definition at line 659 of file stm8l15x_tim1.h.

Referenced by TIM1_CounterModeConfig(), and TIM1_TimeBaseInit().

#define IS_TIM1_DMA_SOURCE (   SOURCE)
Value:
(((SOURCE) == TIM1_DMASource_Update) || \
   ((SOURCE) == TIM1_DMASource_CC1) || \
   ((SOURCE) == TIM1_DMASource_CC2) || \
   ((SOURCE) == TIM1_DMASource_CC3) || \
   ((SOURCE) == TIM1_DMASource_CC4) || \
   ((SOURCE) == TIM1_DMASource_COM))

Definition at line 800 of file stm8l15x_tim1.h.

Referenced by TIM1_DMACmd().

#define IS_TIM1_DMABase (   SOURCE)

Definition at line 808 of file stm8l15x_tim1.h.

Referenced by TIM1_DMAConfig().

#define IS_TIM1_DMABurstLength (   SOURCE)

Definition at line 842 of file stm8l15x_tim1.h.

Referenced by TIM1_DMAConfig().

#define IS_TIM1_ENCODER_MODE (   MODE)
Value:
(((MODE) == TIM1_EncoderMode_TI1) || \
                                    ((MODE) == TIM1_EncoderMode_TI2) || \
                                    ((MODE) == TIM1_EncoderMode_TI12))

Definition at line 757 of file stm8l15x_tim1.h.

Referenced by TIM1_EncoderInterfaceConfig().

#define IS_TIM1_EVENT_SOURCE (   SOURCE)    ((SOURCE) != 0x00)

Definition at line 761 of file stm8l15x_tim1.h.

Referenced by TIM1_GenerateEvent().

#define IS_TIM1_EXT_POLARITY (   POLARITY)
Value:
(((POLARITY) == TIM1_ExtTRGPolarity_Inverted) || \
                                        ((POLARITY) == TIM1_ExtTRGPolarity_NonInverted))

Definition at line 751 of file stm8l15x_tim1.h.

Referenced by TIM1_ETRClockMode1Config(), and TIM1_ETRClockMode2Config().

#define IS_TIM1_EXT_PRESCALER (   PRESCALER)
Value:
(((PRESCALER) == TIM1_ExtTRGPSC_OFF) || \
    ((PRESCALER) == TIM1_ExtTRGPSC_DIV2) || \
    ((PRESCALER) == TIM1_ExtTRGPSC_DIV4) || \
    ((PRESCALER) == TIM1_ExtTRGPSC_DIV8))

Definition at line 726 of file stm8l15x_tim1.h.

Referenced by TIM1_ETRClockMode1Config(), and TIM1_ETRClockMode2Config().

#define IS_TIM1_EXT_TRG_FILTER (   FILTER)    ((FILTER) <= 0x0F)

TIM1 External Trigger Filer Value.

Definition at line 877 of file stm8l15x_tim1.h.

Referenced by TIM1_ETRClockMode1Config(), and TIM1_ETRConfig().

#define IS_TIM1_FORCED_ACTION (   ACTION)
Value:
(((ACTION) == TIM1_ForcedAction_Active) || \
                                       ((ACTION) == TIM1_ForcedAction_Inactive))

Definition at line 797 of file stm8l15x_tim1.h.

Referenced by TIM1_ForcedOC1Config(), TIM1_ForcedOC2Config(), and TIM1_ForcedOC3Config().

#define IS_TIM1_GET_FLAG (   FLAG)
Value:
(((FLAG) == TIM1_FLAG_Update) || \
                                ((FLAG) == TIM1_FLAG_CC1)    || \
                                ((FLAG) == TIM1_FLAG_CC2)    || \
                                ((FLAG) == TIM1_FLAG_CC3)    || \
                                ((FLAG) == TIM1_FLAG_CC4)    || \
                                ((FLAG) == TIM1_FLAG_COM)    || \
                                ((FLAG) == TIM1_FLAG_Trigger)|| \
                                ((FLAG) == TIM1_FLAG_Break)  || \
                                ((FLAG) == TIM1_FLAG_CC1OF)  || \
                                ((FLAG) == TIM1_FLAG_CC2OF)  || \
                                ((FLAG) == TIM1_FLAG_CC3OF)  || \
                                ((FLAG) == TIM1_FLAG_CC4OF))

Definition at line 776 of file stm8l15x_tim1.h.

Referenced by TIM1_GetFlagStatus().

#define IS_TIM1_GET_IT (   IT)
Value:
(((IT) == TIM1_IT_Update) || \
                            ((IT) == TIM1_IT_CC1) || \
                            ((IT) == TIM1_IT_CC2) || \
                            ((IT) == TIM1_IT_CC3) || \
                            ((IT) == TIM1_IT_CC4) || \
                            ((IT) == TIM1_IT_COM) || \
                            ((IT) == TIM1_IT_Trigger) || \
                            ((IT) == TIM1_IT_Break))

Definition at line 717 of file stm8l15x_tim1.h.

Referenced by TIM1_GetITStatus().

#define IS_TIM1_IC_FILTER (   ICFILTER)    ((ICFILTER) <= 0x0F)

TIM1 Input Capture Filer Value.

Definition at line 880 of file stm8l15x_tim1.h.

Referenced by TIM1_ICInit(), and TIM1_TIxExternalClockConfig().

#define IS_TIM1_IC_POLARITY (   POLARITY)
Value:
(((POLARITY) == TIM1_ICPolarity_Rising) || \
                                       ((POLARITY) == TIM1_ICPolarity_Falling))

Definition at line 700 of file stm8l15x_tim1.h.

Referenced by TIM1_EncoderInterfaceConfig(), TIM1_ICInit(), TIM1_PWMIConfig(), and TIM1_TIxExternalClockConfig().

#define IS_TIM1_IC_PRESCALER (   PRESCALER)
Value:
(((PRESCALER) == TIM1_ICPSC_DIV1) || \
    ((PRESCALER) == TIM1_ICPSC_DIV2) || \
    ((PRESCALER) == TIM1_ICPSC_DIV4) || \
    ((PRESCALER) == TIM1_ICPSC_DIV8))

Definition at line 707 of file stm8l15x_tim1.h.

Referenced by TIM1_ICInit(), TIM1_PWMIConfig(), TIM1_SetIC1Prescaler(), TIM1_SetIC2Prescaler(), TIM1_SetIC3Prescaler(), and TIM1_SetIC4Prescaler().

#define IS_TIM1_IC_SELECTION (   SELECTION)
Value:
(((SELECTION) == TIM1_ICSelection_DirectTI) || \
    ((SELECTION) == TIM1_ICSelection_IndirectTI) || \
    ((SELECTION) == TIM1_ICSelection_TRGI))

Definition at line 703 of file stm8l15x_tim1.h.

Referenced by TIM1_ICInit(), and TIM1_PWMIConfig().

#define IS_TIM1_IT (   IT)    ((IT) != 0x00)

Definition at line 715 of file stm8l15x_tim1.h.

Referenced by TIM1_ClearITPendingBit(), and TIM1_ITConfig().

#define IS_TIM1_LOCK_LEVEL (   LEVEL)
Value:
(((LEVEL) == TIM1_LockLevel_Off) || \
                                   ((LEVEL) == TIM1_LockLevel_1) || \
                                   ((LEVEL) == TIM1_LockLevel_2) || \
                                   ((LEVEL) == TIM1_LockLevel_3))

Definition at line 686 of file stm8l15x_tim1.h.

Referenced by TIM1_BDTRConfig().

#define IS_TIM1_OC_MODE (   MODE)
Value:
(((MODE) ==  TIM1_OCMode_Timing) || \
                               ((MODE) == TIM1_OCMode_Active) || \
                               ((MODE) == TIM1_OCMode_Inactive) || \
                               ((MODE) == TIM1_OCMode_Toggle)|| \
                               ((MODE) == TIM1_OCMode_PWM1) || \
                               ((MODE) == TIM1_OCMode_PWM2))

Definition at line 628 of file stm8l15x_tim1.h.

Referenced by TIM1_OC1Init(), TIM1_OC2Init(), and TIM1_OC3Init().

#define IS_TIM1_OC_POLARITY (   POLARITY)
#define IS_TIM1_OCIDLE_STATE (   STATE)
Value:
(((STATE) == TIM1_OCIdleState_Set) || \
                                     ((STATE) == TIM1_OCIdleState_Reset))

Definition at line 694 of file stm8l15x_tim1.h.

Referenced by TIM1_OC1Init(), TIM1_OC2Init(), and TIM1_OC3Init().

#define IS_TIM1_OCM (   MODE)
Value:
(((MODE) ==  TIM1_OCMode_Timing) || \
                          ((MODE) == TIM1_OCMode_Active) || \
                          ((MODE) == TIM1_OCMode_Inactive) || \
                          ((MODE) == TIM1_OCMode_Toggle)|| \
                          ((MODE) == TIM1_OCMode_PWM1) || \
                          ((MODE) == TIM1_OCMode_PWM2) || \
                          ((MODE) == (uint8_t)TIM1_ForcedAction_Active) || \
                          ((MODE) == (uint8_t)TIM1_ForcedAction_Inactive))

Definition at line 635 of file stm8l15x_tim1.h.

Referenced by TIM1_SelectOCxM().

#define IS_TIM1_OCN_POLARITY (   POLARITY)
#define IS_TIM1_OCNIDLE_STATE (   STATE)
Value:
(((STATE) == TIM1_OCNIdleState_Set) || \
                                      ((STATE) == TIM1_OCNIdleState_Reset))

Definition at line 697 of file stm8l15x_tim1.h.

Referenced by TIM1_OC1Init(), TIM1_OC2Init(), and TIM1_OC3Init().

#define IS_TIM1_OCREFERENCECECLEAR_SOURCE (   SOURCE)
Value:

Definition at line 712 of file stm8l15x_tim1.h.

Referenced by TIM1_SelectOCREFClear().

#define IS_TIM1_OPM_MODE (   MODE)
Value:
(((MODE) == TIM1_OPMode_Single) || \
                                ((MODE) == TIM1_OPMode_Repetitive))

Definition at line 644 of file stm8l15x_tim1.h.

Referenced by TIM1_SelectOnePulseMode().

#define IS_TIM1_OSSI_STATE (   STATE)
Value:
(((STATE) == TIM1_OSSIState_Enable) || \
                                   ((STATE) == TIM1_OSSIState_Disable))

Definition at line 691 of file stm8l15x_tim1.h.

Referenced by TIM1_BDTRConfig().

#define IS_TIM1_OUTPUT_STATE (   STATE)
Value:
(((STATE) == TIM1_OutputState_Disable) || \
                                     ((STATE) == TIM1_OutputState_Enable))

Definition at line 671 of file stm8l15x_tim1.h.

Referenced by TIM1_OC1Init(), TIM1_OC2Init(), and TIM1_OC3Init().

#define IS_TIM1_OUTPUTN_STATE (   STATE)
Value:
(((STATE) == TIM1_OutputNState_Disable) ||\
                                      ((STATE) == TIM1_OutputNState_Enable))

Definition at line 674 of file stm8l15x_tim1.h.

Referenced by TIM1_OC1Init(), TIM1_OC2Init(), and TIM1_OC3Init().

#define IS_TIM1_PRESCALER_RELOAD (   RELOAD)
Value:
(((RELOAD) == TIM1_PSCReloadMode_Update) || \
    ((RELOAD) == TIM1_PSCReloadMode_Immediate))

Definition at line 754 of file stm8l15x_tim1.h.

Referenced by TIM1_PrescalerConfig().

#define IS_TIM1_PWMI_CHANNEL (   CHANNEL)
Value:
(((CHANNEL) == TIM1_Channel_1) || \
                                       ((CHANNEL) == TIM1_Channel_2))

Definition at line 652 of file stm8l15x_tim1.h.

Referenced by TIM1_PWMIConfig().

#define IS_TIM1_SLAVE_MODE (   MODE)
Value:
(((MODE) == TIM1_SlaveMode_Reset) || \
                                  ((MODE) == TIM1_SlaveMode_Gated) || \
                                  ((MODE) == TIM1_SlaveMode_Trigger) || \
                                  ((MODE) == TIM1_SlaveMode_External1))

Definition at line 790 of file stm8l15x_tim1.h.

Referenced by TIM1_SelectSlaveMode().

#define IS_TIM1_TIX_TRIGGER_SELECTION (   SELECTION)
Value:
(((SELECTION) == TIM1_TRGSelection_TI1F_ED) || \
   ((SELECTION) == TIM1_TRGSelection_TI1FP1) || \
   ((SELECTION) == TIM1_TRGSelection_TI2FP2))

Definition at line 742 of file stm8l15x_tim1.h.

#define IS_TIM1_TIXCLK_SOURCE (   SOURCE)
Value:

Definition at line 747 of file stm8l15x_tim1.h.

Referenced by TIM1_TIxExternalClockConfig().

#define IS_TIM1_TRGO_SOURCE (   SOURCE)
Value:
(((SOURCE) == TIM1_TRGOSource_Reset) || \
                                     ((SOURCE) == TIM1_TRGOSource_Enable) || \
                                     ((SOURCE) == TIM1_TRGOSource_Update) || \
                                     ((SOURCE) == TIM1_TRGOSource_OC1)  || \
                                     ((SOURCE) == TIM1_TRGOSource_OC1REF) || \
                                     ((SOURCE) == TIM1_TRGOSource_OC2REF) || \
                                     ((SOURCE) == TIM1_TRGOSource_OC3REF) || \
                                     ((SOURCE) == TIM1_TRGOSource_OC4REF))

Definition at line 763 of file stm8l15x_tim1.h.

Referenced by TIM1_SelectOutputTrigger().

#define IS_TIM1_TRIGGER_SELECTION (   SELECTION)
Value:
(((SELECTION) == TIM1_TRGSelection_TIM2) || \
   ((SELECTION) == TIM1_TRGSelection_TIM3) || \
   ((SELECTION) == TIM1_TRGSelection_TIM4) || \
   ((SELECTION) == TIM1_TRGSelection_TIM5) || \
   ((SELECTION) == TIM1_TRGSelection_TI1F_ED) || \
   ((SELECTION) == TIM1_TRGSelection_TI1FP1) || \
   ((SELECTION) == TIM1_TRGSelection_TI2FP2) || \
   ((SELECTION) == TIM1_TRGSelection_ETRF))

Definition at line 731 of file stm8l15x_tim1.h.

Referenced by TIM1_SelectInputTrigger().

#define IS_TIM1_UPDATE_SOURCE (   SOURCE)
Value:
(((SOURCE) == TIM1_UpdateSource_Global) || \
                                       ((SOURCE) == TIM1_UpdateSource_Regular))

Definition at line 773 of file stm8l15x_tim1.h.

Referenced by TIM1_UpdateRequestConfig().

STM8S Firmware Library: Overview

 

 

 

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