models

package
v0.0.0-...-fc9913b Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	XMLName     xml.Name `xml:"command"`
	Item        string   `xml:"item,omitempty"`
	Description string   `xml:"description,attr,omitempty"`
	Shortcut    string   `xml:"shortcut,attr,omitempty"`
	Offset      int      `xml:"offset,attr,omitempty"`
	Size        int      `xml:"size,attr,omitempty"`
}

type Data

type Data struct {
	XMLName   xml.Name `xml:"data"`
	Enum      []Enum   `xml:"enum,omitempty"`
	Value     []Value  `xml:"value,omitempty"`
	Status    []Status `xml:"status,omitempty"`
	Command   int      `xml:"command,omitempty"`
	Bits      int      `xml:"bits,attr,omitempty"`
	Direction string   `xml:"direction,attr,omitempty"`
}

type EEP

type EEP struct {
	Rorg string `json:"rorg"`
	Func string `json:"func"`
	Type string `json:"type"`
}

type Enum

type Enum struct {
	XMLName     xml.Name    `xml:"enum"`
	Item        []Item      `xml:"item,omitempty"`
	RangeItem   []RangeItem `xml:"rangeitem,omitempty"`
	Description string      `xml:"description,attr,omitempty"`
	Shortcut    string      `xml:"shortcut,attr,omitempty"`
	Offset      int         `xml:"offset,attr,omitempty"`
	Size        int         `xml:"size,attr,omitempty"`
}

type Item

type Item struct {
	XMLName     xml.Name `xml:"item"`
	Description string   `xml:"description,attr,omitempty"`
	Value       int      `xml:"value,attr,omitempty"`
}

type Profile

type Profile struct {
	XMLName     xml.Name  `xml:"profile"`
	Data        []Data    `xml:"data,omitempty"`
	Command     []Command `xml:"command,omitempty"`
	Description string    `xml:"description,attr,omitempty"`
	Value       string    `xml:"value,attr,omitempty"`
	Type        string    `xml:"type,attr,omitempty"`
}

type Profiles

type Profiles struct {
	XMLName     xml.Name  `xml:"profiles"`
	Profiles    []Profile `xml:"profile,omitempty"`
	Func        string    `xml:"func,attr,omitempty"`
	Description string    `xml:"description,attr,omitempty"`
}

type Range

type Range struct {
	XMLName xml.Name `xml:"range"`
	Min     float64  `xml:"min,omitempty"`
	Max     float64  `xml:"max,omitempty"`
}

type RangeItem

type RangeItem struct {
	XMLName     xml.Name `xml:"rangeitem"`
	Description string   `xml:"description,attr,omitempty"`
	Start       int      `xml:"start,attr"`
	End         int      `xml:"end,attr"`
}

type Scale

type Scale struct {
	XMLName xml.Name `xml:"scale"`
	Min     float64  `xml:"min,omitempty"`
	Max     float64  `xml:"max,omitempty"`
}

type Sensor

type Sensor struct {
	AssignedEEP       EEP                   `json:"assigned_eep"`
	TelegramType      string                `json:"telegram_type"`
	SensorDescription string                `json:"sensor_description"`
	Data              map[string]SensorData `json:"data"`
}

type SensorData

type SensorData struct {
	Shortcut    string      `json:"shortcut"`
	Value       interface{} `json:"value"`
	Unit        interface{} `json:"unit"`
	Description string      `json:"description"`
}

type Status

type Status struct {
	XMLName     xml.Name `xml:"status"`
	Description string   `xml:"description,attr,omitempty"`
	Shortcut    string   `xml:"shortcut,attr,omitempty"`
	Offset      int      `xml:"offset,attr,omitempty"`
	Size        int      `xml:"size,attr,omitempty"`
}

type Telegram

type Telegram struct {
	XMLName     xml.Name   `xml:"telegram"`
	Profiles    []Profiles `xml:"profiles,omitempty"`
	Rorg        string     `xml:"rorg,attr,omitempty"`
	Type        string     `xml:"type,attr,omitempty"`
	Description string     `xml:"description,attr,omitempty"`
}

type Telegrams

type Telegrams struct {
	XMLName      xml.Name   `xml:"telegrams"`
	Telegrams    []Telegram `xml:"telegram"`
	Version      string     `xml:"version,attr,omitempty"`
	MajorVersion string     `xml:"major_version,attr,omitempty"`
	MinorVersion string     `xml:"minor_version,attr,omitempty"`
	Revision     string     `xml:"revision,attr,omitempty"`
}

type Value

type Value struct {
	XMLName     xml.Name `xml:"value"`
	Range       Range    `xml:"range,omitempty"`
	Scale       Scale    `xml:"scale,omitempty"`
	Description string   `xml:"description,attr,omitempty"`
	Shortcut    string   `xml:"shortcut,attr,omitempty"`
	Offset      int      `xml:"offset,attr,omitempty"`
	Size        int      `xml:"size,attr,omitempty"`
	Unit        string   `xml:"unit,attr,omitempty"`
}

Jump to

Keyboard shortcuts

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