Macros
I2C Private macros to check input parameters
Collaboration diagram for I2C Private macros to check input parameters:

Macros

#define I2C_CHECK_FLAG(__ISR__, __FLAG__)   ((((__ISR__) & ((__FLAG__) & I2C_FLAG_MASK)) == ((__FLAG__) & I2C_FLAG_MASK)) ? SET : RESET)
 
#define I2C_CHECK_FLAG(__ISR__, __FLAG__)   ((((__ISR__) & ((__FLAG__) & I2C_FLAG_MASK)) == ((__FLAG__) & I2C_FLAG_MASK)) ? SET : RESET)
 
#define I2C_CHECK_FLAG(__ISR__, __FLAG__)   ((((__ISR__) & ((__FLAG__) & I2C_FLAG_MASK)) == ((__FLAG__) & I2C_FLAG_MASK)) ? SET : RESET)
 
#define I2C_CHECK_IT_SOURCE(__CR1__, __IT__)   ((((__CR1__) & (__IT__)) == (__IT__)) ? SET : RESET)
 
#define I2C_CHECK_IT_SOURCE(__CR1__, __IT__)   ((((__CR1__) & (__IT__)) == (__IT__)) ? SET : RESET)
 
#define I2C_CHECK_IT_SOURCE(__CR1__, __IT__)   ((((__CR1__) & (__IT__)) == (__IT__)) ? SET : RESET)
 
#define IS_I2C_ADDRESSING_MODE(ADDRESS)
 
#define IS_I2C_ADDRESSING_MODE(ADDRESS)
 
#define IS_I2C_ADDRESSING_MODE(ADDRESS)
 
#define IS_I2C_CLOCK_SPEED(SPEED)   (((SPEED) > 0U) && ((SPEED) <= 400000U))
 
#define IS_I2C_CLOCK_SPEED(SPEED)   (((SPEED) > 0U) && ((SPEED) <= 400000U))
 
#define IS_I2C_CLOCK_SPEED(SPEED)   (((SPEED) > 0U) && ((SPEED) <= 400000U))
 
#define IS_I2C_DUAL_ADDRESS(ADDRESS)
 
#define IS_I2C_DUAL_ADDRESS(ADDRESS)
 
#define IS_I2C_DUAL_ADDRESS(ADDRESS)
 
#define IS_I2C_DUTY_CYCLE(CYCLE)
 
#define IS_I2C_DUTY_CYCLE(CYCLE)
 
#define IS_I2C_DUTY_CYCLE(CYCLE)
 
#define IS_I2C_GENERAL_CALL(CALL)
 
#define IS_I2C_GENERAL_CALL(CALL)
 
#define IS_I2C_GENERAL_CALL(CALL)
 
#define IS_I2C_MEMADD_SIZE(SIZE)
 
#define IS_I2C_MEMADD_SIZE(SIZE)
 
#define IS_I2C_MEMADD_SIZE(SIZE)
 
#define IS_I2C_NO_STRETCH(STRETCH)
 
#define IS_I2C_NO_STRETCH(STRETCH)
 
#define IS_I2C_NO_STRETCH(STRETCH)
 
#define IS_I2C_OWN_ADDRESS1(ADDRESS1)   (((ADDRESS1) & 0xFFFFFC00U) == 0U)
 
#define IS_I2C_OWN_ADDRESS1(ADDRESS1)   (((ADDRESS1) & 0xFFFFFC00U) == 0U)
 
#define IS_I2C_OWN_ADDRESS1(ADDRESS1)   (((ADDRESS1) & 0xFFFFFC00U) == 0U)
 
#define IS_I2C_OWN_ADDRESS2(ADDRESS2)   (((ADDRESS2) & 0xFFFFFF01U) == 0U)
 
#define IS_I2C_OWN_ADDRESS2(ADDRESS2)   (((ADDRESS2) & 0xFFFFFF01U) == 0U)
 
#define IS_I2C_OWN_ADDRESS2(ADDRESS2)   (((ADDRESS2) & 0xFFFFFF01U) == 0U)
 
