Macros
Collaboration diagram for SMBUS Private Macros:

Macros

#define IS_SMBUS_ADDRESSING_MODE(MODE)
 
#define IS_SMBUS_ANALOG_FILTER(FILTER)
 
#define IS_SMBUS_DIGITAL_FILTER(FILTER)   ((FILTER) <= 0x0000000FU)
 
#define IS_SMBUS_DUAL_ADDRESS(ADDRESS)
 
#define IS_SMBUS_GENERAL_CALL(CALL)
 
#define IS_SMBUS_NO_STRETCH(STRETCH)
 
#define IS_SMBUS_OWN_ADDRESS1(ADDRESS1)   ((ADDRESS1) <= 0x000003FFU)
 
#define IS_SMBUS_OWN_ADDRESS2(ADDRESS2)   ((ADDRESS2) <= (uint16_t)0x00FFU)
 
#define IS_SMBUS_OWN_ADDRESS2_MASK(MASK)
 
#define IS_SMBUS_PEC(PEC)
 
#define IS_SMBUS_PERIPHERAL_MODE(MODE)
 
#define IS_SMBUS_TRANSFER_MODE(MODE)
 
#define IS_SMBUS_TRANSFER_OPTIONS_REQUEST(REQUEST)
 
#define IS_SMBUS_TRANSFER_OTHER_OPTIONS_REQUEST(REQUEST)
 
#define IS_SMBUS_TRANSFER_REQUEST(REQUEST)
 
#define SMBUS_CHECK_FLAG(__ISR__, __FLAG__)   ((((__ISR__) & ((__FLAG__) & SMBUS_FLAG_MASK)) == ((__FLAG__) & SMBUS_FLAG_MASK)) ? SET : RESET)
 
#define SMBUS_CHECK_IT_SOURCE(__CR1__, __IT__)   ((((__CR1__) & (__IT__)) == (__IT__)) ? SET : RESET)
 
#define SMBUS_GENERATE_START(__ADDMODE__, __ADDRESS__)
 
#define SMBUS_GET_ADDR_MATCH(__HANDLE__)   (((__HANDLE__)->Instance->ISR & I2C_ISR_ADDCODE) >> 17U)
 
#define SMBUS_GET_ALERT_ENABLED(__HANDLE__)   ((__HANDLE__)->Instance->CR1 & I2C_CR1_ALERTEN)
 
#define SMBUS_GET_DIR(__HANDLE__)   (((__HANDLE__)->Instance->ISR & I2C_ISR_DIR) >> 16U)
 
#define SMBUS_GET_PEC_MODE(__HANDLE__)   ((__HANDLE__)->Instance->CR2 & I2C_CR2_PECBYTE)
 
#define SMBUS_GET_STOP_MODE(__HANDLE__)   ((__HANDLE__)->Instance->CR2 & I2C_CR2_AUTOEND)
 
#define SMBUS_RESET_CR1(__HANDLE__)   ((__HANDLE__)->Instance->CR1 &= (uint32_t)~((uint32_t)(I2C_CR1_SMBHEN | I2C_CR1_SMBDEN | I2C_CR1_PECEN)))
 
#define SMBUS_RESET_CR2(__HANDLE__)   ((__HANDLE__)->Instance->CR2 &= (uint32_t)~((uint32_t)(I2C_CR2_SADD | I2C_CR2_HEAD10R | I2C_CR2_NBYTES | I2C_CR2_RELOAD | I2C_CR2_RD_WRN)))
 

Detailed Description

Macro Definition Documentation

◆ IS_SMBUS_ADDRESSING_MODE

