STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches
LPTIM Private Macros
Collaboration diagram for LPTIM Private Macros:

Macros

#define IS_LPTIM_CLOCK_SOURCE(__SOURCE__)
 
#define IS_LPTIM_CLOCK_PRESCALER(__PRESCALER__)
 
#define IS_LPTIM_CLOCK_PRESCALERDIV1(__PRESCALER__)
 
#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_COMPARE(__COMPARE__)
 
#define IS_LPTIM_PERIOD(__PERIOD__)
 
#define IS_LPTIM_PULSE(__PULSE__)
 

Detailed Description

Macro Definition Documentation

◆ IS_LPTIM_CLOCK_SOURCE

#define IS_LPTIM_CLOCK_SOURCE ( __SOURCE__)

#include <stm32f4xx_hal_lptim.h>

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

Definition at line 772 of file stm32f4xx_hal_lptim.h.

Referenced by HAL_LPTIM_Init().

◆ IS_LPTIM_CLOCK_PRESCALER

#define IS_LPTIM_CLOCK_PRESCALER ( __PRESCALER__)

#include <stm32f4xx_hal_lptim.h>

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))
#define LPTIM_PRESCALER_DIV16
#define LPTIM_PRESCALER_DIV128
#define LPTIM_PRESCALER_DIV64
#define LPTIM_PRESCALER_DIV1
#define LPTIM_PRESCALER_DIV2
#define LPTIM_PRESCALER_DIV4
#define LPTIM_PRESCALER_DIV8
#define LPTIM_PRESCALER_DIV32

Definition at line 776 of file stm32f4xx_hal_lptim.h.

Referenced by HAL_LPTIM_Init().

◆ IS_LPTIM_CLOCK_PRESCALERDIV1

#define IS_LPTIM_CLOCK_PRESCALERDIV1 ( __PRESCALER__)

#include <stm32f4xx_hal_lptim.h>

Value:
((__PRESCALER__) == LPTIM_PRESCALER_DIV1)

Definition at line 785 of file stm32f4xx_hal_lptim.h.

Referenced by HAL_LPTIM_Counter_Start(), and HAL_LPTIM_Counter_Start_IT().

◆ IS_LPTIM_OUTPUT_POLARITY

#define IS_LPTIM_OUTPUT_POLARITY ( __POLARITY__)

#include <stm32f4xx_hal_lptim.h>

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

Definition at line 787 of file stm32f4xx_hal_lptim.h.

Referenced by HAL_LPTIM_Init().

◆ IS_LPTIM_CLOCK_SAMPLE_TIME

#define IS_LPTIM_CLOCK_SAMPLE_TIME ( __SAMPLETIME__)

#include <stm32f4xx_hal_lptim.h>

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

Definition at line 790 of file stm32f4xx_hal_lptim.h.

Referenced by HAL_LPTIM_Init().

◆ IS_LPTIM_CLOCK_POLARITY

#define IS_LPTIM_CLOCK_POLARITY ( __POLARITY__)

#include <stm32f4xx_hal_lptim.h>

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

Definition at line 795 of file stm32f4xx_hal_lptim.h.

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

◆ IS_LPTIM_TRG_SOURCE

#define IS_LPTIM_TRG_SOURCE ( __TRIG__)

#include <stm32f4xx_hal_lptim.h>

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))
#define LPTIM_TRIGSOURCE_4
#define LPTIM_TRIGSOURCE_0
#define LPTIM_TRIGSOURCE_5
#define LPTIM_TRIGSOURCE_2
#define LPTIM_TRIGSOURCE_3
#define LPTIM_TRIGSOURCE_SOFTWARE
#define LPTIM_TRIGSOURCE_1

Definition at line 799 of file stm32f4xx_hal_lptim.h.

Referenced by HAL_LPTIM_Init().

◆ IS_LPTIM_EXT_TRG_POLARITY

#define IS_LPTIM_EXT_TRG_POLARITY ( __POLARITY__)

#include <stm32f4xx_hal_lptim.h>

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

Definition at line 807 of file stm32f4xx_hal_lptim.h.

Referenced by HAL_LPTIM_Init().

◆ IS_LPTIM_TRIG_SAMPLE_TIME

#define IS_LPTIM_TRIG_SAMPLE_TIME ( __SAMPLETIME__)

#include <stm32f4xx_hal_lptim.h>

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

Definition at line 811 of file stm32f4xx_hal_lptim.h.

Referenced by HAL_LPTIM_Init().

◆ IS_LPTIM_UPDATE_MODE

#define IS_LPTIM_UPDATE_MODE ( __MODE__)

#include <stm32f4xx_hal_lptim.h>

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

Definition at line 816 of file stm32f4xx_hal_lptim.h.

Referenced by HAL_LPTIM_Init().

◆ IS_LPTIM_COUNTER_SOURCE

#define IS_LPTIM_COUNTER_SOURCE ( __SOURCE__)

#include <stm32f4xx_hal_lptim.h>

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

Definition at line 819 of file stm32f4xx_hal_lptim.h.

Referenced by HAL_LPTIM_Init().

◆ IS_LPTIM_COMPARE

#define IS_LPTIM_COMPARE ( __COMPARE__)

#include <stm32f4xx_hal_lptim.h>

Value:
((__COMPARE__) <= 0x0000FFFFUL)

Definition at line 822 of file stm32f4xx_hal_lptim.h.

◆ IS_LPTIM_PERIOD

◆ IS_LPTIM_PULSE