Simulating an I2C device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello I2C enthusiasts,

I've been doing some testing with the I2C GPIO fault injection with a 
Raspberry Pi (Model 4B) connected to my board and can make use of the 
incomplete_address_phase/incomplete_write_byte to simulate some errors 
and check that my board will do the I2C SDA/SCL recovery.

One thing I'm interested in doing is checking the impact of SCL clock 
stretching. I think for that I can't just (ab)use the I2C GPIO 
controller I probably need to have the Raspberry Pi act as an I2C 
device. Has anyone already attempted something like this?

It kind of looks like i2c-slave-eeprom.c might be usable for this (I'd 
probably have to do something special to fake clock stretching).




[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux