|
SH2SC-EDT
Self-Healing Hardware and Software Complex for Encrypted Data Transmission
|
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. | |
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.
| const uint8_t FLAG_DAT = 0x02 |
Data frame — DataPacket carrying an encrypted note (index + duration).
Definition at line 46 of file protocol.h.
| 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().
| const uint8_t FLAG_FIN = 0x04 |
Session close — instructs RX to teardown the current session.
Definition at line 47 of file protocol.h.
| 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().
| const uint8_t FLAG_SYN = 0x01 |
Session open — HelloPacket carrying the 12-byte CSPRNG nonce.
Definition at line 45 of file protocol.h.
| 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().