Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
USBHIDProtocol.h
00001 #ifndef USBHIDPROTOCOL_H_ 00002 #define USBHIDPROTOCOL_H_ 00003 /* Command list */ 00004 // Devices verifies with same CMD and optional data 00005 00006 // System commands 00007 #define CMD_SYS_CHECK 0x00 // Args: return version 00008 #define CMD_SYS_RESET 0xFF // Args: bool softreset 00009 00010 // Miscellaneous 00011 #define CMD_LED_OFF 0x10 // Args, int led 1..4 00012 #define CMD_LED_ON 0x11 // Args, int led 1..4 00013 00014 // Digital input commands 00015 #define CMD_READ_DIG_INPUT 0x20 // Args, int channel, return int 00016 #define CMD_READ_ALL_DIG_INPUTS 0x21 // No args, return int 00017 00018 // Digital output commands 00019 #define CMD_READ_DIG_OUTPUT 0x22 // Args, int channel, return int 00020 #define CMD_READ_ALL_DIG_OUTPUTS 0x23 // No args, return int 00021 #define CMD_WRITE_DIG_OUTPUT 0x24 // Args, int channel 00022 #define CMD_WRITE_ALL_DIG_OUTPUTS 0x25 // Args, int output value 00023 00024 // Analog input command 00025 #define CMD_READ_ANALOG_INPUT 0x30 // Args, int channel, return int 00026 00027 // Analog output command 00028 #define CMD_WRITE_ANALOG_OUTPUT 0x31 // Args, int value 00029 00030 #endif //USBHIDPROTOCOL_H_ 00031
Generated on Sat Jul 23 2022 00:47:12 by
1.7.2