ihsm-strain-gage-controller-fw/include/usb_proto.h
2023-05-08 23:26:51 +02:00

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__ */