asyncburp: boilerplate

This commit is contained in:
2020-10-30 22:21:20 +01:00
parent 18b0fceff4
commit 36f712dc98
6 changed files with 240 additions and 5 deletions

30
specific/burpmsg.h Normal file
View File

@@ -0,0 +1,30 @@
/*
* BURPMSG.H
*/
/* ------------------------------------------------------------------- */
typedef struct {
uint32_t magic;
uint32_t serial;
uint16_t msgtype;
uint16_t szdata;
} BurpMsg;
#define BURP_MAGIC 0x98769876
/* message type */
#define BURP_RESET 1
#define BURP_SETSIZE 2
#define BURP_LASER 3
#define BURP_SCENE 4
#define BURP_COLOR 5
/* ------------------------------------------------------------------- */
int display_burp_msg(BurpMsg *header, void *data);
/* ------------------------------------------------------------------- */