mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-16 04:43:25 +00:00
tester: add a mock for command-oriented i2c devices
This commit is contained in:
@@ -10,6 +10,9 @@ type I2CDevice interface {
|
||||
// WriteRegister implements I2C.WriteRegister.
|
||||
WriteRegister(r uint8, buf []byte) error
|
||||
|
||||
// Tx implements I2C.Tx
|
||||
Tx(w, r []byte) error
|
||||
|
||||
// Addr returns the Device address.
|
||||
Addr() uint8
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user