Linux system to do the host, stm32 do from machine, through the smbus bus communication,
Stm32 HAL_I2C_Slave_Transmit and HAL_I2C_Slave_Receive using library function, can more bytes to send and receive
Linux system use i2c_smbus_read_byte and i2c_smbus_write_byte, only single-byte transceiver
The two sides to communicate, but can only single-byte transceiver,
I want to ask how to read and write more bytes of? If a Linux system using i2c_smbus_write_block_data function, need to send register address, STM32 didn't register address,
Or any other method can realize such function: Linux system sends a custom command, such as 0 x1234 and receipt of STM32, judge command is equal to 0 x1234 and 0 x5678, then send back data 0 x5678 Linux system receives the data,