#define IS_I2C_TRANSFER_OPTIONS_REQUEST(REQUEST)
 
#define IS_I2C_TRANSFER_OPTIONS_REQUEST(REQUEST)
 
#define IS_I2C_TRANSFER_OPTIONS_REQUEST(REQUEST)
 
#define IS_I2C_TRANSFER_OTHER_OPTIONS_REQUEST(REQUEST)
 
#define IS_I2C_TRANSFER_OTHER_OPTIONS_REQUEST(REQUEST)
 
#define IS_I2C_TRANSFER_OTHER_OPTIONS_REQUEST(REQUEST)
 

Detailed Description

Macro Definition Documentation

◆ I2C_CHECK_FLAG [1/3]

#define I2C_CHECK_FLAG (   __ISR__,
  __FLAG__ 
)    ((((__ISR__) & ((__FLAG__) & I2C_FLAG_MASK)) == ((__FLAG__) & I2C_FLAG_MASK)) ? SET : RESET)

◆ I2C_CHECK_FLAG [2/3]

#define I2C_CHECK_FLAG (   __ISR__,
  __FLAG__ 
)    ((((__ISR__) & ((__FLAG__) & I2C_FLAG_MASK)) == ((__FLAG__) & I2C_FLAG_MASK)) ? SET : RESET)

◆ I2C_CHECK_FLAG [3/3]

#define I2C_CHECK_FLAG (   __ISR__,
  __FLAG__ 
)    ((((__ISR__) & ((__FLAG__) & I2C_FLAG_MASK)) == ((__FLAG__) & I2C_FLAG_MASK)) ? SET : RESET)

◆ I2C_CHECK_IT_SOURCE [1/3]

#define I2C_CHECK_IT_SOURCE (   __CR1__,
  __IT__ 
)    ((((__CR1__) & (__IT__)) == (__IT__)) ? SET : RESET)

◆ I2C_CHECK_IT_SOURCE [2/3]

#define I2C_CHECK_IT_SOURCE (   __CR1__,
  __IT__ 
)    ((((__CR1__) & (__IT__)) == (__IT__)) ? SET : RESET)

◆ I2C_CHECK_IT_SOURCE [3/3]

#define I2C_CHECK_IT_SOURCE (   __CR1__,
  __IT__ 
)    ((((__CR1__) & (__IT__)) == (__IT__)) ? SET : RESET)

◆ IS_I2C_ADDRESSING_MODE [1/3]

#define IS_I2C_ADDRESSING_MODE (   ADDRESS)

◆ IS_I2C_ADDRESSING_MODE [2/3]

#define IS_I2C_ADDRESSING_MODE (   ADDRESS)

◆ IS_I2C_ADDRESSING_MODE [3/3]

#define IS_I2C_ADDRESSING_MODE (   ADDRESS)

◆ IS_I2C_CLOCK_SPEED [1/3]

#define IS_I2C_CLOCK_SPEED (   SPEED)    (((SPEED) > 0U) && ((SPEED) <= 400000U))

◆ IS_I2C_CLOCK_SPEED [2/3]

#define IS_I2C_CLOCK_SPEED (   SPEED)    (((SPEED) > 0U) && ((SPEED) <= 400000U))

◆ IS_I2C_CLOCK_SPEED [3/3]

#define IS_I2C_CLOCK_SPEED (   SPEED)    (((SPEED) > 0U) && ((SPEED) <= 400000U))

◆ IS_I2C_DUAL_ADDRESS [1/3]

#define IS_I2C_DUAL_ADDRESS (   ADDRESS)

◆ IS_I2C_DUAL_ADDRESS [2/3]

#define IS_I2C_DUAL_ADDRESS (   ADDRESS)

◆ IS_I2C_DUAL_ADDRESS [3/3]

#define IS_I2C_DUAL_ADDRESS (   ADDRESS)

◆ IS_I2C_DUTY_CYCLE [1/3]

#define IS_I2C_DUTY_CYCLE (   CYCLE)

◆ IS_I2C_DUTY_CYCLE [2/3]

#define IS_I2C_DUTY_CYCLE (   CYCLE)

