i2c

package
v1.19.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2021 License: GPL-2.0, GPL-2.0-or-later Imports: 7 Imported by: 1

Documentation

Overview

Package i2c provides cli command to access i2c devices.

Package ucd9090 provides access to the UCD9090 Power Sequencer/Monitor chip

Index

Constants

View Source
const MAXOPS = 30

Variables

This section is empty.

Functions

func DoI2cRpc

func DoI2cRpc() error

func ReadByte

func ReadByte(b uint8, a uint8, c uint8) (uint8, error)

func WriteByte

func WriteByte(b uint8, a uint8, c uint8, v uint8) error

Types

type Command

type Command struct{}

func (Command) Apropos

func (Command) Apropos() lang.Alt

func (Command) Main

func (Command) Main(args ...string) error

func (Command) Man

func (Command) Man() lang.Alt

func (Command) String

func (Command) String() string

func (Command) Usage

func (Command) Usage() string

type I

type I struct {
	InUse     bool
	RW        i2c.RW
	RegOffset uint8
	BusSize   i2c.SMBusSize
	Data      [i2c.BlockMax]byte
	Bus       int
	Addr      int
	Delay     int
}

type I2cReq

type I2cReq int

type R

type R struct {
	D [i2c.BlockMax]byte
	E error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL