qsfpeventsd

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

Documentation

Index

Constants

View Source
const (
	QSFP_RESET_BIT  = 1 << 2
	QSFP_LPMODE_BIT = 1 << 3
	MAX_IRQ_EVENTS  = 32
)
View Source
const MAXOPS = 30

Variables

View Source
var (
	VdevEp I2cDev // qsfp internal eeprom
	VdevIo I2cDev // qsfp io lines via pca9534

	Slotid int // temporary

	PortIsCopper  bool
	New_present_n uint8
	Old_present_n uint8
)

Functions

func ChannelAlarms

func ChannelAlarms(t [3]byte, w [6]byte) [8]string

func DoI2cRpc

func DoI2cRpc() error

func FreeSideAlarms

func FreeSideAlarms(t [3]byte) string

func LanePower

func LanePower(t [8]byte) [4]string

func LanesTxBias

func LanesTxBias(t [8]byte) [4]string

func Power

func Power(t uint16) string

func Temp

func Temp(t uint16) string

func TxBias

func TxBias(t uint16) string

func Voltage

func Voltage(t uint16) string

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) Compliance

func (h *I2cDev) Compliance() string

func (*I2cDev) DataReady

func (h *I2cDev) DataReady() bool

func (*I2cDev) DynamicBlocks

func (h *I2cDev) DynamicBlocks(port int)

func (*I2cDev) PN

func (h *I2cDev) PN() string

func (*I2cDev) QsfpInit

func (h *I2cDev) QsfpInit(out0 byte, pol0 byte, conf0 byte) error

func (*I2cDev) QsfpStatus

func (h *I2cDev) QsfpStatus(port uint8) string

func (*I2cDev) ReadMuxInputReg

func (h *I2cDev) ReadMuxInputReg() uint8

func (*I2cDev) SN

func (h *I2cDev) SN() string

func (*I2cDev) StaticBlocks

func (h *I2cDev) StaticBlocks(port int)

func (*I2cDev) Vendor

func (h *I2cDev) Vendor() string

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