Files
drivers/tester/device.go
T
2023-07-02 18:30:11 +02:00

19 lines
425 B
Go

package tester
// MaxRegisters is the maximum number of registers supported for a Device.
const MaxRegisters = 255
type I2CDevice interface {
// ReadRegister implements I2C.ReadRegister.
readRegister(r uint8, buf []byte) error
// 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
}