Closed davesliu closed 1 year ago
Hi @davesliu. Interesting hack you propose there. I have unfortunately no experience to lean on in this particular matter, but you may want to take a look compare Figure 17 with Figure 3 in the Interfacing I2 C* Devices to an Intel® SMBus Controller from Intel. It seems to me you should try to combine the two write operations into one (with some adjustments too, perhaps?).
@kplindegaard Yes, you are right, I just want to implement the "SMBus Block Write-Block Read Process Call" as shown in Figure 17 of that document.
But it seems not work.
Hello
I want to use the i2c_rdwr() funciton to simulate the SMBus block process call as currently the raspberry pi 4 (BCM2711 chip) doesn't support the SMBus block process call in its driver level.
Just want to write two bytes data 0x1,0x11 to register 0x10 at address 0x50 and then tried to read back the data address 0x20. It seems that below operation doesn't work. Could you help to see if there is any restart between write_data and wrtie_data2? and is there any restart bit betwen wrtie_data2 and read_data?