Brian Pearson
/
LPC1768OpacityMeterUSB
Opacity meter with USB interface
Diff: USBHIDProtocol.h
- Revision:
- 0:8ce24e6c4de1
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/USBHIDProtocol.h Tue Jan 05 16:44:57 2016 +0000 @@ -0,0 +1,18 @@ +#ifndef USBHIDPROTOCOL_H_ +#define USBHIDPROTOCOL_H_ +/* Command list */ +// Devices verifies with same CMD and optional data + +// System commands + #define CMD_SYS_CHECK 0x00 // Args: return version + #define CMD_SYS_RESET 0xFF // Args: bool softreset + + #define CMD_GET_RAW_OPACITY 0x10 + #define CMD_GET_FILTERED_OPACITY 0x11 + #define CMD_GET_CALIB_FACTOR 0x12 + #define CMD_SET_CALIB_FACTOR 0x13 + #define CMD_GET_FILTER_MODE 0x14 + #define CMD_SET_FILTER_MODE 0x15 + +#endif //USBHIDPROTOCOL_H_ +