Xan needs a break

This commit is contained in:
XANTRONIX Development 2015-07-02 23:40:37 -05:00
parent cd7ad0e6fc
commit 118a87c255

View file

@ -26,13 +26,44 @@ typedef struct _patty_ax25_address {
unsigned int repeated :1; unsigned int repeated :1;
} patty_ax25_address; } patty_ax25_address;
typedef struct _patty_ax25_control { #define PATTY_AX25_CONTROL_INFO(c) \
unsigned int control :1; ((c & 0x01) == 0)
union { #define PATTY_AX25_CONTROL_SUPER(c) \
((c & 0x03) == 0x01)
};
} patty_ax25_control; #define PATTY_AX25_CONTROL_UNNUMBERED(c) \
((c & 0x03) == 0x03)
#define PATTY_AX25_CONTROL_SEQ_SEND(c) \
((c & 0x0e) >> 1)
#define PATTY_AX25_CONTROL_SEQ_RECV(c) \
((c & 0xe0) >> 5)
#define PATTY_AX25_CONTROL_POLL(c) \
((c & 0x10) >> 4)
typedef struct _patty_ax25_control_info {
unsigned int control :1;
unsigned int seq_send :3;
unsigned int poll :1;
unsigned int seq_recv :3;
} patty_ax25_control_info;
typedef struct _patty_ax25_control_super {
unsigned int control :2;
unsigned int function :2;
unsigned int poll :1;
unsigned int seq_recv :3;
} patty_ax25_control_super;
typedef struct _patty_ax25_control_unnumbered {
unsigned int control :2;
unsigned int modifier :2;
unsigned int poll :1;
unsigned int modifier2 :3;
} patty_ax25_control_unnumbered;
typedef struct _patty_ax25_packet { typedef struct _patty_ax25_packet {
patty_ax25_address dest; patty_ax25_address dest;