|
TinyPPP
PPP networking over any Arduino Stream
|
HDLC frame decoder (RFC 1662). More...
#include <HDLC.h>
Public Member Functions | |
| bool | add (uint8_t b) |
| Feed one byte: returns true when a valid frame is available. | |
| uint32_t | fcsErrors () const |
| Number of frames dropped because of a wrong FCS. | |
| uint8_t * | frame () |
| Frame content without FCS (address/control included if sent) | |
| size_t | frameLen () const |
| Length of the frame returned by frame() | |
HDLC frame decoder (RFC 1662).
Reassembles frames from a byte stream. After a complete frame with a valid FCS has been received, add() returns true and frame()/frameLen() give the content (address/control removed when present, FCS removed).
Feed one byte: returns true when a valid frame is available.
Number of frames dropped because of a wrong FCS.
Frame content without FCS (address/control included if sent)