internal

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	Start uint16 // 寄存器起始地址
	End   uint16 // 寄存器结束地址
	Model uint16 // 模型索引
}

type Model

type Model struct {
	Id                 string
	Name               string            // 可选
	Quantity           uint16            // 寄存器数量
	PropertyIndexStart uint16            // 属性起始索引
	PropertyIndexEnd   uint16            // 属性结束索引
	Property           map[string]uint16 // 属性名称与索引映射
}

type Property

type Property struct {
	Description          string `json:"description"` // 可选
	RelativeStartAddress uint16 // 属性相对起始地址
	Quantity             uint16 // 寄存器数量
	Name                 string // 属性名称
	ValueType            int    // 属性值类型
	Access               int    // 属性访问权限
}

type RegisterUnit

type RegisterUnit struct {
	Id       string // 设备 ID
	Property uint16 // 属性索引
}

Jump to

Keyboard shortcuts

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