STM8S/A Standard Peripherals Drivers: EXTI_Private_Macros

STM8S/A

STM8S/A Standard Peripherals Drivers
EXTI_Private_Macros

Defines

#define IS_EXTI_PINMASK_OK(PinMask)   ((((PinMask) & (uint8_t)0x00) == (uint8_t)0x00) && ((PinMask) != (uint8_t)0x00))
 Macro used by the assert function in order to check the different values of the EXTI PinMask.
#define IS_EXTI_PORT_OK(PORT)
 Macro used by the assert function in order to check the different Port values.
#define IS_EXTI_SENSITIVITY_OK(SensitivityValue)
 Macro used by the assert function in order to check the different sensitivity values for PORTA to PORTE.
#define IS_EXTI_TLISENSITIVITY_OK(SensitivityValue)
 Macro used by the assert function in order to check the different sensitivity values for TLI.

Define Documentation

#define IS_EXTI_PINMASK_OK (   PinMask)    ((((PinMask) & (uint8_t)0x00) == (uint8_t)0x00) && ((PinMask) != (uint8_t)0x00))

Macro used by the assert function in order to check the different values of the EXTI PinMask.

Definition at line 109 of file stm8s_exti.h.

#define IS_EXTI_PORT_OK (   PORT)
Value:
(((PORT) == EXTI_PORT_GPIOA) ||\
   ((PORT) == EXTI_PORT_GPIOB) ||\
   ((PORT) == EXTI_PORT_GPIOC) ||\
   ((PORT) == EXTI_PORT_GPIOD) ||\
   ((PORT) == EXTI_PORT_GPIOE))

Macro used by the assert function in order to check the different Port values.

Definition at line 99 of file stm8s_exti.h.

Referenced by EXTI_GetExtIntSensitivity(), and EXTI_SetExtIntSensitivity().

#define IS_EXTI_SENSITIVITY_OK (   SensitivityValue)
Value:
(((SensitivityValue) == EXTI_SENSITIVITY_FALL_LOW) || \
   ((SensitivityValue) == EXTI_SENSITIVITY_RISE_ONLY) || \
   ((SensitivityValue) == EXTI_SENSITIVITY_FALL_ONLY) || \
   ((SensitivityValue) == EXTI_SENSITIVITY_RISE_FALL))

Macro used by the assert function in order to check the different sensitivity values for PORTA to PORTE.

Definition at line 83 of file stm8s_exti.h.

Referenced by EXTI_SetExtIntSensitivity().

#define IS_EXTI_TLISENSITIVITY_OK (   SensitivityValue)
Value:
(((SensitivityValue) == EXTI_TLISENSITIVITY_FALL_ONLY) || \
   ((SensitivityValue) == EXTI_TLISENSITIVITY_RISE_ONLY))

Macro used by the assert function in order to check the different sensitivity values for TLI.

Definition at line 92 of file stm8s_exti.h.

Referenced by EXTI_SetTLISensitivity().

STM8 Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM8 8-bit Microcontrollers platform visit www.st.com