identity

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package identity owns Beacon's stable ISO 11783/NMEA 2000 appliance identity and the product/configuration information derived from it.

Index

Constants

View Source
const (
	N2KVersion               = 3000
	ExperimentalManufacturer = 2000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Appliance

type Appliance struct {
	IdentityNumber   uint32    `json:"identity_number"`
	ManufacturerCode uint16    `json:"manufacturer_code"`
	ProductCode      uint16    `json:"product_code"`
	DeviceClass      uint8     `json:"device_class"`
	DeviceFunction   uint8     `json:"device_function"`
	IndustryGroup    uint8     `json:"industry_group"`
	N2KVersion       uint16    `json:"n2k_version"`
	Certification    uint8     `json:"certification_level"`
	SerialNumber     string    `json:"serial_number"`
	DeviceNAME       uint64    `json:"device_name"`
	DeviceNameHex    string    `json:"device_name_hex"`
	CreatedAt        time.Time `json:"created_at"`
	Conformance      string    `json:"conformance"`
}

func LoadOrCreate

func LoadOrCreate(ctx context.Context, st *store.Store) (Appliance, error)

func (Appliance) Name

func (a Appliance) Name() n2k.DeviceName

func (Appliance) Options

func (a Appliance) Options(version string) []n2k.Option

Jump to

Keyboard shortcuts

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