Files
drivers/tester/device.go
T
2021-05-10 12:15:52 +02:00

16 lines
376 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
// Addr returns the Device address.
Addr() uint8
}