Skip to main content

Packet

Type Alias Packet 

Source
pub type Packet = PacketBuilder;
Expand description

Re-export of the high-level PacketBuilder under a friendlier name.

Aliased Type§

pub struct Packet {
    pub addr: Address,
    pub ctrl: ControlByte,
    pub scb: Option<Scb>,
    pub code: u8,
    pub data: Vec<u8>,
}

Fields§

§addr: Address

Address byte (with reply flag if PD → ACU).

§ctrl: ControlByte

CTRL byte (SQN + flags).

§scb: Option<Scb>

Security Control Block (None if CTRL.HAS_SCB is clear).

§code: u8

Command or reply code byte.

§data: Vec<u8>

DATA payload (already encrypted, if SCS_17/18).