```C union { struct { uint8_t buttons[7]; uint8_t reserved; int16_t axis[4]; // range 0..

union {
  struct {
   uint8_t buttons[7];
   uint8_t reserved;
   int16_t axis[4]; // range 0..4096, center at 2048
  } __attribute((packed));
  uint8_t data[16];
 } ;
Was this page helpful?