identity

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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