Documentation ¶ Index ¶ type Bus func OpenBus(busID int) (*Bus, error) func (b *Bus) GetDevice(address uint16) *Device func (b *Bus) Transfer(address uint16, writeBuf []byte, readBuf []byte) error type Device func (d *Device) ReadReg8(reg uint8) (uint8, error) func (d *Device) Transfer(writeBuf []byte, readBuf []byte) error func (d *Device) WriteReg8(reg uint8, value uint8) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Bus ¶ type Bus struct { // contains filtered or unexported fields } func OpenBus ¶ func OpenBus(busID int) (*Bus, error) func (*Bus) GetDevice ¶ func (b *Bus) GetDevice(address uint16) *Device func (*Bus) Transfer ¶ func (b *Bus) Transfer(address uint16, writeBuf []byte, readBuf []byte) error type Device ¶ type Device struct { // contains filtered or unexported fields } func (*Device) ReadReg8 ¶ func (d *Device) ReadReg8(reg uint8) (uint8, error) func (*Device) Transfer ¶ func (d *Device) Transfer(writeBuf []byte, readBuf []byte) error func (*Device) WriteReg8 ¶ func (d *Device) WriteReg8(reg uint8, value uint8) error Source Files ¶ View all Source files convenience.go i2c.go Click to show internal directories. Click to hide internal directories.