pgn

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package pgn provides generated Go types for decoding and encoding NMEA 2000 PGN messages.

The types in this package are generated from PGN definition files (.pgn DSL) in the pgn/defs/ directory using the pgngen tool. Do not edit the generated files directly; modify the .pgn definitions and regenerate.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UtilityACBasicQuantities

type UtilityACBasicQuantities struct {
	LineLineVoltage    *float64 `json:"line_line_voltage"`    // V
	LineNeutralVoltage *float64 `json:"line_neutral_voltage"` // V
	ACFrequency        *float64 `json:"ac_frequency"`         // Hz
	ACRMSCurrent       *float64 `json:"ac_rms_current"`       // A
}

UtilityACBasicQuantities represents PGNs 65011/65014 — Basic AC Quantities.

func (UtilityACBasicQuantities) PGN

type UtilityACPower

type UtilityACPower struct {
	RealPower     *float64 `json:"real_power"`     // W
	ApparentPower *float64 `json:"apparent_power"` // VA
}

UtilityACPower represents PGNs 65009/65010/65013/65016 — AC Power.

func (UtilityACPower) PGN

func (UtilityACPower) PGN() uint32

Typed PGN methods for interface compliance.

Jump to

Keyboard shortcuts

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