Project

General

Profile

Download (5.13 KB) Statistics
| Branch: | Tag: | Revision:
1
#ifndef _USB_STRINGS_H
2
#define _USB_STRINGS_H
3

    
4
/* THIS FILE IS AUTOGENERATED, DO NOT MODIFY MANUALLY */
5

    
6
#include <stdint.h>
7
#include <usb/common/core/USBGenericDescriptor.h>
8
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
9

    
10
/* All standard descriptors have these 2 fields at the beginning */
11

    
12
struct usb_descriptor_header {
13
	uint8_t bLength;
14
	uint8_t bDescriptorType;
15
} __attribute__ ((packed));
16

    
17
static const struct {
18
	struct usb_descriptor_header hdr;
19
	uint16_t wData[];
20
} __attribute__((packed)) string0 = {
21
	.hdr = {
22
		.bLength = USBStringDescriptor_LENGTH(1),
23
		.bDescriptorType = USBGenericDescriptor_STRING,
24
	},
25
	.wData = {0x0409 /* English */ },
26
};
27

    
28
/* String 1 "sysmocom - systems for mobile communications GmbH" */
29
static const struct {
30
	struct usb_descriptor_header hdr;
31
	uint16_t wData[];
32
} __attribute__((packed)) string1 = {
33
	.hdr = {
34
		.bLength = USBStringDescriptor_LENGTH(49),
35
		.bDescriptorType = USBGenericDescriptor_STRING,
36
	},
37
	.wData = {	0x0073, 0x0079, 0x0073, 0x006d, 0x006f, 0x0063,
38
			0x006f, 0x006d, 0x0020, 0x002d, 0x0020, 0x0073,
39
			0x0079, 0x0073, 0x0074, 0x0065, 0x006d, 0x0073,
40
			0x0020, 0x0066, 0x006f, 0x0072, 0x0020, 0x006d,
41
			0x006f, 0x0062, 0x0069, 0x006c, 0x0065, 0x0020,
42
			0x0063, 0x006f, 0x006d, 0x006d, 0x0075, 0x006e,
43
			0x0069, 0x0063, 0x0061, 0x0074, 0x0069, 0x006f,
44
			0x006e, 0x0073, 0x0020, 0x0047, 0x006d, 0x0062,
45
			0x0048, },
46
};
47

    
48
/* String 2 "OsmoSDR Software Defined Radio" */
49
static const struct {
50
	struct usb_descriptor_header hdr;
51
	uint16_t wData[];
52
} __attribute__((packed)) string2 = {
53
	.hdr = {
54
		.bLength = USBStringDescriptor_LENGTH(30),
55
		.bDescriptorType = USBGenericDescriptor_STRING,
56
	},
57
	.wData = {	0x004f, 0x0073, 0x006d, 0x006f, 0x0053, 0x0044,
58
			0x0052, 0x0020, 0x0053, 0x006f, 0x0066, 0x0074,
59
			0x0077, 0x0061, 0x0072, 0x0065, 0x0020, 0x0044,
60
			0x0065, 0x0066, 0x0069, 0x006e, 0x0065, 0x0064,
61
			0x0020, 0x0052, 0x0061, 0x0064, 0x0069, 0x006f,
62
},
63
};
64

    
65
/* String 3 "OsmoSDR Device Firmware Upgrade" */
66
static const struct {
67
	struct usb_descriptor_header hdr;
68
	uint16_t wData[];
69
} __attribute__((packed)) string3 = {
70
	.hdr = {
71
		.bLength = USBStringDescriptor_LENGTH(31),
72
		.bDescriptorType = USBGenericDescriptor_STRING,
73
	},
74
	.wData = {	0x004f, 0x0073, 0x006d, 0x006f, 0x0053, 0x0044,
75
			0x0052, 0x0020, 0x0044, 0x0065, 0x0076, 0x0069,
76
			0x0063, 0x0065, 0x0020, 0x0046, 0x0069, 0x0072,
77
			0x006d, 0x0077, 0x0061, 0x0072, 0x0065, 0x0020,
78
			0x0055, 0x0070, 0x0067, 0x0072, 0x0061, 0x0064,
79
			0x0065, },
80
};
81

    
82
/* String 4 "OsmoSDR DFU Interface - Application Partition" */
83
static const struct {
84
	struct usb_descriptor_header hdr;
85
	uint16_t wData[];
86
} __attribute__((packed)) string4 = {
87
	.hdr = {
88
		.bLength = USBStringDescriptor_LENGTH(45),
89
		.bDescriptorType = USBGenericDescriptor_STRING,
90
	},
91
	.wData = {	0x004f, 0x0073, 0x006d, 0x006f, 0x0053, 0x0044,
92
			0x0052, 0x0020, 0x0044, 0x0046, 0x0055, 0x0020,
93
			0x0049, 0x006e, 0x0074, 0x0065, 0x0072, 0x0066,
94
			0x0061, 0x0063, 0x0065, 0x0020, 0x002d, 0x0020,
95
			0x0041, 0x0070, 0x0070, 0x006c, 0x0069, 0x0063,
96
			0x0061, 0x0074, 0x0069, 0x006f, 0x006e, 0x0020,
97
			0x0050, 0x0061, 0x0072, 0x0074, 0x0069, 0x0074,
98
			0x0069, 0x006f, 0x006e, },
99
};
100

    
101
/* String 5 "OsmoSDR DFU Interface - Bootloader Partition" */
102
static const struct {
103
	struct usb_descriptor_header hdr;
104
	uint16_t wData[];
105
} __attribute__((packed)) string5 = {
106
	.hdr = {
107
		.bLength = USBStringDescriptor_LENGTH(44),
108
		.bDescriptorType = USBGenericDescriptor_STRING,
109
	},
110
	.wData = {	0x004f, 0x0073, 0x006d, 0x006f, 0x0053, 0x0044,
111
			0x0052, 0x0020, 0x0044, 0x0046, 0x0055, 0x0020,
112
			0x0049, 0x006e, 0x0074, 0x0065, 0x0072, 0x0066,
113
			0x0061, 0x0063, 0x0065, 0x0020, 0x002d, 0x0020,
114
			0x0042, 0x006f, 0x006f, 0x0074, 0x006c, 0x006f,
115
			0x0061, 0x0064, 0x0065, 0x0072, 0x0020, 0x0050,
116
			0x0061, 0x0072, 0x0074, 0x0069, 0x0074, 0x0069,
117
			0x006f, 0x006e, },
118
};
119

    
120
/* String 6 "OsmoSDR DFU Interface - RAM" */
121
static const struct {
122
	struct usb_descriptor_header hdr;
123
	uint16_t wData[];
124
} __attribute__((packed)) string6 = {
125
	.hdr = {
126
		.bLength = USBStringDescriptor_LENGTH(27),
127
		.bDescriptorType = USBGenericDescriptor_STRING,
128
	},
129
	.wData = {	0x004f, 0x0073, 0x006d, 0x006f, 0x0053, 0x0044,
130
			0x0052, 0x0020, 0x0044, 0x0046, 0x0055, 0x0020,
131
			0x0049, 0x006e, 0x0074, 0x0065, 0x0072, 0x0066,
132
			0x0061, 0x0063, 0x0065, 0x0020, 0x002d, 0x0020,
133
			0x0052, 0x0041, 0x004d, },
134
};
135

    
136
/* String 7 "OsmoSDR DFU Interface - FPGA" */
137
static const struct {
138
	struct usb_descriptor_header hdr;
139
	uint16_t wData[];
140
} __attribute__((packed)) string7 = {
141
	.hdr = {
142
		.bLength = USBStringDescriptor_LENGTH(28),
143
		.bDescriptorType = USBGenericDescriptor_STRING,
144
	},
145
	.wData = {	0x004f, 0x0073, 0x006d, 0x006f, 0x0053, 0x0044,
146
			0x0052, 0x0020, 0x0044, 0x0046, 0x0055, 0x0020,
147
			0x0049, 0x006e, 0x0074, 0x0065, 0x0072, 0x0066,
148
			0x0061, 0x0063, 0x0065, 0x0020, 0x002d, 0x0020,
149
			0x0046, 0x0050, 0x0047, 0x0041, },
150
};
151

    
152
#define USB_STRINGS_GENERATED				\
153
	(const unsigned char *) &string0,		\
154
	(const unsigned char *) &string1,		\
155
	(const unsigned char *) &string2,		\
156
	(const unsigned char *) &string3,		\
157
	(const unsigned char *) &string4,		\
158
	(const unsigned char *) &string5,		\
159
	(const unsigned char *) &string6,		\
160
	(const unsigned char *) &string7,		\
161

    
162
#endif /* _USB_STRINGS_H */
(10-10/11)
Add picture from clipboard (Maximum size: 48.8 MB)