23 lines
448 B
C
23 lines
448 B
C
#ifndef __USB_PROTO_H__
|
|
#define __USB_PROTO_H__
|
|
|
|
#include <global.h>
|
|
|
|
enum usbp_pkt_type {
|
|
USBP_GET_STATUS = 0,
|
|
USBP_GET_MEASUREMENTS = 1,
|
|
};
|
|
|
|
struct __attribute__((__packed__)) usbp_status_pkt {
|
|
uint8_t packet_type;
|
|
uint8_t has_lcd;
|
|
uint8_t has_adc;
|
|
};
|
|
|
|
struct __attribute__((__packed__)) usbp_measurement_pkt {
|
|
uint8_t packet_type;
|
|
uint8_t num_channels;
|
|
uint32_t measurements[32];
|
|
};
|
|
|
|
#endif /* __USB_PROTO_H__ */
|