STM32H735xx HAL User Manual
Defines
LPTIM Private Macros
LPTIM

Defines

#define IS_LPTIM_CLOCK_SOURCE(__SOURCE__)
#define IS_LPTIM_CLOCK_PRESCALER(__PRESCALER__)
#define IS_LPTIM_CLOCK_PRESCALERDIV1(__PRESCALER__)   ((__PRESCALER__) == LPTIM_PRESCALER_DIV1)
#define IS_LPTIM_OUTPUT_POLARITY(__POLARITY__)
#define IS_LPTIM_CLOCK_SAMPLE_TIME(__SAMPLETIME__)
#define IS_LPTIM_CLOCK_POLARITY(__POLARITY__)
#define IS_LPTIM_TRG_SOURCE(__TRIG__)
#define IS_LPTIM_EXT_TRG_POLARITY(__POLARITY__)
#define IS_LPTIM_TRIG_SAMPLE_TIME(__SAMPLETIME__)
#define IS_LPTIM_UPDATE_MODE(__MODE__)
#define IS_LPTIM_COUNTER_SOURCE(__SOURCE__)
#define IS_LPTIM_AUTORELOAD(__AUTORELOAD__)   ((__AUTORELOAD__) <= 0x0000FFFFUL)
#define IS_LPTIM_COMPARE(__COMPARE__)   ((__COMPARE__) <= 0x0000FFFFUL)
#define IS_LPTIM_PERIOD(__PERIOD__)   ((__PERIOD__) <= 0x0000FFFFUL)
#define IS_LPTIM_PULSE(__PULSE__)   ((__PULSE__) <= 0x0000FFFFUL)
#define IS_LPTIM_INPUT1_SOURCE(__INSTANCE__, __SOURCE__)
#define IS_LPTIM_INPUT2_SOURCE(__INSTANCE__, __SOURCE__)

Define Documentation

#define IS_LPTIM_AUTORELOAD (   __AUTORELOAD__)    ((__AUTORELOAD__) <= 0x0000FFFFUL)

Definition at line 753 of file stm32h7xx_hal_lptim.h.

#define IS_LPTIM_CLOCK_POLARITY (   __POLARITY__)
Value:
(((__POLARITY__) == LPTIM_CLOCKPOLARITY_RISING)  || \
                                                 ((__POLARITY__) == LPTIM_CLOCKPOLARITY_FALLING) || \
                                                 ((__POLARITY__) == LPTIM_CLOCKPOLARITY_RISING_FALLING))

Definition at line 724 of file stm32h7xx_hal_lptim.h.

Referenced by HAL_LPTIM_Encoder_Start(), HAL_LPTIM_Encoder_Start_IT(), and HAL_LPTIM_Init().

#define IS_LPTIM_CLOCK_PRESCALER (   __PRESCALER__)
Value:
(((__PRESCALER__) ==  LPTIM_PRESCALER_DIV1  ) || \
                                                 ((__PRESCALER__) ==  LPTIM_PRESCALER_DIV2  ) || \
                                                 ((__PRESCALER__) ==  LPTIM_PRESCALER_DIV4  ) || \
                                                 ((__PRESCALER__) ==  LPTIM_PRESCALER_DIV8  ) || \
                                                 ((__PRESCALER__) ==  LPTIM_PRESCALER_DIV16 ) || \
                                                 ((__PRESCALER__) ==  LPTIM_PRESCALER_DIV32 ) || \
                                                 ((__PRESCALER__) ==  LPTIM_PRESCALER_DIV64 ) || \
                                                 ((__PRESCALER__) ==  LPTIM_PRESCALER_DIV128))

Definition at line 705 of file stm32h7xx_hal_lptim.h.

Referenced by HAL_LPTIM_Init().

#define IS_LPTIM_CLOCK_PRESCALERDIV1 (   __PRESCALER__)    ((__PRESCALER__) == LPTIM_PRESCALER_DIV1)

Definition at line 714 of file stm32h7xx_hal_lptim.h.

Referenced by HAL_LPTIM_Counter_Start(), and HAL_LPTIM_Counter_Start_IT().

#define IS_LPTIM_CLOCK_SAMPLE_TIME (   __SAMPLETIME__)
Value:
(((__SAMPLETIME__) == LPTIM_CLOCKSAMPLETIME_DIRECTTRANSITION) || \
                                                    ((__SAMPLETIME__) == LPTIM_CLOCKSAMPLETIME_2TRANSITIONS)     || \
                                                    ((__SAMPLETIME__) == LPTIM_CLOCKSAMPLETIME_4TRANSITIONS)     || \
                                                    ((__SAMPLETIME__) == LPTIM_CLOCKSAMPLETIME_8TRANSITIONS))

Definition at line 719 of file stm32h7xx_hal_lptim.h.

Referenced by HAL_LPTIM_Init().

#define IS_LPTIM_CLOCK_SOURCE (   __SOURCE__)
Value:
(((__SOURCE__) == LPTIM_CLOCKSOURCE_ULPTIM) || \
                                                 ((__SOURCE__) == LPTIM_CLOCKSOURCE_APBCLOCK_LPOSC))

Definition at line 701 of file stm32h7xx_hal_lptim.h.

Referenced by HAL_LPTIM_Init().

#define IS_LPTIM_COMPARE (   __COMPARE__)    ((__COMPARE__) <= 0x0000FFFFUL)

Definition at line 755 of file stm32h7xx_hal_lptim.h.

