Add 16-bit register mock device

This commit is contained in:
Kenneth Bell
2021-03-30 21:43:45 -07:00
committed by Ron Evans
parent f7dc106fc8
commit 91dadd5535
7 changed files with 239 additions and 61 deletions
+1 -1
View File
@@ -211,7 +211,7 @@ func TestInitWithError(t *testing.T) {
c.Assert(dev, qt.IsNil)
}
func newDevice(bus *tester.I2CBus, addr uint8) *tester.I2CDevice {
func newDevice(bus *tester.I2CBus, addr uint8) *tester.I2CDevice8 {
fdev := bus.NewDevice(addr)
// IODIRA and IODIRB are all ones by default.
fdev.Registers[rIODIR] = 0xff