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 ¶
func (UtilityACBasicQuantities) PGN() uint32
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.
Click to show internal directories.
Click to hide internal directories.