◆ IS_I2C_DUTY_CYCLE [3/3]

#define IS_I2C_DUTY_CYCLE (   CYCLE)

◆ IS_I2C_GENERAL_CALL [1/3]

#define IS_I2C_GENERAL_CALL (   CALL)

◆ IS_I2C_GENERAL_CALL [2/3]

#define IS_I2C_GENERAL_CALL (   CALL)

◆ IS_I2C_GENERAL_CALL [3/3]

#define IS_I2C_GENERAL_CALL (   CALL)

◆ IS_I2C_MEMADD_SIZE [1/3]

#define IS_I2C_MEMADD_SIZE (   SIZE)

◆ IS_I2C_MEMADD_SIZE [2/3]

#define IS_I2C_MEMADD_SIZE (   SIZE)

◆ IS_I2C_MEMADD_SIZE [3/3]

#define IS_I2C_MEMADD_SIZE (   SIZE)

◆ IS_I2C_NO_STRETCH [1/3]

#define IS_I2C_NO_STRETCH (   STRETCH)

◆ IS_I2C_NO_STRETCH [2/3]

#define IS_I2C_NO_STRETCH (   STRETCH)

◆ IS_I2C_NO_STRETCH [3/3]

#define IS_I2C_NO_STRETCH (   STRETCH)

◆ IS_I2C_OWN_ADDRESS1 [1/3]

#define IS_I2C_OWN_ADDRESS1 (   ADDRESS1)    (((ADDRESS1) & 0xFFFFFC00U) == 0U)

◆ IS_I2C_OWN_ADDRESS1 [2/3]

#define IS_I2C_OWN_ADDRESS1 (   ADDRESS1)    (((ADDRESS1) & 0xFFFFFC00U) == 0U)

◆ IS_I2C_OWN_ADDRESS1 [3/3]

#define IS_I2C_OWN_ADDRESS1 (   ADDRESS1)    (((ADDRESS1) & 0xFFFFFC00U) == 0U)

◆ IS_I2C_OWN_ADDRESS2 [1/3]

#define IS_I2C_OWN_ADDRESS2 (   ADDRESS2)    (((ADDRESS2) & 0xFFFFFF01U) == 0U)

◆ IS_I2C_OWN_ADDRESS2 [2/3]

#define IS_I2C_OWN_ADDRESS2 (   ADDRESS2)    (((ADDRESS2) & 0xFFFFFF01U) == 0U)

◆ IS_I2C_OWN_ADDRESS2 [3/3]

#define IS_I2C_OWN_ADDRESS2 (   ADDRESS2)    (((ADDRESS2) & 0xFFFFFF01U) == 0U)

◆ IS_I2C_TRANSFER_OPTIONS_REQUEST [1/3]

#define IS_I2C_TRANSFER_OPTIONS_REQUEST (   REQUEST)
Value:
(((REQUEST) == I2C_FIRST_FRAME) || \
((REQUEST) == I2C_FIRST_AND_NEXT_FRAME) || \
((REQUEST) == I2C_NEXT_FRAME) || \
((REQUEST) == I2C_FIRST_AND_LAST_FRAME) || \
((REQUEST) == I2C_LAST_FRAME) || \
((REQUEST) == I2C_LAST_FRAME_NO_STOP) || \
IS_I2C_TRANSFER_OTHER_OPTIONS_REQUEST(REQUEST))

Definition at line 698 of file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.

◆ IS_I2C_TRANSFER_OPTIONS_REQUEST [2/3]

#define IS_I2C_TRANSFER_OPTIONS_REQUEST (   REQUEST)
Value:
(((REQUEST) == I2C_FIRST_FRAME) || \
((REQUEST) == I2C_FIRST_AND_NEXT_FRAME) || \
((REQUEST) == I2C_NEXT_FRAME) || \
((REQUEST) == I2C_FIRST_AND_LAST_FRAME) || \
((REQUEST) == I2C_LAST_FRAME) || \
((REQUEST) == I2C_LAST_FRAME_NO_STOP) || \
IS_I2C_TRANSFER_OTHER_OPTIONS_REQUEST(REQUEST))

