variable

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LenType = map[int]string{
	1: "uint8_t",
	2: "uint16_t",
	4: "uint32_t",
	8: "uint64_t",
}
View Source
var TypeLen = map[string]int{
	"uint8_t":  1,
	"uint16_t": 2,
	"uint32_t": 4,
	"uint64_t": 8,
	"int8_t":   1,
	"int16_t":  2,
	"int32_t":  4,
	"int64_t":  8,
	"int":      4,
	"float":    4,
	"double":   8,
}

Functions

func AnyToBytes

func AnyToBytes(i interface{}) []byte

func BytesToFloat32

func BytesToFloat32(bytes []byte) float32

func BytesToFloat64

func BytesToFloat64(bytes []byte) float64

func BytesToInt16

func BytesToInt16(i []byte) int16

func BytesToInt32

func BytesToInt32(i []byte) int32

func BytesToInt64

func BytesToInt64(i []byte) int64

func BytesToInt8

func BytesToInt8(i []byte) int8

func BytesToUint16

func BytesToUint16(i []byte) uint16

func BytesToUint32

func BytesToUint32(i []byte) uint32

func BytesToUint64

func BytesToUint64(i []byte) uint64

func BytesToUint8

func BytesToUint8(i []byte) uint8

func Load

func Load()

func Refresh

func Refresh()

func SpecToBytes

func SpecToBytes(vType string, i float64) []byte

func UpdateVariables added in v0.9.7

func UpdateVariables()

Types

type ListChartT

type ListChartT []ToChartT

type ListProjectT

type ListProjectT map[string]ToProjectT
var ToProj ListProjectT = ListProjectT{}

type ListT

type ListT map[uint32]T
var ToModi ListT = ListT{}
var ToRead ListT = ListT{}

type T

type T struct {
	Board      uint8
	Name       string
	Type       string
	Addr       uint32
	Data       float64
	Tick       uint32
	Inputcolor string
	SignalGain float64
	SignalBias float64
}

type ToChartT

type ToChartT struct {
	Board uint8
	Name  string
	Data  float64
	Tick  uint32
}

type ToProjectT

type ToProjectT struct {
	Addr string
	Name string
	Type string
}

Jump to

Keyboard shortcuts

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