From 9e861bf0b9b8955e36475d39a82b59d67b3638be Mon Sep 17 00:00:00 2001 From: Leon Krieg Date: Sun, 20 Oct 2024 05:24:47 +0200 Subject: [PATCH] Add TODO regarding framing implementation --- src/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.c b/src/main.c index 6ed98fe..c40a5ee 100644 --- a/src/main.c +++ b/src/main.c @@ -12,6 +12,12 @@ #define S_SYNC 1 #define S_DATA 2 +// TODO: Framing with either bit or byte based approach: +// - Bit stuffing approach is completely data agnostic +// - Sentinel bytes with escape characters are simpler +// - https://book.systemsapproach.org/direct/framing.html +// - https://humphryscomputing.com/Notes/Networks/data.framing.html + static volatile bool txready; // Aligned with clock? static volatile int rxstate; // Current decoder state static volatile word edgecap; // Current edge capture time