+/**
+ * HDLC (High-Level Data Link Control) context.
+ * Maybe to be moved in a separate HDLC module one day.
+ */
+typedef struct Hdlc
+{
+ uint8_t demod_bits; ///< Bitstream from the demodulator.
+ uint8_t bit_idx; ///< Current received bit.
+ uint8_t currchar; ///< Current received character.
+ bool rxstart; ///< True if an HDLC_FLAG char has been found in the bitstream.
+} Hdlc;
+
+/**
+ * RX FIFO buffer full error.
+ */
+#define AFSK_RXFIFO_OVERRUN BV(0)