-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDescriptors.h
506 lines (506 loc) · 18.2 KB
/
Descriptors.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
#include <avr/pgmspace.h>
#include <stdbool.h>
#include <string.h>
#include <avr/interrupt.h>
#include <avr/boot.h>
#include <avr/wdt.h>
///////////////////////////////////////////////////////////
#define me_F_CPU 16000000UL
#define AVR_RESET_LINE_PORT_ PORTD
#define AVR_RESET_LINE_DDR_ DDRD
#define USB_STREAM_TIMEOUT_MS_ 100
#define AVR_RESET_LINE_MASK_ (1 << 7)
#define MIN_(x, y) (((x) < (y)) ? (x) : (y))
#define SERIAL_2X_UBBRVAL_(Baud) ((((me_F_CPU / 8) + (Baud / 2)) / (Baud)) - 1)
#define USB_DeviceState_ CONCAT_EXPANDED_(GPIOR, 0)
#define CONCAT_(x, y) x ## y
#define CONCAT_EXPANDED_(x, y) CONCAT_(x, y)
#define ENDPOINT_EPNUM_MASK_ 0x0F
#define ENDPOINT_CONTROLEP_ 0
#define REQDIR_DEVICETOHOST_ (1 << 7)
#define REQDIR_HOSTTODEVICE_ (0 << 7)
#define REQTYPE_STANDARD_ (0 << 5)
#define REQTYPE_CLASS_ (1 << 5)
#define REQTYPE_VENDOR_ (2 << 5)
#define REQREC_DEVICE_ (0 << 0)
#define REQREC_INTERFACE_ (1 << 0)
#define REQREC_ENDPOINT_ (2 << 0)
#define REQREC_OTHER_ (3 << 0)
#define CONTROL_REQTYPE_RECIPIENT_ 0x1F
#define ENDPOINT_TOTAL_ENDPOINTS_ 5
#define FEATURE_SELFPOWERED_ENABLED_ (1 << 0)
#define FEATURE_REMOTE_WAKEUP_ENABLED_ (1 << 1)
#define INTERNAL_SERIAL_LENGTH_BITS_ 80
#define GCC_MEMORY_BARRIER_() __asm__ __volatile__("" ::: "memory");
#define GCC_FORCE_POINTER_ACCESS_(StructPtr) __asm__ __volatile__("" : "=b" (StructPtr) : "0" (StructPtr))
#define USB_STRING_LEN_(UnicodeChars) (sizeof(my_USB_Descriptor_Header_t) + ((UnicodeChars) << 1))
#define INTERNAL_SERIAL_START_ADDRESS_ 0x0E
#define USB_Device_ControlEndpointSize_ 8
#define EP_TYPE_CONTROL_ 0x00
#define USB_CurrentMode_ USB_MODE_Device_
#define USB_OPT_MANUAL_PLL_ (1 << 2)
#define USB_Options_ (USB_DEVICE_OPT_FULLSPEED_|USB_OPT_REG_ENABLED_|USB_OPT_AUTO_PLL_)
#define USB_DEVICE_OPT_FULLSPEED_ (0 << 0)
#define USB_OPT_REG_ENABLED_ (0 << 1)
#define USB_OPT_AUTO_PLL_ (0 << 2)
#define USB_PLL_PSC_ (1 << PLLP0)
#define USB_OPT_REG_DISABLED_ (1 << 1)
#define my_cpu_to_le16(x) (x)
#define my_CDC_CONTROL_LINE_OUT_DTR (1 << 0)
#define my_ENDPOINT_DIR_OUT 0x00
#define my_ENDPOINT_DIR_IN 0x80
#define my_CDC_TX_EPADDR (my_ENDPOINT_DIR_IN | 3)
#define my_CDC_TXRX_EPSIZE 16
#define my_CDC_RX_EPADDR (my_ENDPOINT_DIR_OUT | 4)
#define my_CDC_NOTIFICATION_EPADDR (my_ENDPOINT_DIR_IN | 2)
#define my_CDC_NOTIFICATION_EPSIZE 8
#define my_NO_DESCRIPTOR 0
#define my_USB_CONFIG_ATTR_RESERVED 0x80
#define my_USB_CONFIG_ATTR_SELFPOWERED 0x40
#define my_USB_CONFIG_POWER_MA(mA) ((mA) >> 1)
#define my_EP_TYPE_INTERRUPT 0x03
#define my_ENDPOINT_ATTR_NO_SYNC (0 << 2)
#define my_ENDPOINT_USAGE_DATA (0 << 4)
#define my_EP_TYPE_BULK 0x02
#define my_CPU_TO_LE16(x) (x)
#define my_VERSION_BCD(Major,Minor,Revision)my_CPU_TO_LE16(((Major&0xFF)<<8)|((Minor&0x0F)<<4)|(Revision&0x0F))
#define my_USE_INTERNAL_SERIAL 0xDC
#define my_USB_STRING_DESCRIPTOR_ARRAY(...) { .my_Header = {.my_Size = sizeof(my_USB_Descriptor_Header_t) + sizeof((uint16_t[]){__VA_ARGS__}), .my_Type = my_DTYPE_String}, .my_UnicodeString = {__VA_ARGS__} }
#define my_LANGUAGE_ID_ENG 0x0409
#define my_USB_STRING_DESCRIPTOR(my_String) { .my_Header = {.my_Size = sizeof(my_USB_Descriptor_Header_t) + (sizeof(my_String) - 2), .my_Type = my_DTYPE_String}, .my_UnicodeString = my_String }
///////////////////////////////////////////////////////////////////////
enum CDC_ClassRequests_t_
{
CDC_REQ_SendEncapsulatedCommand_ = 0x00,
CDC_REQ_GetEncapsulatedResponse_ = 0x01,
CDC_REQ_SetLineEncoding_ = 0x20,
CDC_REQ_GetLineEncoding_ = 0x21,
CDC_REQ_SetControlLineState_ = 0x22,
};
enum CDC_LineEncodingParity_t_
{
CDC_PARITY_None_ = 0,
CDC_PARITY_Odd_ = 1,
CDC_PARITY_Even_ = 2,
};
enum Endpoint_WaitUntilReady_ErrorCodes_t_
{
ENDPOINT_READYWAIT_NoError_ = 0,
ENDPOINT_READYWAIT_EndpointStalled_ = 1,
ENDPOINT_READYWAIT_DeviceDisconnected_ = 2,
ENDPOINT_READYWAIT_BusSuspended_ = 3,
ENDPOINT_READYWAIT_Timeout_ = 4,
};
enum Endpoint_Stream_RW_ErrorCodes_t_
{
ENDPOINT_RWSTREAM_NoError_ = 0,
ENDPOINT_RWSTREAM_EndpointStalled_ = 1,
ENDPOINT_RWSTREAM_DeviceDisconnected_ = 2,
};
enum USB_Control_Request_t_
{
REQ_GetStatus_ = 0,
REQ_ClearFeature_ = 1,
REQ_SetFeature_ = 3,
REQ_SetAddress_ = 5,
REQ_GetDescriptor_ = 6,
REQ_SetDescriptor_ = 7,
REQ_GetConfiguration_ = 8,
REQ_SetConfiguration_ = 9,
};
enum USB_Feature_Selectors_t_
{
FEATURE_SEL_EndpointHalt_ = 0x00,
FEATURE_SEL_DeviceRemoteWakeup_ = 0x01,
};
enum Endpoint_ControlStream_RW_ErrorCodes_t_
{
ENDPOINT_RWCSTREAM_NoError_ = 0,
ENDPOINT_RWCSTREAM_HostAborted_ = 1,
ENDPOINT_RWCSTREAM_DeviceDisconnected_ = 2,
ENDPOINT_RWCSTREAM_BusSuspended_ = 3,
};
enum USB_Interrupts_t_
{
USB_INT_WAKEUPI_ = 2,
USB_INT_SUSPI_ = 3,
USB_INT_EORSTI_ = 4,
USB_INT_SOFI_ = 5,
USB_INT_RXSTPI_ = 6,
};
enum USB_Modes_t_
{
USB_MODE_None_ = 0,
USB_MODE_Device_ = 1,
USB_MODE_Host_ = 2,
};
enum my_USB_Device_States_t
{
DEVICE_STATE_Unattached_ = 0,
DEVICE_STATE_Powered_ = 1,
DEVICE_STATE_Default_ = 2,
DEVICE_STATE_Addressed_ = 3,
DEVICE_STATE_Configured_ = 4,
DEVICE_STATE_Suspended_ = 5,
};
enum my_CDC_LineEncodingFormats_t
{
my_CDC_LINEENCODING_OneStopBit = 0,
my_CDC_LINEENCODING_OneAndAHalfStopBits = 1,
my_CDC_LINEENCODING_TwoStopBits = 2,
};
enum my_InterfaceDescriptors_t
{
my_INTERFACE_ID_CDC_CCI = 0,
my_INTERFACE_ID_CDC_DCI = 1
};
enum my_StringDescriptors_t
{
my_STRING_ID_Language = 0,
my_STRING_ID_Manufacturer = 1,
my_STRING_ID_Product = 2,
};
enum USB_DescriptorTypes_t_
{
my_DTYPE_Device = 0x01,
my_DTYPE_Configuration = 0x02,
my_DTYPE_String = 0x03,
my_DTYPE_Interface = 0x04,
my_DTYPE_Endpoint = 0x05,
};
enum my_CDC_DescriptorTypes_t
{
my_CDC_DTYPE_CSInterface = 0x24,
};
enum my_CDC_DescriptorSubtypes_t
{
my_CDC_DSUBTYPE_CSInterface_Header = 0x00,
my_CDC_DSUBTYPE_CSInterface_CallManagement = 0x01,
my_CDC_DSUBTYPE_CSInterface_ACM = 0x02,
my_CDC_DSUBTYPE_CSInterface_DirectLine = 0x03,
my_CDC_DSUBTYPE_CSInterface_TelephoneRinger = 0x04,
my_CDC_DSUBTYPE_CSInterface_TelephoneCall = 0x05,
my_CDC_DSUBTYPE_CSInterface_Union = 0x06,
};
enum my_CDC_Descriptor_ClassSubclassProtocol_t
{
my_CDC_CSCP_CDCClass = 0x02,
my_CDC_CSCP_NoSpecificSubclass = 0x00,
my_CDC_CSCP_ACMSubclass = 0x02,
my_CDC_CSCP_ATCommandProtocol = 0x01,
my_CDC_CSCP_NoSpecificProtocol = 0x00,
my_CDC_CSCP_VendorSpecificProtocol = 0xFF,
my_CDC_CSCP_CDCDataClass = 0x0A,
my_CDC_CSCP_NoDataSubclass = 0x00,
my_CDC_CSCP_NoDataProtocol = 0x00,
};
//////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
typedef struct
{
uint8_t my_bmRequestType;
uint8_t my_bRequest;
uint16_t my_wValue;
uint16_t my_wIndex;
uint16_t my_wLength;
}my_USB_Request_Header_t;
typedef struct
{
uint8_t* In;
uint8_t* Out;
uint8_t* Start;
uint8_t* End;
uint16_t Size;
uint16_t Count;
} my_RingBuffer_t;
typedef struct
{
uint32_t my_BaudRateBPS;
uint8_t my_CharFormat;
uint8_t my_ParityType;
uint8_t my_DataBits;
}My_CDC_LineEncoding_t;
typedef struct
{
uint8_t my_Address;
uint16_t my_Size;
uint8_t my_Type;
uint8_t my_Banks;
} my_USB_Endpoint_Table_t;
typedef struct
{
uint8_t my_Size;
uint8_t my_Type;
}my_USB_Descriptor_Header_t;
//////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////
typedef struct
{
my_USB_Descriptor_Header_t my_Header;
uint16_t my_TotalConfigurationSize;
uint8_t my_TotalInterfaces;
uint8_t my_ConfigurationNumber;
uint8_t my_ConfigurationStrIndex;
uint8_t my_ConfigAttributes;
uint8_t my_MaxPowerConsumption;
}my_USB_Descriptor_Configuration_Header_t;
typedef struct
{
my_USB_Descriptor_Header_t my_Header;
uint8_t my_Subtype;
uint16_t my_CDCSpecification;
}my_USB_CDC_Descriptor_FunctionalHeader_t;
typedef struct
{
my_USB_Descriptor_Header_t my_Header;
uint8_t my_Subtype;
uint8_t my_Capabilities;
}my_USB_CDC_Descriptor_FunctionalACM_t;
typedef struct
{
my_USB_Descriptor_Header_t my_Header;
uint8_t my_Subtype;
uint8_t my_MasterInterfaceNumber;
uint8_t my_SlaveInterfaceNumber;
}my_USB_CDC_Descriptor_FunctionalUnion_t;
typedef struct
{
my_USB_Descriptor_Header_t my_Header;
uint8_t my_EndpointAddress;
uint8_t my_Attributes;
uint16_t my_EndpointSize;
uint8_t my_PollingIntervalMS;
}my_USB_Descriptor_Endpoint_t;
typedef struct
{
my_USB_Descriptor_Header_t my_Header;
uint8_t my_InterfaceNumber;
uint8_t my_AlternateSetting;
uint8_t my_TotalEndpoints;
uint8_t my_Class;
uint8_t my_SubClass;
uint8_t my_Protocol;
uint8_t my_InterfaceStrIndex;
}my_USB_Descriptor_Interface_t;
typedef struct
{
my_USB_Descriptor_Header_t my_Header;
uint16_t my_USBSpecification;
uint8_t my_Class;
uint8_t my_SubClass;
uint8_t my_Protocol;
uint8_t my_Endpoint0Size;
uint16_t my_VendorID;
uint16_t my_ProductID;
uint16_t my_ReleaseNumber;
uint8_t my_ManufacturerStrIndex;
uint8_t my_ProductStrIndex;
uint8_t my_SerialNumStrIndex;
uint8_t my_NumberOfConfigurations;
} my_USB_Descriptor_Device_t;
typedef struct
{
my_USB_Descriptor_Header_t my_Header;
wchar_t my_UnicodeString[];
}my_USB_Descriptor_String_t;
typedef struct
{
struct
{
uint8_t my_ControlInterfaceNumber;
my_USB_Endpoint_Table_t my_DataINEndpoint;
my_USB_Endpoint_Table_t my_DataOUTEndpoint;
my_USB_Endpoint_Table_t my_NotificationEndpoint;
} My_Config;
struct
{
struct
{
uint16_t my_HostToDevice;
uint16_t my_DeviceToHost;
} My_ControlLineStates;
My_CDC_LineEncoding_t My_LineEncoding;
} My_State;
} My_USB_ClassInfo_CDC_Device_t;
//////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////
typedef struct
{
my_USB_Descriptor_Configuration_Header_t my_Config;
my_USB_Descriptor_Interface_t my_CDC_CCI_Interface;
my_USB_CDC_Descriptor_FunctionalHeader_t my_CDC_Functional_Header;
my_USB_CDC_Descriptor_FunctionalACM_t my_CDC_Functional_ACM;
my_USB_CDC_Descriptor_FunctionalUnion_t my_CDC_Functional_Union;
my_USB_Descriptor_Endpoint_t my_CDC_NotificationEndpoint;
my_USB_Descriptor_Interface_t my_CDC_DCI_Interface;
my_USB_Descriptor_Endpoint_t my_CDC_DataOutEndpoint;
my_USB_Descriptor_Endpoint_t my_CDC_DataInEndpoint;
} my_USB_Descriptor_Configuration_t;
//////////////////////////////////////////////////////////
my_USB_Request_Header_t my_USB_ControlRequest;
//////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////
My_USB_ClassInfo_CDC_Device_t my_VirtualSerial_CDC_Interface =
{
.My_Config =
{
.my_ControlInterfaceNumber = my_INTERFACE_ID_CDC_CCI,
.my_DataINEndpoint =
{
.my_Address = my_CDC_TX_EPADDR,
.my_Size = my_CDC_TXRX_EPSIZE,
.my_Banks = 1,
},
.my_DataOUTEndpoint =
{
.my_Address = my_CDC_RX_EPADDR,
.my_Size = my_CDC_TXRX_EPSIZE,
.my_Banks = 1,
},
.my_NotificationEndpoint =
{
.my_Address = my_CDC_NOTIFICATION_EPADDR,
.my_Size = my_CDC_NOTIFICATION_EPSIZE,
.my_Banks = 1,
},
},
};
//////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////
const my_USB_Descriptor_Device_t PROGMEM my_DeviceDescriptor =
{
.my_Header =
{
.my_Size = sizeof(my_USB_Descriptor_Device_t), .my_Type = my_DTYPE_Device
},
.my_USBSpecification = my_VERSION_BCD(1,1,0),
.my_Class = my_CDC_CSCP_CDCClass,
.my_SubClass = my_CDC_CSCP_NoSpecificSubclass,
.my_Protocol = my_CDC_CSCP_NoSpecificProtocol,
.my_Endpoint0Size = 8,
.my_VendorID = 0x2341,
.my_ProductID = 0x0001,
.my_ReleaseNumber = my_VERSION_BCD(0,0,1),
.my_ManufacturerStrIndex = my_STRING_ID_Manufacturer,
.my_ProductStrIndex = my_STRING_ID_Product,
.my_SerialNumStrIndex = my_USE_INTERNAL_SERIAL,
.my_NumberOfConfigurations = 1
};
//////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////
const my_USB_Descriptor_Configuration_t PROGMEM my_ConfigurationDescriptor =
{
.my_Config =
{
.my_Header =
{
.my_Size = sizeof(my_USB_Descriptor_Configuration_Header_t), .my_Type = my_DTYPE_Configuration
},
.my_TotalConfigurationSize = sizeof(my_USB_Descriptor_Configuration_t),
.my_TotalInterfaces = 2,
.my_ConfigurationNumber = 1,
.my_ConfigurationStrIndex = my_NO_DESCRIPTOR,
.my_ConfigAttributes = (my_USB_CONFIG_ATTR_RESERVED | my_USB_CONFIG_ATTR_SELFPOWERED),
.my_MaxPowerConsumption = my_USB_CONFIG_POWER_MA(100)
},
.my_CDC_CCI_Interface =
{
.my_Header =
{
.my_Size = sizeof(my_USB_Descriptor_Interface_t), .my_Type = my_DTYPE_Interface
},
.my_InterfaceNumber = 0,
.my_AlternateSetting = 0,
.my_TotalEndpoints = 1,
.my_Class = 0x02,
.my_SubClass = 0x02,
.my_Protocol = 0x01,
.my_InterfaceStrIndex = my_NO_DESCRIPTOR
},
.my_CDC_Functional_Header =
{
.my_Header =
{
.my_Size = sizeof(my_USB_CDC_Descriptor_FunctionalHeader_t), .my_Type = my_CDC_DTYPE_CSInterface
},
.my_Subtype = my_CDC_DSUBTYPE_CSInterface_Header,
.my_CDCSpecification = my_VERSION_BCD(1,1,0),
},
.my_CDC_Functional_ACM =
{
.my_Header =
{
.my_Size = sizeof(my_USB_CDC_Descriptor_FunctionalACM_t), .my_Type = my_CDC_DTYPE_CSInterface
},
.my_Subtype = my_CDC_DSUBTYPE_CSInterface_ACM,
.my_Capabilities = 0x06,
},
.my_CDC_Functional_Union =
{
.my_Header =
{
.my_Size = sizeof(my_USB_CDC_Descriptor_FunctionalUnion_t), .my_Type = my_CDC_DTYPE_CSInterface
},
.my_Subtype = my_CDC_DSUBTYPE_CSInterface_Union,
.my_MasterInterfaceNumber = my_INTERFACE_ID_CDC_CCI,
.my_SlaveInterfaceNumber = my_INTERFACE_ID_CDC_DCI,
},
.my_CDC_NotificationEndpoint =
{
.my_Header =
{
.my_Size = sizeof(my_USB_Descriptor_Endpoint_t), .my_Type = my_DTYPE_Endpoint
},
.my_EndpointAddress = my_CDC_NOTIFICATION_EPADDR,
.my_Attributes = (my_EP_TYPE_INTERRUPT | my_ENDPOINT_ATTR_NO_SYNC | my_ENDPOINT_USAGE_DATA),
.my_EndpointSize = my_CDC_NOTIFICATION_EPSIZE,
.my_PollingIntervalMS = 0xFF
},
.my_CDC_DCI_Interface =
{
.my_Header =
{
.my_Size = sizeof(my_USB_Descriptor_Interface_t), .my_Type = my_DTYPE_Interface
},
.my_InterfaceNumber = my_INTERFACE_ID_CDC_DCI,
.my_AlternateSetting = 0,
.my_TotalEndpoints = 2,
.my_Class = my_CDC_CSCP_CDCDataClass,
.my_SubClass = my_CDC_CSCP_NoDataSubclass,
.my_Protocol = my_CDC_CSCP_NoDataProtocol,
.my_InterfaceStrIndex = my_NO_DESCRIPTOR
},
.my_CDC_DataOutEndpoint =
{
.my_Header =
{
.my_Size = sizeof(my_USB_Descriptor_Endpoint_t), .my_Type = my_DTYPE_Endpoint
},
.my_EndpointAddress = my_CDC_RX_EPADDR,
.my_Attributes = (my_EP_TYPE_BULK | my_ENDPOINT_ATTR_NO_SYNC | my_ENDPOINT_USAGE_DATA),
.my_EndpointSize = my_CDC_TXRX_EPSIZE,
.my_PollingIntervalMS = 0x05
},
.my_CDC_DataInEndpoint =
{
.my_Header =
{
.my_Size = sizeof(my_USB_Descriptor_Endpoint_t), .my_Type = my_DTYPE_Endpoint
},
.my_EndpointAddress = my_CDC_TX_EPADDR,
.my_Attributes = (my_EP_TYPE_BULK | my_ENDPOINT_ATTR_NO_SYNC | my_ENDPOINT_USAGE_DATA),
.my_EndpointSize = my_CDC_TXRX_EPSIZE,
.my_PollingIntervalMS = 0x05
}
};
//////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////
const my_USB_Descriptor_String_t PROGMEM my_LanguageString = my_USB_STRING_DESCRIPTOR_ARRAY(my_LANGUAGE_ID_ENG);
const my_USB_Descriptor_String_t PROGMEM my_ManufacturerString = my_USB_STRING_DESCRIPTOR(L"LUFA Library");
const my_USB_Descriptor_String_t PROGMEM my_ProductString = my_USB_STRING_DESCRIPTOR(L"LUFA USB-RS232 Adapter");