Skip to Content
The Alchemy Project

struct SERIAL_PACKET

The serial group. More…

Declared in definitions.h.

Fields

NameDescription
Uint8packetNumberSERIAL_STATE's packet number when the packet was built.
Uint8missingMaskThe consoles heard from before but not this tick (receivedMask ^ currentMask); a receiver complements it once the checksum is good.
Uint16checksumThe complement of the sum of the packet's first
Uint8payload [24]14 halfwords, taken with this field 0.
Uint8reservedTail [4]Past the 14 halfwords sent; never written.

Description

The serial group. The link cable's runtime: serial packets, registers and transfer state. A link cable packet: its packet number, the consoles not yet heard from, its checksum and a 24-byte payload.

struct SERIAL_PACKET

Referenced by sySerialPrepareSendPacket().

Definition at line 1774 of file definitions.h.

Fields in detail

packetNumber

Uint8 packetNumber

SERIAL_STATE's packet number when the packet was built.

missingMask

Uint8 missingMask

The consoles heard from before but not this tick (receivedMask ^ currentMask); a receiver complements it once the checksum is good.

checksum

Uint16 checksum

The complement of the sum of the packet's first

payload

Uint8 payload[24]

14 halfwords, taken with this field 0.

reservedTail

Uint8 reservedTail[4]

Past the 14 halfwords sent; never written.