jsax25
    Preparing search index...

    Class IFrame

    Information Frame

    Hierarchy

    • OutgoingAbstract
      • IFrame
    Index

    Constructors

    Properties

    destinationReservedBitOne: boolean

    Reserved bit that may be used in an agreed-upon manner in individual networks.

    destinationReservedBitTwo: boolean

    Reserved bit that may be used in an agreed-upon manner in individual networks.

    sourceReservedBitOne: boolean

    Reserved bit that may be used in an agreed-upon manner in individual networks.

    sourceReservedBitTwo: boolean

    Reserved bit that may be used in an agreed-upon manner in individual networks.

    subtype: FrameSubtype

    The specific type of frame being represented (UI, I, SABM, etc.)

    the string name of the frame type.

    type: "information" | "supervisory" | "unnumbered"

    Whether the frame is an unnumbered, supervisory, or information frame.

    Accessors

    • get commandOrResponse(): "command" | "response"

      Whether the frame is a command frame or a response frame if it is using the latest version of the AX.25 protocol. If not, then it is using the legacy protocol.

      Returns "command" | "response"

      string 'command', 'response', or 'legacy'

    • set commandOrResponse(commandOrResponse: "command" | "response"): void

      Whether the frame is a command frame or a response frame if it is using the latest version of the AX.25 protocol. If not, then it is using the legacy protocol.

      Parameters

      • commandOrResponse: "command" | "response"

      Returns void

      string 'command', 'response', or 'legacy'

    • get destinationCallsign(): string

      The destination station's amateur radio callsign. Valid callsigns are 1 to 6 characters (inclusive), all uppercase.

      Returns string

      InvalidCallsignError on frames where this is mutable and an attempt was made to set an invalid callsign.

    • set destinationCallsign(callsign: string): void

      The destination station's amateur radio callsign. Valid callsigns are 1 to 6 characters (inclusive), all uppercase.

      Parameters

      • callsign: string

      Returns void

      InvalidCallsignError on frames where this is mutable and an attempt was made to set an invalid callsign.

    • get destinationSsid(): number

      The destination station's SSID. Valid SSIDs are integers 0 to 15 (inclusive).

      Returns number

      InvalidSsidError on frames where this is mutable and an attempt was made to set an invalid SSID.

    • set destinationSsid(ssid: number): void

      The destination station's SSID. Valid SSIDs are integers 0 to 15 (inclusive).

      Parameters

      • ssid: number

      Returns void

      InvalidSsidError on frames where this is mutable and an attempt was made to set an invalid SSID.

    • get payload(): any

      The data or "body" being carried by the frame.

      Non-objects are stringified then encoded using TextEncoder. Objects are first run though JSON.stringify(), then encoded using TextEncoder. Exceptions are Uint8Array and Uint8ClampedArray objects, which are pushed directly to the payload without transformation. Use this format to transmit raw binary data.

      Returns any

      TypeError if attempting to set a symbol or a Promise as a payload. Symbols are not serializable and promises should be resolved to a value before setting them as the payload.

    • set payload(payload: any): void

      The data or "body" being carried by the frame.

      Non-objects are stringified then encoded using TextEncoder. Objects are first run though JSON.stringify(), then encoded using TextEncoder. Exceptions are Uint8Array and Uint8ClampedArray objects, which are pushed directly to the payload without transformation. Use this format to transmit raw binary data.

      Parameters

      • payload: any

      Returns void

      TypeError if attempting to set a symbol or a Promise as a payload. Symbols are not serializable and promises should be resolved to a value before setting them as the payload.

    • get repeaters(): Repeater[]

      The repeaters/digipeaters that the frame is addressed to travel through.

      Returns Repeater[]

      an array of Repeater objects

      InvalidCallsignError and/or InvalidSsidError on frames where this is mutable and an attempt was made to set a repeater with an invalid callsign or SSID.

    • set repeaters(repeaters: Repeater[]): void

      The repeaters/digipeaters that the frame is addressed to travel through.

      Parameters

      Returns void

      an array of Repeater objects

      InvalidCallsignError and/or InvalidSsidError on frames where this is mutable and an attempt was made to set a repeater with an invalid callsign or SSID.

    • get sourceCallsign(): string

      The sending station's amateur radio callsign. Valid callsigns are 1 to 6 characters (inclusive), all uppercase.

      Returns string

      InvalidCallsignError on frames where this is mutable and an attempt was made to set an invalid callsign.

    • set sourceCallsign(callsign: string): void

      The sending station's amateur radio callsign. Valid callsigns are 1 to 6 characters (inclusive), all uppercase.

      Parameters

      • callsign: string

      Returns void

      InvalidCallsignError on frames where this is mutable and an attempt was made to set an invalid callsign.

    • get sourceSsid(): number

      The sending station's SSID. Valid SSIDs are integers 0 to 15 (inclusive).

      Returns number

      InvalidSsidError on frames where this is mutable and an attempt was made to set an invalid SSID.

    • set sourceSsid(ssid: number): void

      The sending station's SSID. Valid SSIDs are integers 0 to 15 (inclusive).

      Parameters

      • ssid: number

      Returns void

      InvalidSsidError on frames where this is mutable and an attempt was made to set an invalid SSID.

    Methods

    • Get the frame encoded for use with a KISS connection. This can be written to a Socket, SerialPort, etc.

      Returns Uint8Array

      a Uint8Array suitable for passing to Duplex.write().

    • Returns a JSON representation of the frame.

      Returns {
          commandOrResponse: "command" | "response" | "legacy";
          destinationCallsign: string;
          destinationCommandBit: boolean;
          destinationReservedBitOne: boolean;
          destinationReservedBitTwo: boolean;
          destinationSsid: number;
          isCommand: boolean;
          isLegacy: boolean;
          isResponse: boolean;
          modulo: 8 | 128;
          payload: any;
          pid: number | undefined;
          pollOrFinal: boolean;
          receivedSequence: number | undefined;
          repeaters: Repeater[];
          sendSequence: number | undefined;
          sourceCallsign: string;
          sourceCommandBit: boolean;
          sourceReservedBitOne: boolean;
          sourceReservedBitTwo: boolean;
          sourceSsid: number;
          subtype: FrameSubtype;
          type: "information" | "supervisory" | "unnumbered";
      }

    • Returns a string representation of the frame.

      Returns string

    • Parameters

      • callsign: string
      • commandOrHasBeenRepeated: boolean
      • reservedBitOne: boolean
      • reservedBitTwo: boolean
      • ssid: number
      • finalAddress: boolean

      Returns number[]

    • Parameters

      • modulo: 8 | 128
      • bitsOne: string | number
      • pollFinal: boolean
      • bitsTwo: string | number

      Returns number | number[]