aboutsummaryrefslogtreecommitdiffhomepage
path: root/artnet.h
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2017-06-07 23:42:51 +0200
committercbdev <cb@cbcdn.com>2017-06-07 23:42:51 +0200
commit804b5c3b3abbac7b95d79bf84fabbb78d94e2c39 (patch)
tree5a8a54ea90351720f2b0a0853f61d1c85f9a9de6 /artnet.h
parent00c273f6ce28fe267c483b20d1edf4630f5b741f (diff)
downloadmidimonster-804b5c3b3abbac7b95d79bf84fabbb78d94e2c39.tar.gz
midimonster-804b5c3b3abbac7b95d79bf84fabbb78d94e2c39.tar.bz2
midimonster-804b5c3b3abbac7b95d79bf84fabbb78d94e2c39.zip
ArtNet input
Diffstat (limited to 'artnet.h')
-rw-r--r--artnet.h16
1 files changed, 4 insertions, 12 deletions
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