From 804b5c3b3abbac7b95d79bf84fabbb78d94e2c39 Mon Sep 17 00:00:00 2001 From: cbdev Date: Wed, 7 Jun 2017 23:42:51 +0200 Subject: ArtNet input --- artnet.h | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'artnet.h') diff --git a/artnet.h b/artnet.h index fa8d16e..dc90e19 100644 --- a/artnet.h +++ b/artnet.h @@ -51,21 +51,13 @@ enum { mark = 2 }; -typedef struct /*_artnet_pkt_header*/ { +typedef struct /*_artnet_hdr*/ { uint8_t magic[8]; uint16_t opcode; uint16_t version; -} artnet_header; +} artnet_hdr; -typedef struct /*_artnet_input_pkt*/ { - uint8_t sequence; - uint8_t port; - uint8_t universe; - uint8_t net; - uint16_t length; -} artnet_input_pkt; - -typedef struct /*_artnet_output_pkt*/ { +typedef struct /*_artnet_pkt*/ { uint8_t magic[8]; uint16_t opcode; uint16_t version; @@ -75,7 +67,7 @@ typedef struct /*_artnet_output_pkt*/ { uint8_t net; uint16_t length; uint8_t data[512]; -} artnet_output_pkt; +} artnet_pkt; enum artnet_pkt_opcode { OpDmx = 0x0050 -- cgit v1.2.3