diag

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

Documentation

Index

Constants

View Source
const (
	Name    = "diag"
	Apropos = "run diagnostics"
	Usage   = `
	diag [-debug] | prom [-w | -d | -x86] \
		[TYPE | "crc" | "length" | "onie" | "copy" ] [VALUE]`
	Man = `` /* 796-byte string literal not displayed */

)
View Source
const (
	MAXOPS = 30

	TOR1 uint8 = 0x00
	CH1  uint8 = 0x01

	CH1MC uint8 = 0x04
	CH1LC uint8 = 0x05
)

Variables

This section is empty.

Functions

func CheckPassB

func CheckPassB(r bool, state bool) string

func CheckPassF

func CheckPassF(r float64, min float64, max float64) string

return true if test result r is within min and max limits

func CheckPassU

func CheckPassU(r uint16, min uint16, max uint16) string

func DoI2cRpc

func DoI2cRpc() error

Types

type Command

type Command struct{}

func New

func New() Command

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 Diag

type Diag func() error

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