Definition at line 698 of file stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.

◆ IS_I2C_TRANSFER_OPTIONS_REQUEST [3/3]

#define IS_I2C_TRANSFER_OPTIONS_REQUEST (   REQUEST)
Value:
(((REQUEST) == I2C_FIRST_FRAME) || \
((REQUEST) == I2C_FIRST_AND_NEXT_FRAME) || \
((REQUEST) == I2C_NEXT_FRAME) || \
((REQUEST) == I2C_FIRST_AND_LAST_FRAME) || \
((REQUEST) == I2C_LAST_FRAME) || \
((REQUEST) == I2C_LAST_FRAME_NO_STOP) || \
IS_I2C_TRANSFER_OTHER_OPTIONS_REQUEST(REQUEST))

Definition at line 698 of file stm32f469/stm32f469i-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h.

◆ IS_I2C_TRANSFER_OTHER_OPTIONS_REQUEST [1/3]

#define IS_I2C_TRANSFER_OTHER_OPTIONS_REQUEST (   REQUEST)

◆ IS_I2C_TRANSFER_OTHER_OPTIONS_REQUEST [2/3]

#define IS_I2C_TRANSFER_OTHER_OPTIONS_REQUEST (   REQUEST)

◆ IS_I2C_TRANSFER_OTHER_OPTIONS_REQUEST [3/3]

#define IS_I2C_TRANSFER_OTHER_OPTIONS_REQUEST (   REQUEST)
I2C_DUTYCYCLE_16_9
#define I2C_DUTYCYCLE_16_9
Definition: stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h:291
I2C_FIRST_FRAME
#define I2C_FIRST_FRAME
Definition: stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h:353
I2C_FIRST_AND_NEXT_FRAME
#define I2C_FIRST_AND_NEXT_FRAME
Definition: stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h:354
I2C_DUALADDRESS_ENABLE
#define I2C_DUALADDRESS_ENABLE
Definition: stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h:309
I2C_ADDRESSINGMODE_10BIT
#define I2C_ADDRESSINGMODE_10BIT
Definition: stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h:300
I2C_ADDRESSINGMODE_7BIT
#define I2C_ADDRESSINGMODE_7BIT
Definition: stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h:299
I2C_DUTYCYCLE_2
#define I2C_DUTYCYCLE_2
Definition: stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h:290
I2C_DUALADDRESS_DISABLE
#define I2C_DUALADDRESS_DISABLE
Definition: stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h:308
I2C_OTHER_FRAME
#define I2C_OTHER_FRAME
Definition: stm32f469/stm32f469i-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h:363
I2C_GENERALCALL_DISABLE
#define I2C_GENERALCALL_DISABLE
Definition: stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h:317
I2C_MEMADD_SIZE_16BIT
#define I2C_MEMADD_SIZE_16BIT
Definition: stm32f469/stm32f469i-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h:336
I2C_GENERALCALL_ENABLE
#define I2C_GENERALCALL_ENABLE
Definition: stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h:318
I2C_MEMADD_SIZE_8BIT
#define I2C_MEMADD_SIZE_8BIT
Definition: stm32f469/stm32f469i-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h:335
I2C_NEXT_FRAME
#define I2C_NEXT_FRAME
Definition: stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h:355
I2C_LAST_FRAME
#define I2C_LAST_FRAME
Definition: stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h:358
I2C_OTHER_AND_LAST_FRAME
#define I2C_OTHER_AND_LAST_FRAME
Definition: stm32f469/stm32f469i-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h:364
I2C_FIRST_AND_LAST_FRAME
#define I2C_FIRST_AND_LAST_FRAME
Definition: stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h:356
I2C_NOSTRETCH_DISABLE
#define I2C_NOSTRETCH_DISABLE
Definition: stm32f469/stm32f469i-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h:326
I2C_LAST_FRAME_NO_STOP
#define I2C_LAST_FRAME_NO_STOP
Definition: stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h:357
I2C_NOSTRETCH_ENABLE
#define I2C_NOSTRETCH_ENABLE
Definition: stm32f469/stm32f469i-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h:327


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:15:06