SDRAngel
4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
|
#include <hdlc.h>
Public Member Functions | |
hdlc_dec (int _minframesize, int _maxframesize, bool _invert) | |
void | reset () |
void | begin_frame () |
u8 * | decode (u8 **ppin, int count, int *pdatasize, int *hdlc_errors, int *fcs_errors) |
Public Attributes | |
bool | debug |
Private Member Functions | |
void | crc16_byte (u8 data) |
Private Attributes | |
int | minframesize |
int | maxframesize |
u8 | invertmask |
u8 * | framebuf |
u8 | shiftreg |
bool | inframe |
u8 | byte_out |
int | nbits_out |
int | framesize |
u16 | crc16 |
Static Private Attributes | |
static const u16 | crc16_init = 0xffff |
static const u16 | crc16_poly = 0x8408 |
static const u16 | crc16_check = 0x0f47 |
|
inline |
Definition at line 30 of file hdlc.h.
References reset().
Referenced by leansdr::hdlc_sync::hdlc_sync().
|
inline |
|
inlineprivate |
Definition at line 180 of file hdlc.h.
References crc16_poly.
Referenced by decode().
|
inline |
Definition at line 59 of file hdlc.h.
References begin_frame(), byte_out, crc16, crc16_byte(), crc16_check, debug, framebuf, framesize, inframe, invertmask, maxframesize, minframesize, nbits_out, and shiftreg.
|
inline |
Definition at line 41 of file hdlc.h.
References inframe, and shiftreg.
Referenced by hdlc_dec().
|
private |
|
private |
Definition at line 174 of file hdlc.h.
Referenced by begin_frame(), and decode().
|
staticprivate |
|
staticprivate |
Definition at line 176 of file hdlc.h.
Referenced by begin_frame().
|
staticprivate |
Definition at line 177 of file hdlc.h.
Referenced by crc16_byte().
|
private |
|
private |
Definition at line 173 of file hdlc.h.
Referenced by begin_frame(), and decode().
|
private |
|
private |
|
private |
Definition at line 165 of file hdlc.h.
Referenced by decode(), leansdr::hdlc_sync::hdlc_sync(), and leansdr::hdlc_sync::run().
|
private |
Definition at line 165 of file hdlc.h.
Referenced by decode(), and leansdr::hdlc_sync::hdlc_sync().
|
private |
|
private |