nct7802yd

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

Documentation

Index

Constants

View Source
const MAXOPS = 30

Variables

View Source
var (
	SlotId         int
	MaxFanTrays    int
	MaxFansPerTray int

	Vdev 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 {
	Bus      int
	Addr     int
	MuxBus   int
	MuxAddr  int
	MuxValue int
}

func (*I2cDev) CheckHostTemp

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

func (*I2cDev) CheckQsfpTemp

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

func (*I2cDev) FanInit

func (h *I2cDev) FanInit() error

func (*I2cDev) FrontTemp

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

func (*I2cDev) GetFanDuty

func (h *I2cDev) GetFanDuty() (uint8, error)

func (*I2cDev) GetFanSpeed

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

func (*I2cDev) GetHostTempTarget

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

func (*I2cDev) GetHwmTarget

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

func (*I2cDev) GetQsfpTempTarget

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

func (*I2cDev) RearTemp

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

func (*I2cDev) SetFanControl

func (h *I2cDev) SetFanControl(w string) error

func (*I2cDev) SetFanDuty

func (h *I2cDev) SetFanDuty(d uint8) error

func (*I2cDev) SetFanSpeed

func (h *I2cDev) SetFanSpeed(w string, l bool) error

func (*I2cDev) SetHwmTarget

func (h *I2cDev) SetHwmTarget(t string) error

func (*I2cDev) SetLastSpeed

func (h *I2cDev) SetLastSpeed() 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