#define IS_LPTIM_COUNTER_SOURCE (   __SOURCE__)
Value:
(((__SOURCE__) == LPTIM_COUNTERSOURCE_INTERNAL) || \
                                                 ((__SOURCE__) == LPTIM_COUNTERSOURCE_EXTERNAL))

Definition at line 750 of file stm32h7xx_hal_lptim.h.

Referenced by HAL_LPTIM_Init().

#define IS_LPTIM_EXT_TRG_POLARITY (   __POLARITY__)
Value:
(((__POLARITY__) == LPTIM_ACTIVEEDGE_RISING         ) || \
                                                 ((__POLARITY__) == LPTIM_ACTIVEEDGE_FALLING        ) || \
                                                 ((__POLARITY__) == LPTIM_ACTIVEEDGE_RISING_FALLING ))

Definition at line 738 of file stm32h7xx_hal_lptim.h.

Referenced by HAL_LPTIM_Init().

#define IS_LPTIM_INPUT1_SOURCE (   __INSTANCE__,
  __SOURCE__ 
)
Value:
((((__INSTANCE__) == LPTIM1) &&                          \
    (((__SOURCE__) == LPTIM_INPUT1SOURCE_GPIO) ||           \
     ((__SOURCE__) == LPTIM_INPUT1SOURCE_COMP1)))           \
   ||                                                      \
   (((__INSTANCE__) == LPTIM2) &&                          \
    (((__SOURCE__) == LPTIM_INPUT1SOURCE_GPIO) ||           \
     ((__SOURCE__) == LPTIM_INPUT1SOURCE_COMP1) ||          \
     ((__SOURCE__) == LPTIM_INPUT1SOURCE_COMP2) ||          \
     ((__SOURCE__) == LPTIM_INPUT1SOURCE_COMP1_COMP2)))     \
   ||                                                      \
   (((__INSTANCE__) == LPTIM3) &&                          \
    (((__SOURCE__) == LPTIM_INPUT1SOURCE_NOT_CONNECTED) ||  \
     ((__SOURCE__) == LPTIM_INPUT1SOURCE_SAI4_FSA) ||       \
     ((__SOURCE__) == LPTIM_INPUT1SOURCE_SAI4_FSB))))

Definition at line 761 of file stm32h7xx_hal_lptim.h.

Referenced by HAL_LPTIM_Init().

#define IS_LPTIM_INPUT2_SOURCE (   __INSTANCE__,
  __SOURCE__ 
)
Value:
((((__INSTANCE__) == LPTIM1) ||                      \
    ((__INSTANCE__) == LPTIM2)) &&                     \
   (((__SOURCE__) == LPTIM_INPUT2SOURCE_GPIO) ||        \
    ((__SOURCE__) == LPTIM_INPUT2SOURCE_COMP2)))

Definition at line 777 of file stm32h7xx_hal_lptim.h.

Referenced by HAL_LPTIM_Init().

#define IS_LPTIM_OUTPUT_POLARITY (   __POLARITY__)
Value:
(((__POLARITY__) == LPTIM_OUTPUTPOLARITY_LOW ) || \
                                                 ((__POLARITY__) == LPTIM_OUTPUTPOLARITY_HIGH))

Definition at line 716 of file stm32h7xx_hal_lptim.h.

Referenced by HAL_LPTIM_Init().

#define IS_LPTIM_PERIOD (   __PERIOD__)    ((__PERIOD__) <= 0x0000FFFFUL)
#define IS_LPTIM_PULSE (   __PULSE__)    ((__PULSE__) <= 0x0000FFFFUL)
#define IS_LPTIM_TRG_SOURCE (   __TRIG__)
Value:
(((__TRIG__) == LPTIM_TRIGSOURCE_SOFTWARE) || \
                                                 ((__TRIG__) == LPTIM_TRIGSOURCE_0) || \
                                                 ((__TRIG__) == LPTIM_TRIGSOURCE_1) || \
                                                 ((__TRIG__) == LPTIM_TRIGSOURCE_2) || \
                                                 ((__TRIG__) == LPTIM_TRIGSOURCE_3) || \
                                                 ((__TRIG__) == LPTIM_TRIGSOURCE_4) || \
                                                 ((__TRIG__) == LPTIM_TRIGSOURCE_5) || \
                                                 ((__TRIG__) == LPTIM_TRIGSOURCE_6) || \
                                                 ((__TRIG__) == LPTIM_TRIGSOURCE_7))

Definition at line 728 of file stm32h7xx_hal_lptim.h.

Referenced by HAL_LPTIM_Init().

#define IS_LPTIM_TRIG_SAMPLE_TIME (   __SAMPLETIME__)
Value:
(((__SAMPLETIME__) == LPTIM_TRIGSAMPLETIME_DIRECTTRANSITION) || \
                                                   ((__SAMPLETIME__) == LPTIM_TRIGSAMPLETIME_2TRANSITIONS    ) || \
                                                   ((__SAMPLETIME__) == LPTIM_TRIGSAMPLETIME_4TRANSITIONS    ) || \
                                                   ((__SAMPLETIME__) == LPTIM_TRIGSAMPLETIME_8TRANSITIONS    ))

Definition at line 742 of file stm32h7xx_hal_lptim.h.

Referenced by HAL_LPTIM_Init().

#define IS_LPTIM_UPDATE_MODE (   __MODE__)
Value:
(((__MODE__) == LPTIM_UPDATE_IMMEDIATE) || \
                                                 ((__MODE__) == LPTIM_UPDATE_ENDOFPERIOD))

Definition at line 747 of file stm32h7xx_hal_lptim.h.

Referenced by HAL_LPTIM_Init().