Simplify U frame test macros
This commit is contained in:
parent
4d397f76f1
commit
aa5fda4424
1 changed files with 6 additions and 6 deletions
|
@ -47,22 +47,22 @@
|
||||||
((c & 0xe0) >> 5)
|
((c & 0xe0) >> 5)
|
||||||
|
|
||||||
#define PATTY_AX25_CONTROL_UNNUMBERED_SABM(c) \
|
#define PATTY_AX25_CONTROL_UNNUMBERED_SABM(c) \
|
||||||
(((c & 0xe0) == 0x20) && ((c & 0x0f) == 0x0f))
|
((c & 0xef) == 0x2f)
|
||||||
|
|
||||||
#define PATTY_AX25_CONTROL_UNNUMBERED_DISC(c) \
|
#define PATTY_AX25_CONTROL_UNNUMBERED_DISC(c) \
|
||||||
(((c & 0xe0) == 0x40) && ((c & 0x0f) == 0x03))
|
((c & 0xef) == 0x43)
|
||||||
|
|
||||||
#define PATTY_AX25_CONTROL_UNNUMBERED_DM(c) \
|
#define PATTY_AX25_CONTROL_UNNUMBERED_DM(c) \
|
||||||
(((c & 0xe0) == 0x00) && ((c & 0x0f) == 0x0f))
|
((c & 0xef) == 0x0f)
|
||||||
|
|
||||||
#define PATTY_AX25_CONTROL_UNNUMBERED_UA(c) \
|
#define PATTY_AX25_CONTROL_UNNUMBERED_UA(c) \
|
||||||
(((c & 0xe0) == 0x60) && ((c & 0x0f) == 0x03))
|
((c & 0xef) == 0x63)
|
||||||
|
|
||||||
#define PATTY_AX25_CONTROL_UNNUMBERED_FRMR(c) \
|
#define PATTY_AX25_CONTROL_UNNUMBERED_FRMR(c) \
|
||||||
(((c & 0xe0) == 0x40) && ((c & 0x0f) == 0x07))
|
((c & 0xef) == 0x47)
|
||||||
|
|
||||||
#define PATTY_AX25_CONTROL_UNNUMBERED_INFO(c) \
|
#define PATTY_AX25_CONTROL_UNNUMBERED_INFO(c) \
|
||||||
(((c & 0xe0) == 0x00) && ((c & 0x0f) == 0x03))
|
((c & 0xef) == 0x03)
|
||||||
|
|
||||||
#define PATTY_AX25_CONTROL_SEQ_SEND(c) \
|
#define PATTY_AX25_CONTROL_SEQ_SEND(c) \
|
||||||
((c & 0x0e) >> 1)
|
((c & 0x0e) >> 1)
|
||||||
|
|
Loading…
Add table
Reference in a new issue