Macros | |
#define | IS_I2C_SPEED(__SPEED__) |
Check if the I2C speed is valid. More... | |
#define | IS_I2C_ADDRESSING_MODE(__MODE__) |
Check if the I2C addressing mode is valid. More... | |
#define | IS_I2C_GENERAL_CALL(__CALL__) |
Check if the I2C general call mode is valid. More... | |
#define | IS_I2C_MEMADD_SIZE(__SIZE__) |
Check if the I2C memory address size is valid. More... | |
#define | IS_TRANSFER_REQUEST(__REQUEST__) |
Check if the I2C transfer request command is valid. More... | |
#define | IS_I2C_TRANSFER_OPTIONS_REQUEST(__REQUEST__) |
Check if the I2C transfer options request is valid. More... | |
#define | IS_I2C_SLV_ADDRESS(__ADDRESS__) ((__ADDRESS__) < 0x03FFU) |
Check if the I2C slave address is valid. More... | |
#define | IS_I2C_OWN_ADDRESS(__ADDRESS__) |
Check if the I2C own address is valid. More... | |
#define | I2C_MEM_ADD_MSB(__ADDRESS__) ((uint8_t)((uint16_t)(((uint16_t)((__ADDRESS__) & (uint16_t)(0xFF00U))) >> 8U))) |
Get the Most Significant 8 Bits of memory address. More... | |
#define | I2C_MEM_ADD_LSB(__ADDRESS__) ((uint8_t)((uint16_t)((__ADDRESS__) & (uint16_t)(0x00FFU)))) |
Get the Least Significant 8 Bits of memory address. More... | |
#define I2C_MEM_ADD_LSB | ( | __ADDRESS__ | ) | ((uint8_t)((uint16_t)((__ADDRESS__) & (uint16_t)(0x00FFU)))) |
Get the Least Significant 8 Bits of memory address.
__ADDRESS__ | Memory address. |
SET | (__ADDRESS__ is valid) or RESET (__ADDRESS__ is invalid) |
Definition at line 449 of file gr55xx_hal_i2c.h.
#define I2C_MEM_ADD_MSB | ( | __ADDRESS__ | ) | ((uint8_t)((uint16_t)(((uint16_t)((__ADDRESS__) & (uint16_t)(0xFF00U))) >> 8U))) |
Get the Most Significant 8 Bits of memory address.
__ADDRESS__ | Memory address. |
SET | (__ADDRESS__ is valid) or RESET (__ADDRESS__ is invalid) |
Definition at line 442 of file gr55xx_hal_i2c.h.
#define IS_I2C_ADDRESSING_MODE | ( | __MODE__ | ) |
Check if the I2C addressing mode is valid.
__MODE__ | I2C addressing mode. |
SET | (__MODE__ is valid) or RESET (__MODE__ is invalid) |
Definition at line 381 of file gr55xx_hal_i2c.h.
#define IS_I2C_GENERAL_CALL | ( | __CALL__ | ) |
Check if the I2C general call mode is valid.
__CALL__ | I2C general call mode. |
SET | (__CALL__ is valid) or RESET (__CALL__ is invalid) |
Definition at line 389 of file gr55xx_hal_i2c.h.
#define IS_I2C_MEMADD_SIZE | ( | __SIZE__ | ) |
Check if the I2C memory address size is valid.
__SIZE__ | I2C memory address size. |
SET | (__SIZE__ is valid) or RESET (__SIZE__ is invalid) |
Definition at line 397 of file gr55xx_hal_i2c.h.
#define IS_I2C_OWN_ADDRESS | ( | __ADDRESS__ | ) |
Check if the I2C own address is valid.
__ADDRESS__ | I2C own address. |
SET | (__ADDRESS__ is valid) or RESET (__ADDRESS__ is invalid) |
Definition at line 434 of file gr55xx_hal_i2c.h.
#define IS_I2C_SLV_ADDRESS | ( | __ADDRESS__ | ) | ((__ADDRESS__) < 0x03FFU) |
Check if the I2C slave address is valid.
__ADDRESS__ | I2C slave address. |
SET | (__ADDRESS__ is valid) or RESET (__ADDRESS__ is invalid) |
Definition at line 427 of file gr55xx_hal_i2c.h.
#define IS_I2C_SPEED | ( | __SPEED__ | ) |
Check if the I2C speed is valid.
__SPEED__ | I2C transfer speed. |
SET | (__SPEED__ is valid) or RESET (__SPEED__ is invalid) |
Definition at line 371 of file gr55xx_hal_i2c.h.
#define IS_I2C_TRANSFER_OPTIONS_REQUEST | ( | __REQUEST__ | ) |
Check if the I2C transfer options request is valid.
__REQUEST__ | I2C transfer options request. |
SET | (__REQUEST__ is valid) or RESET (__REQUEST__ is invalid) |
Definition at line 416 of file gr55xx_hal_i2c.h.
#define IS_TRANSFER_REQUEST | ( | __REQUEST__ | ) |
Check if the I2C transfer request command is valid.
__REQUEST__ | I2C transfer request command. |
SET | (__REQUEST__ is valid) or RESET (__REQUEST__ is invalid) |
Definition at line 405 of file gr55xx_hal_i2c.h.