9 #define MAXREPORTLEN 256
10 #define MAXREPORTS 256
12 typedef struct { int len; uint8_t *msg; } Last;
13 typedef struct { Last lasts[MAXREPORTS]; } LastReports;
14 typedef void ProcessReport(const uint8_t *msg, int msglen, const uint8_t *last);
16 extern const char *const descriptor;
17 extern ProcessReport *const report_processors[MAXREPORTS];
27 int pos, rshift, sign; /* mask is applied before rshift */
31 void reportbits(const uint8_t msg[], const uint8_t last[],
32 int len, const KeyBit bits[]);
34 void reportlocs(const uint8_t msg[], const uint8_t last[],
35 int len, const ValLoc locs[]);
37 void dispatch(LastReports *lasts, const char *message_prefix,
38 ProcessReport *const report_processors[MAXREPORTS],
39 const uint8_t *msg, int l);
41 #endif /*HIDRAWCONV_H*/