USBD_Config.h
Go to the documentation of this file.
1 /* ---------------------------------------------------------------------------- */
2 /* Atmel Microcontroller Software Support */
3 /* SAM Software Package License */
4 /* ---------------------------------------------------------------------------- */
5 /* Copyright (c) 2015, Atmel Corporation */
6 /* */
7 /* All rights reserved. */
8 /* */
9 /* Redistribution and use in source and binary forms, with or without */
10 /* modification, are permitted provided that the following condition is met: */
11 /* */
12 /* - Redistributions of source code must retain the above copyright notice, */
13 /* this list of conditions and the disclaimer below. */
14 /* */
15 /* Atmel's name may not be used to endorse or promote products derived from */
16 /* this software without specific prior written permission. */
17 /* */
18 /* DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR */
19 /* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */
20 /* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE */
21 /* DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, */
22 /* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT */
23 /* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, */
24 /* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF */
25 /* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING */
26 /* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, */
27 /* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
28 /* ---------------------------------------------------------------------------- */
36 #ifndef USBD_CONFIG_H
37 #define USBD_CONFIG_H
38 
39 /*----------------------------------------------------------------------------
40  * Headers
41  *----------------------------------------------------------------------------*/
42 
43 #include "board.h"
44 
48 /*----------------------------------------------------------------------------
49  * Constants
50  *----------------------------------------------------------------------------*/
51 
55 #define USBD_VID_ATMEL 0x03EB
57 #define USBD_PID_ENUM 0x0001
58 #define USBD_PID_CDCDSERIAL 0x6124
59 #define USBD_PID_HIDKEYBOARD 0x6127
60 #define USBD_PID_AUDIO 0x6128
61 #define USBD_PID_MSD 0x6129
62 #define USBD_PID_CDCHID 0x6130
63 #define USBD_PID_CDCAUDIO 0x6131
64 #define USBD_PID_CDCMSD 0x6132
65 #define USBD_PID_CDCCDC 0x6133
66 #define USBD_PID_HIDAUDIO 0x6134
67 #define USBD_PID_HIDMSD 0x6135
68 #define USBD_PID_HIDMOUSE 0x6200
69 #define USBD_PID_HIDTRANSFER 0x6201
70 #define USBD_PID_CCID 0x6203
71 #define USBD_PID_UVC 0x6136
72 #define USBD_PID_CDCEEM 0x6137
74 #define USBD_RELEASE_1_00 0x0100
75 #define USBD_RELEASE_0_01 0x0001
85 #define USBD_BMATTRIBUTES USBConfigurationDescriptor_SELFPOWERED_NORWAKEUP
86 
88 /*----------------------------------------------------------------------------
89  * USB Device - Mass storage
90  *----------------------------------------------------------------------------*/
91 
101 #define MSDDriverDescriptors_BULKOUT 2
102 
103 #define MSDDriverDescriptors_BULKIN 3
104 
106 /*----------------------------------------------------------------------------
107  * USB Device - CDC Serial
108  *----------------------------------------------------------------------------*/
109 
120 #define CDCDSerialDriverDescriptors_DATAOUT 2
121 
122 #define CDCDSerialDriverDescriptors_DATAIN 3
123 
124 #define CDCDSerialDriverDescriptors_NOTIFICATION 4
125 
127 /*----------------------------------------------------------------------------
128  * USB Device - CDC EEM
129  *----------------------------------------------------------------------------*/
130 
140 #define CDCDEEMDriverDescriptors_BULKOUT 1
141 
142 #define CDCDEEMDriverDescriptors_BULKIN 2
143 
145 /*----------------------------------------------------------------------------
146  * USB Device - Audio
147  *----------------------------------------------------------------------------*/
148 
156 #define AUDDevice_SAMPLERATE 48000UL
157 
158 #define AUDDevice_NUMCHANNELS 2
159 
160 #define AUDDevice_BYTESPERSAMPLE 2
161 
163 #define AUDDevice_BITSPERSAMPLE (AUDDevice_BYTESPERSAMPLE * 8)
164 
165 #define AUDDevice_BYTESPERSUBFRAME (AUDDevice_NUMCHANNELS * \
166  AUDDevice_BYTESPERSAMPLE)
167 
168 #define AUDDevice_SAMPLESPERFRAME (AUDDevice_SAMPLERATE / 1000 \
169  * AUDDevice_NUMCHANNELS)
170 
171 #define AUDDevice_BYTESPERFRAME (AUDDevice_SAMPLESPERFRAME * \
172  AUDDevice_BYTESPERSAMPLE)
173 
175 /*----------------------------------------------------------------------------
176  * USB Device - Audio - Desktop Speaker
177  *----------------------------------------------------------------------------*/
178 
190 #define AUDDSpeakerDriverDescriptors_DATAOUT 0x02
191 
192 #define AUDDSpeakerDriverDescriptors_HS_INTERVAL 0x04
193 
194 #define AUDDSpeakerDriverDescriptors_FS_INTERVAL 0x01
195 
197 /*----------------------------------------------------------------------------
198  * USB Device - Audio - Speaker Phone
199  *----------------------------------------------------------------------------*/
200 
212 #define AUDDSpeakerPhoneDriverDescriptors_DATAOUT 0x02
213 
214 #define AUDDSpeakerPhoneDriverDescriptors_DATAIN 0x01
215 
217 #define AUDDSpeakerPhoneDriverDescriptors_HS_INTERVAL 0x04
218 
219 #define AUDDSpeakerPhoneDriverDescriptors_FS_INTERVAL 0x01
220 
222 /*----------------------------------------------------------------------------
223  * USB Device - HID - Keyboard
224  *----------------------------------------------------------------------------*/
225 
238 #define HIDDKeyboardDriverDescriptors_INTERRUPTIN 2
239 
240 #define HIDDKeyboardDriverDescriptors_INTERRUPTIN_POLLING 10
241 
242 #define HIDDKeyboardDriverDescriptors_INTERRUPTOUT 3
243 
244 #define HIDDKeyboardDriverDescriptors_INTERRUPTOUT_POLLING 10
245 
247 /*----------------------------------------------------------------------------
248  * USB Device - HID - Mouse
249  *----------------------------------------------------------------------------*/
250 
261 #define HIDDMouseDriverDescriptors_INTERRUPTIN 2
262 
263 #define HIDDMouseDriverDescriptors_INTERRUPTIN_POLLING 8
264 
266 /*----------------------------------------------------------------------------
267  * USB Device - HID - Transfer (Customize device)
268  *----------------------------------------------------------------------------*/
269 
282 #define HIDDTransferDriverDescriptors_INTERRUPTIN 2
283 
284 #define HIDDTransferDriverDescriptors_INTERRUPTIN_POLLING 50
285 
286 #define HIDDTransferDriverDescriptors_INTERRUPTOUT 3
287 
288 #define HIDDTransferDriverDescriptors_INTERRUPTOUT_POLLING 50
289 
291 /*----------------------------------------------------------------------------
292  * USB Device - Composite
293  *----------------------------------------------------------------------------*/
294 
299 /*----------------------------------------------------------------------------
300  * USB Device - HID_AUD
301  *----------------------------------------------------------------------------*/
302 
304 #define HIDAUDD_Descriptors_INTERRUPTIN 0x03
305 
306 #define HIDAUDD_Descriptors_INTERRUPTOUT 0x04
307 
309 #define HIDAUDD_Descriptors_ISO_DATAOUT 0x02
310 
311 
312 /*----------------------------------------------------------------------------
313  * USB Device - CDC AUD
314  *----------------------------------------------------------------------------*/
315 
317 #define CDCAUDD_Descriptors_NOTIFICATION0 0x04
318 
319 #define CDCAUDD_Descriptors_DATAIN0 0x03
320 
321 #define CDCAUDD_Descriptors_DATAOUT0 0x02
322 
323 #define CDCAUDD_Descriptors_ISO_DATAOUT 0x01
324 
325 
326 /*----------------------------------------------------------------------------
327  * USB Device - DUAL CDC
328  *----------------------------------------------------------------------------*/
329 
331 #define CDCD_Descriptors_NOTIFICATION0 3
332 #define CDCD_Descriptors_DATAIN0 2
334 #define CDCD_Descriptors_DATAOUT0 1
336 
338 #define CDCD_Descriptors_NOTIFICATION1 6
339 #define CDCD_Descriptors_DATAIN1 5
341 #define CDCD_Descriptors_DATAOUT1 4
343 
344 
345 /*----------------------------------------------------------------------------
346  * USB Device - HID CDC
347  *----------------------------------------------------------------------------*/
348 
349 
351 #define CDCD_Descriptors_NOTIFICATION0 3
352 
353 #define CDCD_Descriptors_DATAIN0 2
354 
355 #define CDCD_Descriptors_DATAOUT0 1
356 
358 #define HIDD_Descriptors_INTERRUPTIN 4
359 
360 #define HIDD_Descriptors_INTERRUPTOUT 5
361 
362 
363 
364 /*----------------------------------------------------------------------------
365  * USB Device - HID MSD
366  *----------------------------------------------------------------------------*/
367 
369 #define HIDMSDD_Descriptors_BULKOUT 2
370 
371 #define HIDMSDD_Descriptors_BULKIN 3
372 
374 #define HIDMSDD_Descriptors_INTERRUPTIN 4
375 
376 #define HIDMSDD_Descriptors_INTERRUPTOUT 5
377 
378 /*----------------------------------------------------------------------------
379  * USB Device - MSD CDC
380  *----------------------------------------------------------------------------*/
381 
383 #define CDCD_Descriptors_NOTIFICATION0 3
384 
385 #define CDCD_Descriptors_DATAIN0 2
386 
387 #define CDCD_Descriptors_DATAOUT0 1
388 
389 #define MSDD_Descriptors_BULKOUT 4
390 
391 #define MSDD_Descriptors_BULKIN 5
392 
396 #endif //#ifndef USBD_CONFIG_H
397 
398 
Standard board header file.


inertial_sense_ros
Author(s):
autogenerated on Sat Sep 19 2020 03:19:05