fork
Fork of USBDevice_STM32F103 by
USBDFU/WinUSB.h@68:c190028858f9, 2016-09-04 (annotated)
- Committer:
- devanlai
- Date:
- Sun Sep 04 09:54:47 2016 +0000
- Revision:
- 68:c190028858f9
Add Microsoft OS Descriptors 1.0 Compatible ID support
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
devanlai | 68:c190028858f9 | 1 | /* |
devanlai | 68:c190028858f9 | 2 | * Copyright 2016 Devan Lai |
devanlai | 68:c190028858f9 | 3 | * |
devanlai | 68:c190028858f9 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
devanlai | 68:c190028858f9 | 5 | * you may not use this file except in compliance with the License. |
devanlai | 68:c190028858f9 | 6 | * You may obtain a copy of the License at |
devanlai | 68:c190028858f9 | 7 | * |
devanlai | 68:c190028858f9 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
devanlai | 68:c190028858f9 | 9 | * |
devanlai | 68:c190028858f9 | 10 | * Unless required by applicable law or agreed to in writing, software |
devanlai | 68:c190028858f9 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
devanlai | 68:c190028858f9 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
devanlai | 68:c190028858f9 | 13 | * See the License for the specific language governing permissions and |
devanlai | 68:c190028858f9 | 14 | * limitations under the License. |
devanlai | 68:c190028858f9 | 15 | */ |
devanlai | 68:c190028858f9 | 16 | |
devanlai | 68:c190028858f9 | 17 | #ifndef WIN_USB_H |
devanlai | 68:c190028858f9 | 18 | #define WIN_USB_H |
devanlai | 68:c190028858f9 | 19 | /* Microsoft OS 1.0 descriptors */ |
devanlai | 68:c190028858f9 | 20 | |
devanlai | 68:c190028858f9 | 21 | /* Extended Compat ID OS Feature Descriptor Specification */ |
devanlai | 68:c190028858f9 | 22 | #define WINUSB_GET_COMPATIBLE_ID_FEATURE_DESCRIPTOR 0x04 |
devanlai | 68:c190028858f9 | 23 | #define WINUSB_GET_EXTENDED_PROPERTIES_OS_FEATURE_DESCRIPTOR 0x05 |
devanlai | 68:c190028858f9 | 24 | |
devanlai | 68:c190028858f9 | 25 | #define WINUSB_VENDOR_CODE 0x21 |
devanlai | 68:c190028858f9 | 26 | |
devanlai | 68:c190028858f9 | 27 | #define COMPATIBLE_ID_VERSION_1_0 (0x0100) |
devanlai | 68:c190028858f9 | 28 | |
devanlai | 68:c190028858f9 | 29 | #endif |