module

RNS::AX25

AX.25 protocol constants for amateur radio addressing.

Constants

CRC_CORRECT = Bytes[240, 184]
CTRL_UI = 3_u8
HEADER_SIZE = 16
PID_NOLAYER3 = 240_u8

Class methods

build_header(src_call : Bytes, src_ssid : Int32, dst_call : Bytes, dst_ssid : Int32) : Bytes

Build the full 16-byte AX.25 header (14 address + CTRL + PID).

Source
encode_call(callsign : Bytes, ssid : Int32, last : Bool = false) : Bytes

Encode a callsign into AX.25 address field format. Each character is shifted left 1 bit, padded with spaces to 6 chars.

Source