diff options
Diffstat (limited to 'host/net.h')
-rw-r--r-- | host/net.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/host/net.h b/host/net.h new file mode 100644 index 0000000..d8ec949 --- /dev/null +++ b/host/net.h @@ -0,0 +1,18 @@ +#ifndef __NET_H__ +#define __NET_H__ + +#include "config.h" + +typedef struct { + uint8_t r, g, b; +} rgb_t; + +typedef struct { + uint32_t magic, seq; + uint16_t width, height; + rgb_t data[DISPLAY_WIDTH*DISPLAY_HEIGHT]; +} ml_packet_t; + +#define UDP_BUF_SIZE sizeof(ml_packet_t) + +#endif//__NET_H__ |