#define IS_SMBUS_ADDRESSING_MODE (   MODE)
Value:
(((MODE) == SMBUS_ADDRESSINGMODE_7BIT) || \

Definition at line 541 of file stm32f7xx_hal_smbus.h.

◆ IS_SMBUS_ANALOG_FILTER

#define IS_SMBUS_ANALOG_FILTER (   FILTER)
Value:
(((FILTER) == SMBUS_ANALOGFILTER_ENABLE) || \

Definition at line 536 of file stm32f7xx_hal_smbus.h.

◆ IS_SMBUS_DIGITAL_FILTER

#define IS_SMBUS_DIGITAL_FILTER (   FILTER)    ((FILTER) <= 0x0000000FU)

Definition at line 539 of file stm32f7xx_hal_smbus.h.

◆ IS_SMBUS_DUAL_ADDRESS

#define IS_SMBUS_DUAL_ADDRESS (   ADDRESS)
Value:
(((ADDRESS) == SMBUS_DUALADDRESS_DISABLE) || \
((ADDRESS) == SMBUS_DUALADDRESS_ENABLE))

Definition at line 544 of file stm32f7xx_hal_smbus.h.

◆ IS_SMBUS_GENERAL_CALL

#define IS_SMBUS_GENERAL_CALL (   CALL)
Value:
(((CALL) == SMBUS_GENERALCALL_DISABLE) || \

Definition at line 556 of file stm32f7xx_hal_smbus.h.

◆ IS_SMBUS_NO_STRETCH

#define IS_SMBUS_NO_STRETCH (   STRETCH)
Value:
(((STRETCH) == SMBUS_NOSTRETCH_DISABLE) || \
((STRETCH) == SMBUS_NOSTRETCH_ENABLE))

Definition at line 559 of file stm32f7xx_hal_smbus.h.

◆ IS_SMBUS_OWN_ADDRESS1

#define IS_SMBUS_OWN_ADDRESS1 (   ADDRESS1)    ((ADDRESS1) <= 0x000003FFU)

Definition at line 613 of file stm32f7xx_hal_smbus.h.

◆ IS_SMBUS_OWN_ADDRESS2

#define IS_SMBUS_OWN_ADDRESS2 (   ADDRESS2)    ((ADDRESS2) <= (uint16_t)0x00FFU)

Definition at line 614 of file stm32f7xx_hal_smbus.h.

◆ IS_SMBUS_OWN_ADDRESS2_MASK

#define IS_SMBUS_OWN_ADDRESS2_MASK (   MASK)
Value:
(((MASK) == SMBUS_OA2_NOMASK) || \
((MASK) == SMBUS_OA2_MASK01) || \
((MASK) == SMBUS_OA2_MASK02) || \
((MASK) == SMBUS_OA2_MASK03) || \
((MASK) == SMBUS_OA2_MASK04) || \
((MASK) == SMBUS_OA2_MASK05) || \
((MASK) == SMBUS_OA2_MASK06) || \
((MASK) == SMBUS_OA2_MASK07))

Definition at line 547 of file stm32f7xx_hal_smbus.h.

◆ IS_SMBUS_PEC

#define IS_SMBUS_PEC (   PEC)
Value:
(((PEC) == SMBUS_PEC_DISABLE) || \
((PEC) == SMBUS_PEC_ENABLE))

Definition at line 562 of file stm32f7xx_hal_smbus.h.

◆ IS_SMBUS_PERIPHERAL_MODE

#define IS_SMBUS_PERIPHERAL_MODE (   MODE)
Value:

Definition at line 565 of file stm32f7xx_hal_smbus.h.

◆ IS_SMBUS_TRANSFER_MODE

#define IS_SMBUS_TRANSFER_MODE (   MODE)
Value:
(((MODE) == SMBUS_RELOAD_MODE) || \
((MODE) == SMBUS_AUTOEND_MODE) || \
((MODE) == SMBUS_SOFTEND_MODE) || \
((MODE) == SMBUS_SENDPEC_MODE) || \

Definition at line 569 of file stm32f7xx_hal_smbus.h.

◆ IS_SMBUS_TRANSFER_OPTIONS_REQUEST

#define IS_SMBUS_TRANSFER_OPTIONS_REQUEST (   REQUEST)
Value:
((REQUEST) == SMBUS_FIRST_FRAME) || \
((REQUEST) == SMBUS_NEXT_FRAME) || \
((REQUEST) == SMBUS_LAST_FRAME_NO_PEC) || \
((REQUEST) == SMBUS_LAST_FRAME_WITH_PEC))

Definition at line 585 of file stm32f7xx_hal_smbus.h.

◆ IS_SMBUS_TRANSFER_OTHER_OPTIONS_REQUEST

#define IS_SMBUS_TRANSFER_OTHER_OPTIONS_REQUEST (   REQUEST)
Value:
(((REQUEST) == SMBUS_OTHER_FRAME_NO_PEC) || \
((REQUEST) == SMBUS_OTHER_FRAME_WITH_PEC) || \

Definition at line 593 of file stm32f7xx_hal_smbus.h.

◆ IS_SMBUS_TRANSFER_REQUEST

#define IS_SMBUS_TRANSFER_REQUEST (   REQUEST)
Value:
(((REQUEST) == SMBUS_GENERATE_STOP) || \
((REQUEST) == SMBUS_GENERATE_START_READ) || \
((REQUEST) == SMBUS_GENERATE_START_WRITE) || \
((REQUEST) == SMBUS_NO_STARTSTOP))

Definition at line 579 of file stm32f7xx_hal_smbus.h.

◆ SMBUS_CHECK_FLAG

#define SMBUS_CHECK_FLAG (   __ISR__,
  __FLAG__ 
)    ((((__ISR__) & ((__FLAG__) & SMBUS_FLAG_MASK)) == ((__FLAG__) & SMBUS_FLAG_MASK)) ? SET : RESET)

Definition at line 610 of file stm32f7xx_hal_smbus.h.

◆ SMBUS_CHECK_IT_SOURCE

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

Definition at line 611 of file stm32f7xx_hal_smbus.h.

◆ SMBUS_GENERATE_START

#define SMBUS_GENERATE_START (   __ADDMODE__,
  __ADDRESS__ 
)
Value:
(((__ADDMODE__) == SMBUS_ADDRESSINGMODE_7BIT) ? (uint32_t)((((uint32_t)(__ADDRESS__) & (I2C_CR2_SADD)) | (I2C_CR2_START) | (I2C_CR2_AUTOEND)) & (~I2C_CR2_RD_WRN)) : \
(uint32_t)((((uint32_t)(__ADDRESS__) & (I2C_CR2_SADD)) | (I2C_CR2_ADD10) | (I2C_CR2_START)) & (~I2C_CR2_RD_WRN)))

Definition at line 601 of file stm32f7xx_hal_smbus.h.

◆ SMBUS_GET_ADDR_MATCH

#define SMBUS_GET_ADDR_MATCH (   __HANDLE__)    (((__HANDLE__)->Instance->ISR & I2C_ISR_ADDCODE) >> 17U)

Definition at line 604 of file stm32f7xx_hal_smbus.h.

◆ SMBUS_GET_ALERT_ENABLED

#define SMBUS_GET_ALERT_ENABLED (   __HANDLE__)    ((__HANDLE__)->Instance->CR1 & I2C_CR1_ALERTEN)

Definition at line 608 of file stm32f7xx_hal_smbus.h.

◆ SMBUS_GET_DIR

#define SMBUS_GET_DIR (   __HANDLE__)    (((__HANDLE__)->Instance->ISR & I2C_ISR_DIR) >> 16U)

Definition at line 605 of file stm32f7xx_hal_smbus.h.

◆ SMBUS_GET_PEC_MODE

#define SMBUS_GET_PEC_MODE (   __HANDLE__)    ((__HANDLE__)->Instance->CR2 & I2C_CR2_PECBYTE)

Definition at line 607 of file stm32f7xx_hal_smbus.h.

◆ SMBUS_GET_STOP_MODE

#define SMBUS_GET_STOP_MODE (   __HANDLE__)    ((__HANDLE__)->Instance->CR2 & I2C_CR2_AUTOEND)

Definition at line 606 of file stm32f7xx_hal_smbus.h.

◆ SMBUS_RESET_CR1

#define SMBUS_RESET_CR1 (   __HANDLE__)    ((__HANDLE__)->Instance->CR1 &= (uint32_t)~((uint32_t)(I2C_CR1_SMBHEN | I2C_CR1_SMBDEN | I2C_CR1_PECEN)))

Definition at line 598 of file stm32f7xx_hal_smbus.h.

◆ SMBUS_RESET_CR2

#define SMBUS_RESET_CR2 (   __HANDLE__)    ((__HANDLE__)->Instance->CR2 &= (uint32_t)~((uint32_t)(I2C_CR2_SADD | I2C_CR2_HEAD10R | I2C_CR2_NBYTES | I2C_CR2_RELOAD | I2C_CR2_RD_WRN)))

Definition at line 599 of file stm32f7xx_hal_smbus.h.

I2C_CR2_RD_WRN
#define I2C_CR2_RD_WRN
Definition: stm32f769xx.h:9896
SMBUS_ANALOGFILTER_ENABLE
#define SMBUS_ANALOGFILTER_ENABLE
Definition: stm32f7xx_hal_smbus.h:214
SMBUS_ADDRESSINGMODE_7BIT
#define SMBUS_ADDRESSINGMODE_7BIT
Definition: stm32f7xx_hal_smbus.h:223
SMBUS_OTHER_FRAME_WITH_PEC
#define SMBUS_OTHER_FRAME_WITH_PEC
Definition: stm32f7xx_hal_smbus.h:336
IS_SMBUS_TRANSFER_OTHER_OPTIONS_REQUEST
#define IS_SMBUS_TRANSFER_OTHER_OPTIONS_REQUEST(REQUEST)
Definition: stm32f7xx_hal_smbus.h:593
SMBUS_GENERALCALL_ENABLE
#define SMBUS_GENERALCALL_ENABLE
Definition: stm32f7xx_hal_smbus.h:260
SMBUS_NEXT_FRAME
#define SMBUS_NEXT_FRAME
Definition: stm32f7xx_hal_smbus.h:326
SMBUS_OTHER_AND_LAST_FRAME_NO_PEC
#define SMBUS_OTHER_AND_LAST_FRAME_NO_PEC
Definition: stm32f7xx_hal_smbus.h:337
SMBUS_OA2_MASK04
#define SMBUS_OA2_MASK04
Definition: stm32f7xx_hal_smbus.h:247
SMBUS_GENERATE_STOP
#define SMBUS_GENERATE_STOP
Definition: stm32f7xx_hal_smbus.h:310
SMBUS_LAST_FRAME_WITH_PEC
#define SMBUS_LAST_FRAME_WITH_PEC
Definition: stm32f7xx_hal_smbus.h:330
SMBUS_ADDRESSINGMODE_10BIT
#define SMBUS_ADDRESSINGMODE_10BIT
Definition: stm32f7xx_hal_smbus.h:224
SMBUS_PEC_ENABLE
#define SMBUS_PEC_ENABLE
Definition: stm32f7xx_hal_smbus.h:278
SMBUS_FIRST_AND_LAST_FRAME_NO_PEC
#define SMBUS_FIRST_AND_LAST_FRAME_NO_PEC
Definition: stm32f7xx_hal_smbus.h:327
SMBUS_FIRST_AND_LAST_FRAME_WITH_PEC
#define SMBUS_FIRST_AND_LAST_FRAME_WITH_PEC
Definition: stm32f7xx_hal_smbus.h:329
SMBUS_FIRST_FRAME
#define SMBUS_FIRST_FRAME
Definition: stm32f7xx_hal_smbus.h:325
SMBUS_GENERATE_START_READ
#define SMBUS_GENERATE_START_READ
Definition: stm32f7xx_hal_smbus.h:311
SMBUS_OTHER_AND_LAST_FRAME_WITH_PEC
#define SMBUS_OTHER_AND_LAST_FRAME_WITH_PEC
Definition: stm32f7xx_hal_smbus.h:338
SMBUS_SOFTEND_MODE
#define SMBUS_SOFTEND_MODE
Definition: stm32f7xx_hal_smbus.h:297
SMBUS_NO_STARTSTOP
#define SMBUS_NO_STARTSTOP
Definition: stm32f7xx_hal_smbus.h:309
SMBUS_PERIPHERAL_MODE_SMBUS_SLAVE_ARP
#define SMBUS_PERIPHERAL_MODE_SMBUS_SLAVE_ARP
Definition: stm32f7xx_hal_smbus.h:288
SMBUS_PERIPHERAL_MODE_SMBUS_HOST
#define SMBUS_PERIPHERAL_MODE_SMBUS_HOST
Definition: stm32f7xx_hal_smbus.h:286
I2C_CR2_ADD10
#define I2C_CR2_ADD10
Definition: stm32f769xx.h:9899
SMBUS_OA2_MASK01
#define SMBUS_OA2_MASK01
Definition: stm32f7xx_hal_smbus.h:244
SMBUS_OA2_MASK06
#define SMBUS_OA2_MASK06
Definition: stm32f7xx_hal_smbus.h:249
I2C_CR2_SADD
#define I2C_CR2_SADD
Definition: stm32f769xx.h:9893
SMBUS_GENERATE_START_WRITE
#define SMBUS_GENERATE_START_WRITE
Definition: stm32f7xx_hal_smbus.h:312
SMBUS_GENERALCALL_DISABLE
#define SMBUS_GENERALCALL_DISABLE
Definition: stm32f7xx_hal_smbus.h:259
I2C_CR2_START
#define I2C_CR2_START
Definition: stm32f769xx.h:9905
SMBUS_SENDPEC_MODE
#define SMBUS_SENDPEC_MODE
Definition: stm32f7xx_hal_smbus.h:300
SMBUS_DUALADDRESS_DISABLE
#define SMBUS_DUALADDRESS_DISABLE
Definition: stm32f7xx_hal_smbus.h:233
SMBUS_DUALADDRESS_ENABLE
#define SMBUS_DUALADDRESS_ENABLE
Definition: stm32f7xx_hal_smbus.h:234
SMBUS_NOSTRETCH_DISABLE
#define SMBUS_NOSTRETCH_DISABLE
Definition: stm32f7xx_hal_smbus.h:268
SMBUS_PEC_DISABLE
#define SMBUS_PEC_DISABLE
Definition: stm32f7xx_hal_smbus.h:277
SMBUS_LAST_FRAME_NO_PEC
#define SMBUS_LAST_FRAME_NO_PEC
Definition: stm32f7xx_hal_smbus.h:328
SMBUS_NOSTRETCH_ENABLE
#define SMBUS_NOSTRETCH_ENABLE
Definition: stm32f7xx_hal_smbus.h:269
SMBUS_OA2_MASK03
#define SMBUS_OA2_MASK03
Definition: stm32f7xx_hal_smbus.h:246
SMBUS_ANALOGFILTER_DISABLE
#define SMBUS_ANALOGFILTER_DISABLE
Definition: stm32f7xx_hal_smbus.h:215
I2C_CR2_AUTOEND
#define I2C_CR2_AUTOEND
Definition: stm32f769xx.h:9920
SMBUS_OTHER_FRAME_NO_PEC
#define SMBUS_OTHER_FRAME_NO_PEC
Definition: stm32f7xx_hal_smbus.h:335
SMBUS_AUTOEND_MODE
#define SMBUS_AUTOEND_MODE
Definition: stm32f7xx_hal_smbus.h:299
SMBUS_OA2_MASK05
#define SMBUS_OA2_MASK05
Definition: stm32f7xx_hal_smbus.h:248
SMBUS_PERIPHERAL_MODE_SMBUS_SLAVE
#define SMBUS_PERIPHERAL_MODE_SMBUS_SLAVE
Definition: stm32f7xx_hal_smbus.h:287
SMBUS_OA2_MASK07
#define SMBUS_OA2_MASK07
Definition: stm32f7xx_hal_smbus.h:250
SMBUS_RELOAD_MODE
#define SMBUS_RELOAD_MODE
Definition: stm32f7xx_hal_smbus.h:298
SMBUS_OA2_NOMASK
#define SMBUS_OA2_NOMASK
Definition: stm32f7xx_hal_smbus.h:243
SMBUS_OA2_MASK02
#define SMBUS_OA2_MASK02
Definition: stm32f7xx_hal_smbus.h:245


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