summaryrefslogtreecommitdiff
path: root/xpp/xproto.h
diff options
context:
space:
mode:
Diffstat (limited to 'xpp/xproto.h')
-rw-r--r--xpp/xproto.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/xpp/xproto.h b/xpp/xproto.h
index 9f0257f..2eb6d18 100644
--- a/xpp/xproto.h
+++ b/xpp/xproto.h
@@ -40,14 +40,16 @@ struct xpacket_header {
uint16_t packet_len:10;
uint16_t reserved:1;
uint16_t is_pcm:1;
- uint16_t timeslot:4;
+ uint16_t pcmslot:4;
uint8_t opcode;
struct xpd_addr addr;
} PACKED;
-#define XPACKET_OP(p) ((p)->head.opcode)
-#define XPACKET_LEN(p) ((p)->head.packet_len)
-#define XPACKET_ADDR(p) ((p)->head.addr)
+#define XPACKET_OP(p) ((p)->head.opcode)
+#define XPACKET_LEN(p) ((p)->head.packet_len)
+#define XPACKET_IS_PCM(p) ((p)->head.is_pcm)
+#define XPACKET_PCMSLOT(p) ((p)->head.pcmslot)
+#define XPACKET_ADDR(p) ((p)->head.addr)
#define PROTO_TABLE(n) n ## _protocol_table