struct SERIAL_TRANSFER_STATE
A console's block transfer state, exchanged with the partner each VBlank: its block number, its status and flags, and a 20-byte block.
Declared in definitions.h.
Fields
| Name | Description | |
|---|---|---|
Uint8 | active | The number of the block in payload; as receiver, the one it expects with bit 7 set to ask for a resend; 1 when a transfer starts. |
Uint8 | status | SERIAL_STATUS_RUNNING when started, plus 1 for a receive; the receiver counts blocks (status + 1, with bit 7) and sets 0 after the last. |
Uint8 | flags | The receive state, an SERIAL_RECEIVE_STATE. |
Uint8 | peerFlags | The send state, an SERIAL_SEND_STATE. |
Uint8 | payload [20] | One block of the data sent. |
Description
A console's block transfer state, exchanged with the partner each VBlank: its block number, its status and flags, and a 20-byte block.
struct SERIAL_TRANSFER_STATE
Referenced by scLobbyResetTransferState(), SerialPeerPayloads, SerialTransfer, syLinkBattleResetTransferState(), sySerialStartReceive(), sySerialStartSend() and sySerialStepBlockTransfer().
Definition at line 1923 of file definitions.h.
Fields in detail
active
Uint8 active
The number of the block in payload; as receiver, the one it expects with bit 7 set to ask for a resend; 1 when a transfer starts.
status
Uint8 status
SERIAL_STATUS_RUNNING when started, plus 1 for a
receive; the receiver counts blocks (status + 1, with
bit 7) and sets 0 after the last.
flags
Uint8 flags
The receive state, an SERIAL_RECEIVE_STATE.
peerFlags
Uint8 peerFlags
The send state, an SERIAL_SEND_STATE.
payload
Uint8 payload[20]
One block of the data sent.