n2kwire

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package n2kwire reconstructs NMEA 2000 CAN frames from canonical message envelopes without changing their source address or payload.

Index

Constants

View Source
const MaxFastPacketPayload = 6 + 31*7

Variables

View Source
var ErrUnsupportedTransport = errors.New("message requires an unsupported NMEA 2000 transport")

Functions

func BuildCANID

func BuildCANID(priority uint8, pgnNum uint32, source, dest uint8) uint32

func FrameFastPacket

func FrameFastPacket(id uint32, payload []byte, sequence uint8) []can.Frame

func IsFastPacket

func IsFastPacket(pgnNum uint32, payloadLen int) bool

func IsManagementPGN

func IsManagementPGN(pgnNum uint32) bool

Types

type Fragmenter

type Fragmenter struct {
	// contains filtered or unexported fields
}

func NewFragmenter

func NewFragmenter() *Fragmenter

func (*Fragmenter) Frames

func (f *Fragmenter) Frames(e *msg.Envelope) ([]can.Frame, error)

Jump to

Keyboard shortcuts

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