Macros | |
#define | IS_SMBUS_ADDRESSING_MODE(ADDRESS) |
#define | IS_SMBUS_CLOCK_SPEED(SPEED) (((SPEED) > 0U) && ((SPEED) <= 100000U)) |
#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) & 0xFFFFFC00U) == 0U) |
#define | IS_SMBUS_OWN_ADDRESS2(ADDRESS2) (((ADDRESS2) & 0xFFFFFF01U) == 0U) |
#define | IS_SMBUS_PEC(PEC) |
#define | IS_SMBUS_PERIPHERAL_MODE(MODE) |
#define | IS_SMBUS_TRANSFER_OPTIONS_REQUEST(REQUEST) |
#define | SMBUS_10BIT_ADDRESS(__ADDRESS__) ((uint8_t)((uint16_t)((__ADDRESS__) & (uint16_t)0x00FF))) |
#define | SMBUS_10BIT_HEADER_READ(__ADDRESS__) ((uint8_t)((uint16_t)((uint16_t)(((uint16_t)((__ADDRESS__) & (uint16_t)0x0300)) >> 7) | (uint16_t)(0x00F1)))) |
#define | SMBUS_10BIT_HEADER_WRITE(__ADDRESS__) ((uint8_t)((uint16_t)((uint16_t)(((uint16_t)((__ADDRESS__) & (uint16_t)0x0300)) >> 7) | (uint16_t)0x00F0))) |
#define | SMBUS_7BIT_ADD_READ(__ADDRESS__) ((uint8_t)((__ADDRESS__) | I2C_OAR1_ADD0)) |
#define | SMBUS_7BIT_ADD_WRITE(__ADDRESS__) ((uint8_t)((__ADDRESS__) & (~I2C_OAR1_ADD0))) |
#define | SMBUS_FREQRANGE(__PCLK__) ((__PCLK__)/1000000U) |
#define | SMBUS_GET_PEC_MODE(__HANDLE__) ((__HANDLE__)->Instance->CR1 & I2C_CR1_ENPEC) |
#define | SMBUS_GET_PEC_VALUE(__HANDLE__) ((__HANDLE__)->XferPEC) |
#define | SMBUS_RISE_TIME(__FREQRANGE__) ( ((__FREQRANGE__) + 1U)) |
#define | SMBUS_SPEED_STANDARD(__PCLK__, __SPEED__) (((((__PCLK__)/((__SPEED__) << 1U)) & I2C_CCR_CCR) < 4U)? 4U:((__PCLK__) / ((__SPEED__) << 1U))) |
#define IS_SMBUS_ADDRESSING_MODE | ( | ADDRESS | ) |
Definition at line 669 of file stm32f4xx_hal_smbus.h.
#define IS_SMBUS_CLOCK_SPEED | ( | SPEED | ) | (((SPEED) > 0U) && ((SPEED) <= 100000U)) |
Definition at line 688 of file stm32f4xx_hal_smbus.h.
#define IS_SMBUS_DUAL_ADDRESS | ( | ADDRESS | ) |
Definition at line 672 of file stm32f4xx_hal_smbus.h.
#define IS_SMBUS_GENERAL_CALL | ( | CALL | ) |
Definition at line 675 of file stm32f4xx_hal_smbus.h.
#define IS_SMBUS_NO_STRETCH | ( | STRETCH | ) |
Definition at line 678 of file stm32f4xx_hal_smbus.h.
#define IS_SMBUS_OWN_ADDRESS1 | ( | ADDRESS1 | ) | (((ADDRESS1) & 0xFFFFFC00U) == 0U) |
Definition at line 690 of file stm32f4xx_hal_smbus.h.
#define IS_SMBUS_OWN_ADDRESS2 | ( | ADDRESS2 | ) | (((ADDRESS2) & 0xFFFFFF01U) == 0U) |
Definition at line 692 of file stm32f4xx_hal_smbus.h.
#define IS_SMBUS_PEC | ( | PEC | ) |
Definition at line 681 of file stm32f4xx_hal_smbus.h.
#define IS_SMBUS_PERIPHERAL_MODE | ( | MODE | ) |
Definition at line 684 of file stm32f4xx_hal_smbus.h.
#define IS_SMBUS_TRANSFER_OPTIONS_REQUEST | ( | REQUEST | ) |
Definition at line 694 of file stm32f4xx_hal_smbus.h.
#define SMBUS_10BIT_ADDRESS | ( | __ADDRESS__ | ) | ((uint8_t)((uint16_t)((__ADDRESS__) & (uint16_t)0x00FF))) |
Definition at line 654 of file stm32f4xx_hal_smbus.h.
#define SMBUS_10BIT_HEADER_READ | ( | __ADDRESS__ | ) | ((uint8_t)((uint16_t)((uint16_t)(((uint16_t)((__ADDRESS__) & (uint16_t)0x0300)) >> 7) | (uint16_t)(0x00F1)))) |
Definition at line 658 of file stm32f4xx_hal_smbus.h.
#define SMBUS_10BIT_HEADER_WRITE | ( | __ADDRESS__ | ) | ((uint8_t)((uint16_t)((uint16_t)(((uint16_t)((__ADDRESS__) & (uint16_t)0x0300)) >> 7) | (uint16_t)0x00F0))) |
Definition at line 656 of file stm32f4xx_hal_smbus.h.
#define SMBUS_7BIT_ADD_READ | ( | __ADDRESS__ | ) | ((uint8_t)((__ADDRESS__) | I2C_OAR1_ADD0)) |
Definition at line 652 of file stm32f4xx_hal_smbus.h.
#define SMBUS_7BIT_ADD_WRITE | ( | __ADDRESS__ | ) | ((uint8_t)((__ADDRESS__) & (~I2C_OAR1_ADD0))) |
Definition at line 650 of file stm32f4xx_hal_smbus.h.
#define SMBUS_FREQRANGE | ( | __PCLK__ | ) | ((__PCLK__)/1000000U) |
Definition at line 644 of file stm32f4xx_hal_smbus.h.
#define SMBUS_GET_PEC_MODE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR1 & I2C_CR1_ENPEC) |
Definition at line 660 of file stm32f4xx_hal_smbus.h.
#define SMBUS_GET_PEC_VALUE | ( | __HANDLE__ | ) | ((__HANDLE__)->XferPEC) |
Definition at line 662 of file stm32f4xx_hal_smbus.h.
#define SMBUS_RISE_TIME | ( | __FREQRANGE__ | ) | ( ((__FREQRANGE__) + 1U)) |
Definition at line 646 of file stm32f4xx_hal_smbus.h.
#define SMBUS_SPEED_STANDARD | ( | __PCLK__, | |
__SPEED__ | |||
) | (((((__PCLK__)/((__SPEED__) << 1U)) & I2C_CCR_CCR) < 4U)? 4U:((__PCLK__) / ((__SPEED__) << 1U))) |
Definition at line 648 of file stm32f4xx_hal_smbus.h.