vedirect

package module
v0.0.0-...-54bc4fa Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: GPL-3.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VEDirectDevice

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

func NewVEDirectDevice

func NewVEDirectDevice(portname string) (*VEDirectDevice, error)

func (VEDirectDevice) GetBlock

func (vedev VEDirectDevice) GetBlock() VedirectBlock

type VedirectBlock

type VedirectBlock struct {
	Label map[string]VedirectField `json:"label"`
}

func (VedirectBlock) GetLabels

func (veblock VedirectBlock) GetLabels() []string

func (VedirectBlock) ToJson

func (veblock VedirectBlock) ToJson() []byte

type VedirectField

type VedirectField struct {
	Unit        string `json:"unit"`
	Description string `json:"description"`
	Value       any    `json:"value"`
}

func (VedirectField) AsFloat

func (vefield VedirectField) AsFloat() float64

Jump to

Keyboard shortcuts

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