SH2SC-EDT
Self-Healing Hardware and Software Complex for Encrypted Data Transmission
Loading...
Searching...
No Matches
C2P-ARQ Frame Flag Constants

Bitmask identifiers for the flags byte in every C2P-ARQ frame. More...

Variables

const uint8_t FLAG_SYN = 0x01
 Session open — HelloPacket carrying the 12-byte CSPRNG nonce.
 
const uint8_t FLAG_DAT = 0x02
 Data frame — DataPacket carrying an encrypted note (index + duration).
 
const uint8_t FLAG_FIN = 0x04
 Session close — instructs RX to teardown the current session.
 
const uint8_t FLAG_SYN = 0x01
 Session open — HelloPacket carrying the 12-byte CSPRNG nonce.
 
const uint8_t FLAG_DAT = 0x02
 Data frame — DataPacket carrying an encrypted note (index + duration).
 
const uint8_t FLAG_FIN = 0x04
 Session close — instructs RX to teardown the current session.
 

Detailed Description

Bitmask identifiers for the flags byte in every C2P-ARQ frame.

The first byte of every frame is a bitmask rather than a fixed type ID. Using a bitmask allows future frames to combine roles and lets the parser use bitwise-AND for matching, which is more resilient to single-bit noise corruption than strict equality comparison.

Variable Documentation

◆ FLAG_DAT [1/2]

const uint8_t FLAG_DAT = 0x02

Data frame — DataPacket carrying an encrypted note (index + duration).

Definition at line 46 of file protocol.h.

◆ FLAG_DAT [2/2]

const uint8_t FLAG_DAT = 0x02

Data frame — DataPacket carrying an encrypted note (index + duration).

Definition at line 46 of file protocol.h.

Referenced by processReceivedByte(), and sendPacket().

◆ FLAG_FIN [1/2]

const uint8_t FLAG_FIN = 0x04

Session close — instructs RX to teardown the current session.

Definition at line 47 of file protocol.h.

◆ FLAG_FIN [2/2]

const uint8_t FLAG_FIN = 0x04

Session close — instructs RX to teardown the current session.

Definition at line 47 of file protocol.h.

Referenced by processFinPacket(), processReceivedByte(), and sendFinPacket().

◆ FLAG_SYN [1/2]

const uint8_t FLAG_SYN = 0x01

Session open — HelloPacket carrying the 12-byte CSPRNG nonce.

Definition at line 45 of file protocol.h.

◆ FLAG_SYN [2/2]

const uint8_t FLAG_SYN = 0x01

Session open — HelloPacket carrying the 12-byte CSPRNG nonce.

Definition at line 45 of file protocol.h.

Referenced by processReceivedByte(), and sendHelloPacket().