just4trionic

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: MIT Imports: 7 Imported by: ? 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 just4trionic drives the Just4Trionic STM32F103C8T6 CAN adapter over its virtual COM port (115200 baud). Importing the package registers the "Just4Trionic" adapter.

Wire protocol (Lawicel-flavoured ASCII, CR terminated):

ESC         leave/reset mode (sent on open and close)
O / C       open / close the CAN channel
Sn / s2     set bit-rate (s2 = 615.384 kbit/s for Trionic 5)
Mxxxxxxxx   acceptance code, mxxxxxxxx acceptance mask
t<id><l><data>  transmit: unpadded hex id, ascii DLC, data padded to 8 bytes

Received frames arrive as LF-terminated lines "wiiil dd..": 'w', 3 hex id chars, ascii DLC and the data in hex.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg gocan.Config) (gocan.Adapter, error)

Types

type Just4Trionic

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

func (*Just4Trionic) Close

func (a *Just4Trionic) Close() error

func (*Just4Trionic) Open

func (a *Just4Trionic) Open(ctx context.Context, bus *gocan.Bus) error

func (*Just4Trionic) Send

func (a *Just4Trionic) Send(ctx context.Context, f gocan.Frame) error

Send encodes and writes one frame; the write completing is the confirmation (the firmware has no TX ack).

func (*Just4Trionic) SetFilter

func (a *Just4Trionic) SetFilter(filters []uint32) error

SetFilter reprograms the acceptance filter; the channel must be closed while setting M/m, so bounce C -> M -> m -> O.

Jump to

Keyboard shortcuts

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