fspd

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: 20 Imported by: 0

Documentation

Index

Constants

View Source
const MAXOPS = 30

Variables

View Source
var (
	Vdev [2]I2cDev

	VpageByKey map[string]uint8

	WrRegDv  = make(map[string]string)
	WrRegFn  = make(map[string]string)
	WrRegVal = make(map[string]string)
	WrRegRng = make(map[string][]string)
)

Functions

func DoI2cRpc

func DoI2cRpc() error

Types

type Command

type Command struct {
	Info
	Init func()

	Gpio 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 {
	Slot       int
	Installed  int
	Id         string
	Model      string
	Bus        int
	Addr       int
	AddrProm   int
	MuxBus     int
	MuxAddr    int
	MuxValue   int
	GpioPwrok  string
	GpioPrsntL string
	GpioPwronL string
	GpioIntL   string
	Update     [3]bool
	Delete     bool
}

func (*I2cDev) Eeprom

func (h *I2cDev) Eeprom() (string, error)

func (*I2cDev) FanSpeed

func (h *I2cDev) FanSpeed() (string, error)

func (*I2cDev) GetAdminState

func (h *I2cDev) GetAdminState() string

func (*I2cDev) Iin

func (h *I2cDev) Iin() (string, error)

func (*I2cDev) Iout

func (h *I2cDev) Iout() (string, error)

func (*I2cDev) MfgIdent

func (h *I2cDev) MfgIdent() (string, error)

func (*I2cDev) MfgModel

func (h *I2cDev) MfgModel() (string, error)

func (*I2cDev) ModeRaw

func (h *I2cDev) ModeRaw() (uint16, error)

func (*I2cDev) PMBusRev

func (h *I2cDev) PMBusRev() (uint16, error)

func (*I2cDev) Page

func (h *I2cDev) Page() (uint16, error)

func (*I2cDev) PageWr

func (h *I2cDev) PageWr(i uint16) error

func (*I2cDev) Pin

func (h *I2cDev) Pin() (string, error)

func (*I2cDev) PinRaw

func (h *I2cDev) PinRaw() (uint16, error)

func (*I2cDev) Pout

func (h *I2cDev) Pout() (string, error)

func (*I2cDev) PoutRaw

func (h *I2cDev) PoutRaw() (uint16, error)

func (*I2cDev) PsuStatus

func (h *I2cDev) PsuStatus() string

func (*I2cDev) SetAdminState

func (h *I2cDev) SetAdminState(s string)

func (*I2cDev) StatusFans

func (h *I2cDev) StatusFans() (uint16, error)

func (*I2cDev) StatusInput

func (h *I2cDev) StatusInput() (uint16, error)

func (*I2cDev) StatusIout

func (h *I2cDev) StatusIout() (uint16, error)

func (*I2cDev) StatusTemp

func (h *I2cDev) StatusTemp() (uint16, error)

func (*I2cDev) StatusVout

func (h *I2cDev) StatusVout() (uint16, error)

func (*I2cDev) StatusWord

func (h *I2cDev) StatusWord() (uint16, error)

func (*I2cDev) Temp1

func (h *I2cDev) Temp1() (string, error)

func (*I2cDev) Temp2

func (h *I2cDev) Temp2() (string, error)

func (*I2cDev) Vin

func (h *I2cDev) Vin() (string, error)

func (*I2cDev) Vout

func (h *I2cDev) Vout() (string, error)

type I2cReq

type I2cReq int

type Info

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

func (*Info) Hset

func (i *Info) Hset(args args.Hset, reply *reply.Hset) error

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