How to pass Salve address in HAL_I2C_Master_Transmit ? " The device 7 bits address value in datasheet must be shifted to the left before calling the interface"
Hello,
I am configuring KSZ8863 3 port switch over I2C. And the slave address Read/Write address is oxBF/0xBE respectively. In the HAL reference manual it says the address should be shifted left before calling the interface. It's confusing, if I am shifting it (0xBE <<1), the address becomes 0x7C. Or the HAL_I2C transmit will handle the address even if shifted?
Also, should I send the address as 0xBF while using HAL_I2C_Receive ?
Below are the HAL functions used in my code.
HAL_I2C_Master_Transmit(&hi2c1, KSZ8863_WRITE_ADDRESS, buf, 2, HAL_MAX_DELAY);
HAL_I2C_Master_Receive(&hi2c1,KSZ8863_READ_ADDRESS, Data, 1, HAL_MAX_DELAY);
Thanks
