@@ -30,24 +30,17 @@ void refresh_can_tx_slots_available(void);
3030
3131// **** supporting defines ****
3232#define USB_REQ_GET_STATUS 0x00
33- #define USB_REQ_CLEAR_FEATURE 0x01
34- #define USB_REQ_SET_FEATURE 0x03
3533#define USB_REQ_SET_ADDRESS 0x05
3634#define USB_REQ_GET_DESCRIPTOR 0x06
37- #define USB_REQ_SET_DESCRIPTOR 0x07
38- #define USB_REQ_GET_CONFIGURATION 0x08
3935#define USB_REQ_SET_CONFIGURATION 0x09
40- #define USB_REQ_GET_INTERFACE 0x0A
4136#define USB_REQ_SET_INTERFACE 0x0B
42- #define USB_REQ_SYNCH_FRAME 0x0C
4337
4438#define USB_DESC_TYPE_DEVICE 0x01
4539#define USB_DESC_TYPE_CONFIGURATION 0x02
4640#define USB_DESC_TYPE_STRING 0x03
4741#define USB_DESC_TYPE_INTERFACE 0x04
4842#define USB_DESC_TYPE_ENDPOINT 0x05
4943#define USB_DESC_TYPE_DEVICE_QUALIFIER 0x06
50- #define USB_DESC_TYPE_OTHER_SPEED_CONFIGURATION 0x07
5144#define USB_DESC_TYPE_BINARY_OBJECT_STORE 0x0f
5245
5346// offsets for configuration strings
@@ -56,22 +49,12 @@ void refresh_can_tx_slots_available(void);
5649#define STRING_OFFSET_IPRODUCT 0x02
5750#define STRING_OFFSET_ISERIAL 0x03
5851#define STRING_OFFSET_ICONFIGURATION 0x04
59- #define STRING_OFFSET_IINTERFACE 0x05
60-
61- // WebUSB requests
62- #define WEBUSB_REQ_GET_URL 0x02
63-
64- // WebUSB types
65- #define WEBUSB_DESC_TYPE_URL 0x03
66- #define WEBUSB_URL_SCHEME_HTTPS 0x01
67- #define WEBUSB_URL_SCHEME_HTTP 0x00
6852
6953// WinUSB requests
7054#define WINUSB_REQ_GET_COMPATID_DESCRIPTOR 0x04
7155#define WINUSB_REQ_GET_EXT_PROPS_OS 0x05
7256#define WINUSB_REQ_GET_DESCRIPTOR 0x07
7357
74- #define STS_GOUT_NAK 1
7558#define STS_DATA_UPDT 2
7659#define STS_XFER_COMP 3
7760#define STS_SETUP_COMP 4
0 commit comments