mirror of https://github.com/periph/devices
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
2.5 KiB
Go
45 lines
2.5 KiB
Go
// Copyright 2025 The Periph Authors. All rights reserved.
|
|
// Use of this source code is governed under the Apache License, Version 2.0
|
|
// that can be found in the LICENSE file.
|
|
|
|
package mcp472x
|
|
|
|
import (
|
|
"periph.io/x/conn/v3/i2c/i2ctest"
|
|
)
|
|
|
|
// Auto-Generated by i2ctest.BusTest
|
|
|
|
var recordingData = map[string][]i2ctest.IO{
|
|
"TestSetGetOutput4728": {
|
|
{Addr: 0x60, W: []uint8{0x40, 0x82, 0x0, 0x2, 0x84, 0x0, 0x4, 0x86, 0x0, 0x6, 0x88, 0x0}},
|
|
{Addr: 0x60, R: []uint8{0xc0, 0x82, 0x0, 0xc8, 0x82, 0x0, 0xd0, 0x84, 0x0, 0xd8, 0x84, 0x0, 0xe0, 0x86, 0x0, 0xe8, 0xa8, 0x0, 0xf0, 0x88, 0x0, 0xf8, 0x88, 0x0}}},
|
|
"TestSetEEPROM4728": {
|
|
{Addr: 0x60, W: []uint8{0x5c, 0x84, 0x0}},
|
|
{Addr: 0x60, R: []uint8{0x40, 0x82, 0x0, 0x4f, 0x7d, 0xff, 0x50, 0x84, 0x0, 0x5f, 0x7b, 0xff, 0x60, 0x84, 0x0, 0x6f, 0x7b, 0xff, 0x70, 0x88, 0x0, 0x7f, 0x77, 0xff}},
|
|
{Addr: 0x60, R: []uint8{0xc0, 0x82, 0x0, 0xc8, 0x82, 0x0, 0xd0, 0x84, 0x0, 0xd8, 0x84, 0x0, 0xe0, 0x84, 0x0, 0xe8, 0x84, 0x0, 0xf0, 0x88, 0x0, 0xf8, 0x88, 0x0}},
|
|
{Addr: 0x60, W: []uint8{0x5c, 0xa8, 0x0}},
|
|
{Addr: 0x60, R: []uint8{0x40, 0x82, 0x0, 0x4f, 0x7d, 0xff, 0x50, 0x84, 0x0, 0x5f, 0x7b, 0xff, 0x60, 0xa8, 0x0, 0x6f, 0x57, 0xff, 0x70, 0x88, 0x0, 0x7f, 0x77, 0xff}},
|
|
{Addr: 0x60, R: []uint8{0xc0, 0x82, 0x0, 0xc8, 0x82, 0x0, 0xd0, 0x84, 0x0, 0xd8, 0x84, 0x0, 0xe0, 0xa8, 0x0, 0xe8, 0xa8, 0x0, 0xf0, 0x88, 0x0, 0xf8, 0x88, 0x0}}},
|
|
"TestFastWrite4728": {
|
|
{Addr: 0x60, W: []uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}},
|
|
{Addr: 0x60, R: []uint8{0xc0, 0x80, 0x0, 0xc8, 0x82, 0x0, 0xd0, 0x80, 0x0, 0xd8, 0x84, 0x0, 0xe0, 0x80, 0x0, 0xe8, 0xa8, 0x0, 0xf0, 0x80, 0x0, 0xf8, 0x88, 0x0}},
|
|
{Addr: 0x60, W: []uint8{0x6, 0x0, 0x6, 0x0, 0x6, 0x0, 0x6, 0x0}},
|
|
{Addr: 0x60, R: []uint8{0xc0, 0x86, 0x0, 0xc8, 0x82, 0x0, 0xd0, 0x86, 0x0, 0xd8, 0x84, 0x0, 0xe0, 0x86, 0x0, 0xe8, 0xa8, 0x0, 0xf0, 0x86, 0x0, 0xf8, 0x88, 0x0}}},
|
|
"TestSetGetOutput4725": {
|
|
{Addr: 0x62, W: []uint8{0x40, 0x13, 0xe0}},
|
|
{Addr: 0x62, R: []uint8{0xc0, 0x13, 0xe0, 0x24, 0xf7}}},
|
|
"TestSetEEPROM4725": {
|
|
{Addr: 0x62, W: []uint8{0x60, 0x27, 0xb0}},
|
|
{Addr: 0x62, R: []uint8{0x40, 0x27, 0xb0, 0x6d, 0x84}},
|
|
{Addr: 0x62, R: []uint8{0xc0, 0x27, 0xb0, 0x2, 0x7b}},
|
|
{Addr: 0x62, W: []uint8{0x62, 0x4f, 0x70}},
|
|
{Addr: 0x62, R: []uint8{0x42, 0x4f, 0x70, 0x4b, 0x8}},
|
|
{Addr: 0x62, R: []uint8{0xc2, 0x4f, 0x70, 0x24, 0xf7}}},
|
|
"TestFastWrite4725": {
|
|
{Addr: 0x62, W: []uint8{0x0, 0x0}},
|
|
{Addr: 0x62, R: []uint8{0xc0, 0x0, 0x0, 0x24, 0xf7}},
|
|
{Addr: 0x62, W: []uint8{0x3, 0xb9}},
|
|
{Addr: 0x62, R: []uint8{0xc0, 0x3b, 0x90, 0x24, 0xf7}}},
|
|
}
|