Brian Pearson
/
LPC1768OpacityMeterUSB
Opacity meter with USB interface
USBHIDProtocol.h@0:8ce24e6c4de1, 2016-01-05 (annotated)
- Committer:
- BPPearson
- Date:
- Tue Jan 05 16:44:57 2016 +0000
- Revision:
- 0:8ce24e6c4de1
Opacity meter with USB interface
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
BPPearson | 0:8ce24e6c4de1 | 1 | #ifndef USBHIDPROTOCOL_H_ |
BPPearson | 0:8ce24e6c4de1 | 2 | #define USBHIDPROTOCOL_H_ |
BPPearson | 0:8ce24e6c4de1 | 3 | /* Command list */ |
BPPearson | 0:8ce24e6c4de1 | 4 | // Devices verifies with same CMD and optional data |
BPPearson | 0:8ce24e6c4de1 | 5 | |
BPPearson | 0:8ce24e6c4de1 | 6 | // System commands |
BPPearson | 0:8ce24e6c4de1 | 7 | #define CMD_SYS_CHECK 0x00 // Args: return version |
BPPearson | 0:8ce24e6c4de1 | 8 | #define CMD_SYS_RESET 0xFF // Args: bool softreset |
BPPearson | 0:8ce24e6c4de1 | 9 | |
BPPearson | 0:8ce24e6c4de1 | 10 | #define CMD_GET_RAW_OPACITY 0x10 |
BPPearson | 0:8ce24e6c4de1 | 11 | #define CMD_GET_FILTERED_OPACITY 0x11 |
BPPearson | 0:8ce24e6c4de1 | 12 | #define CMD_GET_CALIB_FACTOR 0x12 |
BPPearson | 0:8ce24e6c4de1 | 13 | #define CMD_SET_CALIB_FACTOR 0x13 |
BPPearson | 0:8ce24e6c4de1 | 14 | #define CMD_GET_FILTER_MODE 0x14 |
BPPearson | 0:8ce24e6c4de1 | 15 | #define CMD_SET_FILTER_MODE 0x15 |
BPPearson | 0:8ce24e6c4de1 | 16 | |
BPPearson | 0:8ce24e6c4de1 | 17 | #endif //USBHIDPROTOCOL_H_ |
BPPearson | 0:8ce24e6c4de1 | 18 |