lceventsd

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2019 License: GPL-2.0, GPL-2.0-or-later Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const MAXOPS = 30
View Source
const MAX_IRQ_EVENTS = 8

Variables

View Source
var (
	VdevIo I2cDev // lcabs status via pca9539

	ChassisType   uint8
	BoardType     uint8
	New_present_n uint16
	Old_present_n uint16
)

Functions

func DoI2cRpc

func DoI2cRpc() error

Types

type Command

type Command struct {
	Info
	Init func()
	// contains filtered or unexported fields
}

func (*Command) Apropos

func (*Command) Apropos() lang.Alt

func (*Command) Close

func (c *Command) Close() error

func (*Command) Kind

func (*Command) Kind() cmd.Kind

func (*Command) Main

func (c *Command) Main(...string) error

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      [34]byte
	Bus       int
	Addr      int
	Delay     int
}

type I2cDev

type I2cDev struct {
	Bus       int
	Addr      int
	MuxBus    int
	MuxAddr   int
	MuxValue  int
	MuxBus2   int
	MuxAddr2  int
	MuxValue2 int
}

func (*I2cDev) LcabsInit

func (h *I2cDev) LcabsInit(out0 byte, out1 byte, pol0 byte, pol1 byte, conf0 byte, conf1 byte) error

func (*I2cDev) ReadMuxInputReg

func (h *I2cDev) ReadMuxInputReg() uint16

type I2cReq

type I2cReq int

type Info

type Info struct {
	// contains filtered or unexported fields
}

type R

type R struct {
	D [34]byte
	E error
}

Jump to

Keyboard shortcuts

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