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.
<strong>ADDRESS</strong> | 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.
<strong>ADDRESS</strong> | 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.
<strong>MODE</strong> | 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.
<strong>CALL</strong> | 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.
<strong>SIZE</strong> | 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.
<strong>ADDRESS</strong> | 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.
<strong>ADDRESS</strong> | 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.
<strong>SPEED</strong> | 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.
<strong>REQUEST</strong> | 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.
<strong>REQUEST</strong> | I2C transfer request command. |
SET | (REQUEST is valid) or RESET (REQUEST is invalid) |
Definition at line 405 of file gr55xx_hal_i2c.h.