n2kwire

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: 5 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 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