mirror of
https://github.com/markqvist/OpenModem.git
synced 2025-05-02 14:36:20 -04:00
Reworked HDLC struct
This commit is contained in:
parent
e76216875e
commit
e84705e5e1
3 changed files with 28 additions and 28 deletions
|
@ -16,10 +16,10 @@
|
|||
|
||||
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.
|
||||
uint8_t demodulatedBits; // Incoming bitstream from demodulator
|
||||
uint8_t bitIndex; // The current received bit in the current received byte
|
||||
uint8_t currentByte; // The byte we're currently receiving
|
||||
bool receiving; // Whether or not where actually receiving data (or just noise ;P)
|
||||
} Hdlc;
|
||||
|
||||
#define AFSK_RXFIFO_OVERRUN BV(0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue