Zephyr API Documentation  3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
msos_desc.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
13#ifndef ZEPHYR_INCLUDE_USB_MSOS_DESC_H
14#define ZEPHYR_INCLUDE_USB_MSOS_DESC_H
15
16#include <stdint.h>
17
21};
22
33};
34
44};
45
46/* Microsoft OS 2.0 descriptor set header */
52} __packed;
53
54/* Microsoft OS 2.0 configuration subset header
55 * This header is for composite devices with multiple configurations.
56 */
63} __packed;
64
65/* Microsoft OS 2.0 function subset header
66 * Note: This must be used if your device has multiple interfaces and cannot be used otherwise.
67 */
74} __packed;
75
76/* Microsoft OS 2.0 compatible ID descriptor */
82} __packed;
83
84/* Microsoft OS 2.0 Registry property descriptor: DeviceInterfaceGUIDs */
93} __packed;
94
95/* DeviceInterfaceGUIDs */
96#define DEVICE_INTERFACE_GUIDS_PROPERTY_NAME \
97 'D', 0x00, 'e', 0x00, 'v', 0x00, 'i', 0x00, 'c', 0x00, 'e', 0x00, \
98 'I', 0x00, 'n', 0x00, 't', 0x00, 'e', 0x00, 'r', 0x00, 'f', 0x00, \
99 'a', 0x00, 'c', 0x00, 'e', 0x00, 'G', 0x00, 'U', 0x00, 'I', 0x00, \
100 'D', 0x00, 's', 0x00, 0x00, 0x00
101
102#endif /* ZEPHYR_INCLUDE_USB_MSOS_DESC_H */
msosv2_property_data_type
Definition: msos_desc.h:35
@ MS_OS_20_PROPERTY_DATA_REG_SZ
Definition: msos_desc.h:37
@ MS_OS_20_PROPERTY_DATA_REG_LINK
Definition: msos_desc.h:42
@ MS_OS_20_PROPERTY_DATA_REG_MULTI_SZ
Definition: msos_desc.h:43
@ MS_OS_20_PROPERTY_DATA_REG_EXPAND_SZ
Definition: msos_desc.h:38
@ MS_OS_20_PROPERTY_DATA_REG_DWORD_BIG_ENDIAN
Definition: msos_desc.h:41
@ MS_OS_20_PROPERTY_DATA_REG_DWORD_LITTLE_ENDIAN
Definition: msos_desc.h:40
@ MS_OS_20_PROPERTY_DATA_RESERVED
Definition: msos_desc.h:36
@ MS_OS_20_PROPERTY_DATA_REG_BINARY
Definition: msos_desc.h:39
msosv2_descriptor_index
Definition: msos_desc.h:18
@ MS_OS_20_SET_ALT_ENUMERATION
Definition: msos_desc.h:20
@ MS_OS_20_DESCRIPTOR_INDEX
Definition: msos_desc.h:19
msosv2_descriptor_type
Definition: msos_desc.h:23
@ MS_OS_20_SUBSET_HEADER_FUNCTION
Definition: msos_desc.h:26
@ MS_OS_20_FEATURE_VENDOR_REVISION
Definition: msos_desc.h:32
@ MS_OS_20_FEATURE_MIN_RESUME_TIME
Definition: msos_desc.h:29
@ MS_OS_20_FEATURE_CCGP_DEVICE
Definition: msos_desc.h:31
@ MS_OS_20_SET_HEADER_DESCRIPTOR
Definition: msos_desc.h:24
@ MS_OS_20_FEATURE_MODEL_ID
Definition: msos_desc.h:30
@ MS_OS_20_FEATURE_REG_PROPERTY
Definition: msos_desc.h:28
@ MS_OS_20_FEATURE_COMPATIBLE_ID
Definition: msos_desc.h:27
@ MS_OS_20_SUBSET_HEADER_CONFIGURATION
Definition: msos_desc.h:25
__UINT32_TYPE__ uint32_t
Definition: stdint.h:90
__UINT8_TYPE__ uint8_t
Definition: stdint.h:88
__UINT16_TYPE__ uint16_t
Definition: stdint.h:89
Definition: msos_desc.h:77
uint8_t CompatibleID[8]
Definition: msos_desc.h:80
uint16_t wLength
Definition: msos_desc.h:78
uint16_t wDescriptorType
Definition: msos_desc.h:79
uint8_t SubCompatibleID[8]
Definition: msos_desc.h:81
Definition: msos_desc.h:57
uint16_t wTotalLength
Definition: msos_desc.h:62
uint8_t bConfigurationValue
Definition: msos_desc.h:60
uint16_t wLength
Definition: msos_desc.h:58
uint8_t bReserved
Definition: msos_desc.h:61
uint16_t wDescriptorType
Definition: msos_desc.h:59
Definition: msos_desc.h:47
uint16_t wTotalLength
Definition: msos_desc.h:51
uint16_t wLength
Definition: msos_desc.h:48
uint32_t dwWindowsVersion
Definition: msos_desc.h:50
uint16_t wDescriptorType
Definition: msos_desc.h:49
Definition: msos_desc.h:68
uint8_t bReserved
Definition: msos_desc.h:72
uint16_t wLength
Definition: msos_desc.h:69
uint16_t wDescriptorType
Definition: msos_desc.h:70
uint16_t wSubsetLength
Definition: msos_desc.h:73
uint8_t bFirstInterface
Definition: msos_desc.h:71
Definition: msos_desc.h:85
uint16_t wPropertyDataLength
Definition: msos_desc.h:91
uint16_t wLength
Definition: msos_desc.h:86
uint16_t wPropertyNameLength
Definition: msos_desc.h:89
uint8_t bPropertyData[80]
Definition: msos_desc.h:92
uint8_t PropertyName[42]
Definition: msos_desc.h:90
uint16_t wDescriptorType
Definition: msos_desc.h:87
uint16_t wPropertyDataType
Definition: msos_desc.h:88