-
Notifications
You must be signed in to change notification settings - Fork 1
/
cyfxuvcdscr.c
998 lines (918 loc) · 56.4 KB
/
cyfxuvcdscr.c
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
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
/*
## Cypress FX3 Camera Kit Source file (cyfxuvcdscr.c)
## ===========================
##
## Copyright Cypress Semiconductor Corporation, 2010-2012,
## All Rights Reserved
## UNPUBLISHED, LICENSED SOFTWARE.
##
## CONFIDENTIAL AND PROPRIETARY INFORMATION
## WHICH IS THE PROPERTY OF CYPRESS.
##
## Use of this file is governed
## by the license agreement included in the file
##
## <install>/license/license.txt
##
## where <install> is the Cypress software
## installation root directory path.
##
## ===========================
*/
/*
* This file contains the USB descriptors for the FX3 HD 720p camera kit
* application.
*/
/*
* These descriptors are little-endian!!!
*/
#include "uvc.h"
#include "camera_ptzcontrol.h"
// #define USE_YUY2_FORMAT
/* Standard Device Descriptor */
const uint8_t CyFxUSBDeviceDscr[] =
{
0x12, /* Descriptor Size */
CY_U3P_USB_DEVICE_DESCR, /* Device Descriptor Type */
0x10,0x02, /* USB 2.0 */
0xEF, /* Device Class */
0x02, /* Device Sub-class */
0x01, /* Device protocol */
0x40, /* Maxpacket size for EP0 : 64 bytes */
0xB4,0x04, /* Vendor ID 0xB4, 0x04*/
0xF8,0x01, /* Product ID 0xF8, 0x01*/
0x00,0x00, /* Device release number */
0x01, /* Manufacture string index */
0x02, /* Product string index */
0x00, /* Serial number string index */
0x01 /* Number of configurations */
};
/* Device Descriptor for SS */
const uint8_t CyFxUSBDeviceDscrSS[] =
{
0x12, /* Descriptor Size */
CY_U3P_USB_DEVICE_DESCR, /* Device Descriptor Type */
0x10,0x03, /* USB 3.10 */
0xEF, /* Device Class */
0x02, /* Device Sub-class */
0x01, /* Device protocol */
0x09, /* Maxpacket size for EP0 : 2^9 Bytes */
0xB4,0x04, /* Vendor ID 0xB4, 0x04*/
0xF9,0x03, /* Product ID 0xF9, 0x01*/
0x00,0x00, /* Device release number */
0x01, /* Manufacture string index */
0x02, /* Product string index */
0x00, /* Serial number string index */
0x01 /* Number of configurations */
};
/* Standard Device Qualifier Descriptor */
const uint8_t CyFxUSBDeviceQualDscr[] =
{
0x0A, /* Descriptor Size */
CY_U3P_USB_DEVQUAL_DESCR, /* Device Qualifier Descriptor Type */
0x00,0x02, /* USB 2.0 */
0xEF, /* Device Class */
0x02, /* Device Sub-class */
0x01, /* Device protocol */
0x40, /* Maxpacket size for EP0 : 64 bytes */
0x01, /* Number of configurations */
0x00 /* Reserved */
};
/* Standard Full Speed Configuration Descriptor */
const uint8_t CyFxUSBFSConfigDscr[] =
{
/* Configuration Descriptor Type */
0x09, /* Descriptor Size */
CY_U3P_USB_CONFIG_DESCR, /* Configuration Descriptor Type */
0x95,0x00, /* Length of this descriptor and all sub descriptors */
0x02, /* Number of interfaces */
0x01, /* Configuration number */
0x00, /* COnfiguration string index */
0x80, /* Config characteristics - Bus powered */
0x32, /* Max power consumption of device (in 2mA unit) : 100mA */
/* Interface Association Descriptor */
0x08, /* Descriptor Size */
CY_FX_INTF_ASSN_DSCR_TYPE, /* Interface Association Descr Type: 11 */
0x00, /* I/f number of first VideoControl i/f */
0x02, /* Number of Video i/f */
0x0E, /* CC_VIDEO : Video i/f class code */
0x03, /* SC_VIDEO_INTERFACE_COLLECTION : Subclass code */
0x00, /* Protocol : Not used */
0x02, /* String desc index for interface */
/* Standard Video Control Interface Descriptor */
0x09, /* Descriptor size */
CY_U3P_USB_INTRFC_DESCR, /* Interface Descriptor type */
0x00, /* Interface number */
0x00, /* Alternate setting number */
0x01, /* Number of end points */
0x0E, /* CC_VIDEO : Interface class */
0x01, /* CC_VIDEOCONTROL : Interface sub class */
0x00, /* Interface protocol code */
0x02, /* Interface descriptor string index */
/* Class specific VC Interface Header Descriptor */
0x0D, /* Descriptor size */
0x24, /* Class Specific I/f Header Descriptor type */
0x01, /* Descriptor Sub type : VC_HEADER */
0x10, 0x01, /* Revision of UVC class spec: 1.1 - Minimum version required
for USB Compliance. Not supported on Windows XP*/
0x51, 0x00, /* Total Size of class specific descriptors (till Output terminal) */
0x00,0x6C,0xDC,0x02, /* Clock frequency : 48MHz(Deprecated) */
0x01, /* Number of streaming interfaces */
0x01, /* Video streaming I/f 1 belongs to VC i/f */
/* Input (Camera) Terminal Descriptor */
0x12, /* Descriptor size */
0x24, /* Class specific interface desc type */
0x02, /* Input Terminal Descriptor type */
0x01, /* ID of this terminal */
0x01,0x02, /* Camera terminal type */
0x00, /* No association terminal */
0x00, /* String desc index : Not used */
#ifdef UVC_PTZ_SUPPORT
(uint8_t)(wObjectiveFocalLengthMin&0xFF),
(uint8_t)((wObjectiveFocalLengthMin>>8)&0xFF),
(uint8_t)(wObjectiveFocalLengthMax&0xFF),
(uint8_t)((wObjectiveFocalLengthMax>>8)&0xFF),
(uint8_t)(wOcularFocalLength&0xFF),
(uint8_t)((wOcularFocalLength>>8)&0xFF),
#else
0x00,0x00, /* No optical zoom supported */
0x00,0x00, /* No optical zoom supported */
0x00,0x00, /* No optical zoom supported */
#endif
0x03, /* Size of controls field for this terminal : 3 bytes */
0x00,0x00,0x00, /* bmControls field of camera terminal: No controls supported */
/* Processing Unit Descriptor */
0x0D, /* Descriptor size */
0x24, /* Class specific interface desc type */
0x05, /* Processing Unit Descriptor type */
0x02, /* ID of this terminal */
0x01, /* Source ID : 1 : Conencted to input terminal */
0x00,0x40, /* Digital multiplier */
0x03, /* Size of controls field for this terminal : 3 bytes */
0x00,0x00,0x00, /* bmControls field of processing unit: Brightness control supported */
0x00, /* String desc index : Not used */
0x00, /* Analog Video Standards Supported: None */
/* Extension Unit Descriptor */
0x1C, /* Descriptor size */
0x24, /* Class specific interface desc type */
0x06, /* Extension Unit Descriptor type */
0x03, /* ID of this terminal */
0xFF,0xFF,0xFF,0xFF, /* 16 byte GUID */
0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,
0x00, /* Number of controls in this terminal */
0x01, /* Number of input pins in this terminal */
0x02, /* Source ID : 2 : Connected to Proc Unit */
0x03, /* Size of controls field for this terminal : 3 bytes */
0x00,0x00,0x00, /* No controls supported */
0x00, /* String desc index : Not used */
/* Output Terminal Descriptor */
0x09, /* Descriptor size */
0x24, /* Class specific interface desc type */
0x03, /* Output Terminal Descriptor type */
0x04, /* ID of this terminal */
0x01,0x01, /* USB Streaming terminal type */
0x00, /* No association terminal */
0x03, /* Source ID : 3 : Connected to Extn Unit */
0x00, /* String desc index : Not used */
/* Video Control Status Interrupt Endpoint Descriptor */
0x07, /* Descriptor size */
CY_U3P_USB_ENDPNT_DESCR, /* Endpoint Descriptor Type */
CY_FX_EP_CONTROL_STATUS, /* Endpoint address and description */
CY_U3P_USB_EP_INTR, /* Interrupt End point Type */
0x40,0x00, /* Max packet size = 64 bytes */
0x08, /* Servicing interval : 8ms */
/* Class Specific Interrupt Endpoint Descriptor */
0x05, /* Descriptor size */
0x25, /* Class Specific Endpoint Descriptor Type */
CY_U3P_USB_EP_INTR, /* End point Sub Type */
0x40,0x00, /* Max packet size = 64 bytes */
/* Standard Video Streaming Interface Descriptor (Alternate Setting 0) */
0x09, /* Descriptor size */
CY_U3P_USB_INTRFC_DESCR, /* Interface Descriptor type */
0x01, /* Interface number */
0x00, /* Alternate setting number */
0x01, /* Number of end points : Zero Bandwidth */
0x0E, /* Interface class : CC_VIDEO */
0x02, /* Interface sub class : CC_VIDEOSTREAMING */
0x00, /* Interface protocol code : Undefined */
0x00, /* Interface descriptor string index */
/* Class-specific Video Streaming Input Header Descriptor */
0x0E, /* Descriptor size */
0x24, /* Class-specific VS I/f Type */
0x01, /* Descriptotor Subtype : Input Header */
0x00, /* No format desciptor supported for FS device */
0x0E,0x00, /* Total size of Class specific VS descr */
CY_FX_EP_BULK_VIDEO, /* EP address for BULK video data */
0x00, /* No dynamic format change supported */
0x04, /* Output terminal ID : 4 */
0x01, /* Still image capture method 1 supported */
0x00, /* Hardware trigger NOT supported */
0x00, /* Hardware to initiate still image capture NOT supported */
0x01, /* Size of controls field : 1 byte */
0x00, /* D2 : Compression quality supported */
/* Endpoint Descriptor for BULK Streaming Video Data */
0x07, /* Descriptor size */
CY_U3P_USB_ENDPNT_DESCR, /* Endpoint Descriptor Type */
CY_FX_EP_BULK_VIDEO, /* Endpoint address and description */
0x02, /* BULK End point */
0x40, /* EP Packet Size: 64 bytes */
0x00,
0x00 /* Servicing interval for data transfers */
};
/* Standard High Speed Configuration Descriptor */
const uint8_t CyFxUSBHSConfigDscr[] =
{
/* Configuration Descriptor Type */
0x09, /* Descriptor Size */
CY_U3P_USB_CONFIG_DESCR, /* Configuration Descriptor Type */
#ifdef USB_DEBUG_INTERFACE
#ifdef FX3_UVC_1_0_SUPPORT
0xE4,0x00, /* Length of this descriptor and all sub descriptors */
#else
0xE5,0x00, /* Length of this descriptor and all sub descriptors */
#endif
0x03, /* Number of interfaces */
#else
#ifdef FX3_UVC_1_0_SUPPORT
0xCD,0x00, /* Length of this descriptor and all sub descriptors */
#else
0xCE,0x00, /* Length of this descriptor and all sub descriptors */
#endif
0x02, /* Number of interfaces */
#endif
0x01, /* Configuration number */
0x00, /* COnfiguration string index */
0x80, /* Config characteristics - Bus powered */
0xFA, /* Max power consumption of device (in 2mA unit) : 500mA */
/* Interface Association Descriptor */
0x08, /* Descriptor Size */
CY_FX_INTF_ASSN_DSCR_TYPE, /* Interface Association Descr Type: 11 */
0x00, /* I/f number of first VideoControl i/f */
0x02, /* Number of Video i/f */
0x0E, /* CC_VIDEO : Video i/f class code */
0x03, /* SC_VIDEO_INTERFACE_COLLECTION : Subclass code */
0x00, /* Protocol : Not used */
0x02, /* String desc index for interface */
/* Standard Video Control Interface Descriptor */
0x09, /* Descriptor size */
CY_U3P_USB_INTRFC_DESCR, /* Interface Descriptor type */
0x00, /* Interface number */
0x00, /* Alternate setting number */
0x01, /* Number of end points */
0x0E, /* CC_VIDEO : Interface class */
0x01, /* CC_VIDEOCONTROL : Interface sub class */
0x00, /* Interface protocol code */
0x02, /* Interface descriptor string index */
/* Class specific VC Interface Header Descriptor */
0x0D, /* Descriptor size */
0x24, /* Class Specific I/f Header Descriptor type */
0x01, /* Descriptor Sub type : VC_HEADER */
#ifdef FX3_UVC_1_0_SUPPORT
0x00, 0x01, /* Revision of UVC class spec: 1.0 - Legacy version */
0x50, 0x00, /* Total Size of class specific descriptors (till Output terminal) */
#else
0x10, 0x01, /* Revision of UVC class spec: 1.1 - Minimum version required
for USB Compliance. Not supported on Windows XP*/
0x51, 0x00, /* Total Size of class specific descriptors (till Output terminal) */
#endif
0x00,0x6C,0xDC,0x02, /* Clock frequency : 48MHz(Deprecated) */
0x01, /* Number of streaming interfaces */
0x01, /* Video streaming I/f 1 belongs to VC i/f */
/* Input (Camera) Terminal Descriptor */
0x12, /* Descriptor size */
0x24, /* Class specific interface desc type */
0x02, /* Input Terminal Descriptor type */
0x01, /* ID of this terminal */
0x01,0x02, /* Camera terminal type */
0x00, /* No association terminal */
0x00, /* String desc index : Not used */
#ifdef UVC_PTZ_SUPPORT
(uint8_t)(wObjectiveFocalLengthMin&0xFF),
(uint8_t)((wObjectiveFocalLengthMin>>8)&0xFF),
(uint8_t)(wObjectiveFocalLengthMax&0xFF),
(uint8_t)((wObjectiveFocalLengthMax>>8)&0xFF),
(uint8_t)(wOcularFocalLength&0xFF),
(uint8_t)((wOcularFocalLength>>8)&0xFF),
#else
0x00,0x00, /* No optical zoom supported */
0x00,0x00, /* No optical zoom supported */
0x00,0x00, /* No optical zoom supported */
#endif
0x03, /* Size of controls field for this terminal : 3 bytes */
/* A bit set to 1 indicates that the mentioned Control is
* supported for the video stream in the bmControls field
* D0: Scanning Mode
* D1: Auto-Exposure Mode
* D2: Auto-Exposure Priority
* D3: Exposure Time (Absolute)
* D4: Exposure Time (Relative)
* D5: Focus (Absolute)
* D6: Focus (Relative)
* D7: Iris (Absolute)
* D8: Iris (Relative)
* D9: Zoom (Absolute)
* D10: Zoom (Relative)
* D11: PanTilt (Absolute)
* D12: PanTilt (Relative)
* D13: Roll (Absolute)
* D14: Roll (Relative)
* D15: Reserved
* D16: Reserved
* D17: Focus, Auto
* D18: Privacy
* D19: Focus, Simple
* D20: Window
* D21: Region of Interest
* D22 D23: Reserved, set to zero
*/
#ifdef UVC_PTZ_SUPPORT
0x00,0x0A,0x00, /* bmControls field of camera terminal: PTZ supported */
#else
0x00,0x00,0x00, /* bmControls field of camera terminal: No controls supported */
#endif
/* Processing Unit Descriptor */
#ifdef FX3_UVC_1_0_SUPPORT
0x0C, /* Descriptor size */
#else
0x0D, /* Descriptor size */
#endif
0x24, /* Class specific interface desc type */
0x05, /* Processing Unit Descriptor type */
0x02, /* ID of this terminal */
0x01, /* Source ID : 1 : Conencted to input terminal */
0x00,0x40, /* Digital multiplier */
0x03, /* Size of controls field for this terminal : 3 bytes */
/* A bit set to 1 in the bmControls field indicates that
* the mentioned Control is supported for the video stream.
* D0: Brightness
* D1: Contrast
* D2: Hue
* D3: Saturation
* D4: Sharpness
* D5: Gamma
* D6: White Balance Temperature
* D7: White Balance Component
* D8: Backlight Compensation
* D9: Gain
* D10: Power Line Frequency
* D11: Hue, Auto
* D12: White Balance Temperature, Auto
* D13: White Balance Component, Auto
* D14: Digital Multiplier
* D15: Digital Multiplier Limit
* D16: Analog Video Standard
* D17: Analog Video Lock Status
* D18: Contrast, Auto
* D19 D23: Reserved. Set to zero.
*/
PYTHON480_BM_CONTROLS, /* bmControls field of processing unit:
* Brightness control supported: changes exposure
* Saturation control supported: other commands to DAQ board
* Gain control supported: analog gain to pixel readings
* Changed by GL
*/
0x00, /* String desc index : Not used */
#ifndef FX3_UVC_1_0_SUPPORT
0x00, /* Analog Video Standards Supported: None */
#endif
#ifdef UVC_EXTENSION_UNIT
/* Extension Unit Descriptor */
0x1C, /* Descriptor size */
0x24, /* Class specific interface desc type */
0x06, /* Extension Unit Descriptor type */
0x03, /* ID of this terminal */
//static const GUID <<name>> =
//{ 0xacb6890c, 0xa3b3, 0x4060,{ 0x8b, 0x9a, 0xdf, 0x34, 0xee, 0xf3, 0x9a, 0x2e } };
0x0C, 0x89, 0xB6, 0xAC, /* GUID specific to AN75779 firmware. Obtained from Visual studio */
0xB3, 0xA3, 0x60, 0x40,
0x8B, 0x9A, 0xDF, 0x34,
0xEE, 0xF3, 0x9A, 0x2E,
0x01, /* Number of controls in this terminal */
0x01, /* Number of input pins in this terminal */
0x02, /* Source ID : 2 : Connected to Proc Unit */
0x03, /* Size of controls field for this terminal : 3 bytes */
0x01, 0x00, 0x00, /* Controls supported */
0x00, /* String descriptor index : Not used */
#else
/* Extension Unit Descriptor */
0x1C, /* Descriptor size */
0x24, /* Class specific interface desc type */
0x06, /* Extension Unit Descriptor type */
0x03, /* ID of this terminal */
0xFF,0xFF,0xFF,0xFF, /* 16 byte GUID */
0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,
0x00, /* Number of controls in this terminal */
0x01, /* Number of input pins in this terminal */
0x02, /* Source ID : 2 : Connected to Proc Unit */
0x03, /* Size of controls field for this terminal : 3 bytes */
0x00,0x00,0x00, /* No controls supported */
0x00, /* String desc index : Not used */
#endif
/* Output Terminal Descriptor */
0x09, /* Descriptor size */
0x24, /* Class specific interface desc type */
0x03, /* Output Terminal Descriptor type */
0x04, /* ID of this terminal */
0x01,0x01, /* USB Streaming terminal type */
0x00, /* No association terminal */
0x03, /* Source ID : 3 : Connected to Extn Unit */
0x00, /* String desc index : Not used */
/* Video Control Status Interrupt Endpoint Descriptor */
0x07, /* Descriptor size */
CY_U3P_USB_ENDPNT_DESCR, /* Endpoint Descriptor Type */
CY_FX_EP_CONTROL_STATUS, /* Endpoint address and description */
CY_U3P_USB_EP_INTR, /* Interrupt End point Type */
0x40,0x00, /* Max packet size = 64 bytes */
0x08, /* Servicing interval : 8ms */
/* Class Specific Interrupt Endpoint Descriptor */
0x05, /* Descriptor size */
0x25, /* Class Specific Endpoint Descriptor Type */
CY_U3P_USB_EP_INTR, /* End point Sub Type */
0x40,0x00, /* Max packet size = 64 bytes */
/* Standard Video Streaming Interface Descriptor (Alternate Setting 0) */
0x09, /* Descriptor size */
CY_U3P_USB_INTRFC_DESCR, /* Interface Descriptor type */
0x01, /* Interface number */
0x00, /* Alternate setting number */
0x01, /* Number of end points : Zero Bandwidth */
0x0E, /* Interface class : CC_VIDEO */
0x02, /* Interface sub class : CC_VIDEOSTREAMING */
0x00, /* Interface protocol code : Undefined */
0x00, /* Interface descriptor string index */
/* Class-specific Video Streaming Input Header Descriptor */
0x0E, /* Descriptor size */
0x24, /* Class-specific VS I/f Type */
0x01, /* Descriptotor Subtype : Input Header */
0x01, /* 1 format desciptor follows */
0x47,0x00, /* Total size of Class specific VS descr */
CY_FX_EP_BULK_VIDEO, /* EP address for BULK video data */
0x00, /* No dynamic format change supported */
0x04, /* Output terminal ID : 4 */
0x01, /* Still image capture method 1 supported */
0x00, /* Hardware trigger NOT supported */
0x00, /* Hardware to initiate still image capture NOT supported */
0x01, /* Size of controls field : 1 byte */
0x00, /* D2 : Compression quality supported */
/* Class specific Uncompressed VS format descriptor */
0x1B, /* Descriptor size */
0x24, /* Class-specific VS I/f Type */
0x04, /* Subtype : uncompressed format I/F */
0x01, /* Format desciptor index (only one format is supported) */
0x01, /* number of frame descriptor followed */
#ifdef USE_YUY2_FORMAT
/* GFL: changed pixel encoding back to YUY2 for debugging
* GUID used to identify streaming-encoding format: YUY2
*/
YUY2_GUID,
#else
/* MEDIASUBTYPE_RGB565 GUID: E436EB7B-524F-11CE-9F53-0020AF0BA770 */
RGB565_GUID,
#endif
0x10, /* Number of bits per pixel used to specify color in the decoded video frame.
0 if not applicable: 16 bit per pixel */
0x01, /* Optimum Frame Index for this stream: 1 */
PYTHON480_X_RATIO, /* X dimension of the picture aspect ratio; Non-interlaced; Changed by GL*/
PYTHON480_Y_RATIO, /* Y dimension of the pictuer aspect ratio: Non-interlaced; Changed by GL*/
0x00, /* Interlace Flags: Progressive scanning, no interlace */
0x00, /* duplication of the video stream restriction: 0 - no restriction */
/* Class specific Uncompressed VS Frame descriptor: 288x288 120Hz */
0x1E, /* Descriptor size */
0x24, /* Descriptor type*/
0x05, /* Subtype: uncompressed frame I/F */
0x01, /* Frame Descriptor Index */
0x01, /* Still image capture method 1 supported, fixed frame rate */
PYTHON480_X_LENGTH_30FPS, /* Width in pixel; Changed by GL */
PYTHON480_Y_LENGTH_30FPS, /* Height in pixel; Changed by GL */
PYTHON480_BITRATE_30FPS, /* Min bit rate bits/s. Not specified, taken from MJPEG; */
PYTHON480_BITRATE_30FPS, /* Max bit rate bits/s. Not specified, taken from MJPEG; */
PYTHON480_FRAMESIZE_BYTES_30FPS, /* Maximum video or still frame size in bytes(Deprecated) */
INTERVAL_30FPS_100NS_MULTIPLE, /* Default Frame Interval: 30 FPS, Changed by JRS */
0x01, /* Frame interval(Frame Rate) types: Only one frame interval supported */
INTERVAL_30FPS_100NS_MULTIPLE, /* Shortest Frame Interval, Changed by JRS */
/* Endpoint Descriptor for BULK Streaming Video Data */
0x07, /* Descriptor size */
CY_U3P_USB_ENDPNT_DESCR, /* Endpoint Descriptor Type */
CY_FX_EP_BULK_VIDEO, /* Endpoint address and description */
0x02, /* BULK End point */
(uint8_t)(512 & 0x00FF), /* High speed max packet size is always 512 bytes. */
(uint8_t)((512 & 0xFF00)>>8),
0x00 /* Servicing interval for data transfers */
#ifdef USB_DEBUG_INTERFACE
,
0x09, /* Descriptor size */
CY_U3P_USB_INTRFC_DESCR, /* Interface Descriptor type */
0x02, /* Interface number */
0x00, /* Alternate setting number */
0x02, /* Number of end points */
0xFF, /* Interface class */
0x00, /* Interface sub class */
0x00, /* Interface protocol code */
0x00, /* Interface descriptor string index */
/* Endpoint descriptor for producer EP */
0x07, /* Descriptor size */
CY_U3P_USB_ENDPNT_DESCR, /* Endpoint descriptor type */
CY_FX_EP_DEBUG_CMD, /* Endpoint address and description */
CY_U3P_USB_EP_BULK, /* Bulk endpoint type */
0x00,0x02, /* Max packet size = 512 bytes */
0x00, /* Servicing interval for data transfers : 0 for bulk */
/* Endpoint descriptor for consumer EP */
0x07, /* Descriptor size */
CY_U3P_USB_ENDPNT_DESCR, /* Endpoint descriptor type */
CY_FX_EP_DEBUG_RSP, /* Endpoint address and description */
CY_U3P_USB_EP_BULK, /* Bulk endpoint type */
0x00,0x02, /* Max packet size = 512 bytes */
0x00 /* Servicing interval for data transfers : 0 for Bulk */
#endif
};
/* BOS for SS */
#define CY_FX_BOS_DSCR_TYPE 15
#define CY_FX_DEVICE_CAPB_DSCR_TYPE 16
#define CY_FX_SS_EP_COMPN_DSCR_TYPE 48
/* Device Capability Type Codes */
#define CY_FX_WIRELESS_USB_CAPB_TYPE 1
#define CY_FX_USB2_EXTN_CAPB_TYPE 2
#define CY_FX_SS_USB_CAPB_TYPE 3
#define CY_FX_CONTAINER_ID_CAPBD_TYPE 4
const uint8_t CyFxUSBBOSDscr[] =
{
0x05, /* Descriptor Size */
CY_FX_BOS_DSCR_TYPE, /* Device Descriptor Type */
0x16,0x00, /* Length of this descriptor and all sub descriptors */
0x02, /* Number of device capability descriptors */
/* USB 2.0 Extension */
0x07, /* Descriptor Size */
CY_FX_DEVICE_CAPB_DSCR_TYPE, /* Device Capability Type descriptor */
CY_FX_USB2_EXTN_CAPB_TYPE, /* USB 2.0 Extension Capability Type */
0x1E,0x64,0x00,0x00, /* Supported device level features: LPM support, BESL supported,
Baseline BESL=400 us, Deep BESL=1000 us. */
/* SuperSpeed Device Capability */
0x0A, /* Descriptor Size */
CY_FX_DEVICE_CAPB_DSCR_TYPE, /* Device Capability Type descriptor */
CY_FX_SS_USB_CAPB_TYPE, /* SuperSpeed Device Capability Type */
0x00, /* Supported device level features */
0x0E,0x00, /* Speeds Supported by the device : SS, HS and FS */
0x03, /* Functionality support */
0x00, /* U1 Device Exit Latency */
0x00,0x00 /* U2 Device Exit Latency */
};
/* Super Speed Configuration Descriptor */
const uint8_t CyFxUSBSSConfigDscr[] =
{
/* Configuration Descriptor Type */
0x09, /* Descriptor Size */
CY_U3P_USB_CONFIG_DESCR, /* Configuration Descriptor Type */
#ifdef USB_DEBUG_INTERFACE
#ifdef FX3_UVC_1_0_SUPPORT
0x1A, 0x01, //0xFC,0x00, /* Total length of this and all sub-descriptors. */
#else
0x1B, 0x01, //0xFD,0x00, /* Total length of this and all sub-descriptors. */
#endif
0x03, /* Number of interfaces */
#else
#ifdef FX3_UVC_1_0_SUPPORT
0xF7, 0x00, //0xD9,0x00, /* Length of this descriptor and all sub descriptors */
#else
0xF8, 0x00, //0xDA,0x00, /* Length of this descriptor and all sub descriptors */
#endif
0x02, /* Number of interfaces */
#endif
0x01, /* Configuration number */
0x00, /* Configuration string index */
0x80, /* Config characteristics - Bus powered */
0x32, /* Max power consumption of device (in 8mA unit) : 400mA */
/* Interface Association Descriptor */
0x08, /* Descriptor Size */
CY_FX_INTF_ASSN_DSCR_TYPE, /* Interface Association Descr Type: 11 */
0x00, /* I/f number of first VideoControl i/f */
0x02, /* Number of Video i/f */
0x0E, /* CC_VIDEO : Video i/f class code */
0x03, /* SC_VIDEO_INTERFACE_COLLECTION : Subclass code */
0x00, /* Protocol : Not used */
0x02, /* String desc index for interface */
/* Standard Video Control Interface Descriptor */
0x09, /* Descriptor size */
CY_U3P_USB_INTRFC_DESCR, /* Interface Descriptor type */
0x00, /* Interface number */
0x00, /* Alternate setting number */
0x01, /* Number of end points */
0x0E, /* CC_VIDEO : Interface class */
0x01, /* CC_VIDEOCONTROL : Interface sub class */
0x00, /* Interface protocol code */
0x02, /* Interface descriptor string index */
/* Class specific VC Interface Header Descriptor */
0x0D, /* Descriptor size */
0x24, /* Class Specific I/f Header Descriptor type */
0x01, /* Descriptor Sub type : VC_HEADER */
#ifdef FX3_UVC_1_0_SUPPORT
0x00, 0x01, /* Revision of UVC class spec: 1.0 - Legacy version */
0x50, 0x00, /* Total Size of class specific descriptors (till Output terminal) */
#else
0x10, 0x01, /* Revision of UVC class spec: 1.1 - Minimum version required
for USB Compliance. Not supported on Windows XP*/
0x51, 0x00, /* Total Size of class specific descriptors (till Output terminal) */
#endif
0x00,0x6C,0xDC,0x02, /* Clock frequency : 48MHz(Deprecated) */
0x01, /* Number of streaming interfaces */
0x01, /* Video streaming I/f 1 belongs to VC i/f */
/* Input (Camera) Terminal Descriptor */
0x12, /* Descriptor size */
0x24, /* Class specific interface desc type */
0x02, /* Input Terminal Descriptor type */
0x01, /* ID of this terminal */
0x01,0x02, /* Camera terminal type */
0x00, /* No association terminal */
0x00, /* String desc index : Not used */
#ifdef UVC_PTZ_SUPPORT
(uint8_t)(wObjectiveFocalLengthMin&0xFF),
(uint8_t)((wObjectiveFocalLengthMin>>8)&0xFF),
(uint8_t)(wObjectiveFocalLengthMax&0xFF),
(uint8_t)((wObjectiveFocalLengthMax>>8)&0xFF),
(uint8_t)(wOcularFocalLength&0xFF),
(uint8_t)((wOcularFocalLength>>8)&0xFF),
#else
0x00,0x00, /* No optical zoom supported */
0x00,0x00, /* No optical zoom supported */
0x00,0x00, /* No optical zoom supported */
#endif
0x03, /* Size of controls field for this terminal : 3 bytes */
/* A bit set to 1 in the bmControls field indicates that
* the mentioned Control is supported for the video stream.
* D0: Scanning Mode
* D1: Auto-Exposure Mode
* D2: Auto-Exposure Priority
* D3: Exposure Time (Absolute)
* D4: Exposure Time (Relative)
* D5: Focus (Absolute)
* D6: Focus (Relative)
* D7: Iris (Absolute)
* D8: Iris (Relative)
* D9: Zoom (Absolute)
* D10: Zoom (Relative)
* D11: PanTilt (Absolute)
* D12: PanTilt (Relative)
* D13: Roll (Absolute)
* D14: Roll (Relative)
* D15: Reserved
* D16: Reserved
* D17: Focus, Auto
* D18: Privacy
* D19: Focus, Simple
* D20: Window
* D21: Region of Interest
* D22 D23: Reserved, set to zero
*/
#ifdef UVC_PTZ_SUPPORT
0x00,0x0A,0x00, /* bmControls field of camera terminal: PTZ supported */
#else
0x00,0x00,0x00, /* bmControls field of camera terminal: No controls supported */
#endif
/* Processing Unit Descriptor */
#ifdef FX3_UVC_1_0_SUPPORT
0x0C, /* Descriptor size */
#else
0x0D, /* Descriptor size */
#endif
0x24, /* Class specific interface desc type */
0x05, /* Processing Unit Descriptor type */
0x02, /* ID of this terminal */
0x01, /* Source ID : 1 : Connected to input terminal */
0x00,0x40, /* Digital multiplier */
0x03, /* Size of controls field for this terminal : 3 bytes */
PYTHON480_BM_CONTROLS, /* bmControls field of processing unit:
* Brightness control supported: changes exposure
* Hue control supported: changes LED brightness
* Saturation control supported: other commands to DAQ board
* Gain control supported: analog gain to pixel readings
* Changed by GL
*/
0x00, /* String desc index : Not used */
#ifndef FX3_UVC_1_0_SUPPORT
0x00, /* Analog Video Standards Supported: None */
#endif
#ifdef UVC_EXTENSION_UNIT
/* Extension Unit Descriptor */
0x1C, /* Descriptor size */
0x24, /* Class specific interface desc type */
0x06, /* Extension Unit Descriptor type */
0x03, /* ID of this terminal */
//static const GUID <<name>> =
//{ 0xacb6890c, 0xa3b3, 0x4060,{ 0x8b, 0x9a, 0xdf, 0x34, 0xee, 0xf3, 0x9a, 0x2e } };
0x0C, 0x89, 0xB6, 0xAC, /* GUID specific to AN75779 firmware. Obtained from Visual studio */
0xB3, 0xA3, 0x60, 0x40,
0x8B, 0x9A, 0xDF, 0x34,
0xEE, 0xF3, 0x9A, 0x2E,
0x01, /* Number of controls in this terminal */
0x01, /* Number of input pins in this terminal */
0x02, /* Source ID : 2 : Connected to Proc Unit */
0x03, /* Size of controls field for this terminal : 3 bytes */
0x01, 0x00, 0x00, /* Controls supported */
0x00, /* String descriptor index : Not used */
#else
/* Extension Unit Descriptor */
0x1C, /* Descriptor size */
0x24, /* Class specific interface desc type */
0x06, /* Extension Unit Descriptor type */
0x03, /* ID of this terminal */
0xFF,0xFF,0xFF,0xFF, /* 16 byte GUID */
0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,
0x00, /* Number of controls in this terminal */
0x01, /* Number of input pins in this terminal */
0x02, /* Source ID : 2 : Connected to Proc Unit */
0x03, /* Size of controls field for this terminal : 3 bytes */
0x00,0x00,0x00, /* No controls supported */
0x00, /* String desc index : Not used */
#endif
/* Output Terminal Descriptor */
0x09, /* Descriptor size */
0x24, /* Class specific interface desc type */
0x03, /* Output Terminal Descriptor type */
0x04, /* ID of this terminal */
0x01,0x01, /* USB Streaming terminal type */
0x00, /* No association terminal */
0x03, /* Source ID : 3 : Connected to Extn Unit */
0x00, /* String desc index : Not used */
/* Video Control Status Interrupt Endpoint Descriptor */
0x07, /* Descriptor size */
CY_U3P_USB_ENDPNT_DESCR, /* Endpoint Descriptor Type */
CY_FX_EP_CONTROL_STATUS, /* Endpoint address and description */
CY_U3P_USB_EP_INTR, /* Interrupt End point Type */
0x40,0x00, /* Max packet size = 64 bytes */
0x01, /* Servicing interval */
/* Super Speed Endpoint Companion Descriptor */
0x06, /* Descriptor size */
CY_U3P_SS_EP_COMPN_DESCR, /* SS Endpoint Companion Descriptor Type */
0x00, /* Max no. of packets in a Burst : 1 */
0x00, /* Attribute: N.A. */
0x00, /* Bytes per interval:1024 */
0x04,
/* Class Specific Interrupt Endpoint Descriptor */
0x05, /* Descriptor size */
0x25, /* Class Specific Endpoint Descriptor Type */
CY_U3P_USB_EP_INTR, /* End point Sub Type */
0x40,0x00, /* Max packet size = 64 bytes */
/* Standard Video Streaming Interface Descriptor (Alternate Setting 0) */
0x09, /* Descriptor size */
CY_U3P_USB_INTRFC_DESCR, /* Interface Descriptor type */
0x01, /* Interface number */
0x00, /* Alternate setting number */
0x01, /* Number of end points */
0x0E, /* Interface class : CC_VIDEO */
0x02, /* Interface sub class : CC_VIDEOSTREAMING */
0x00, /* Interface protocol code : Undefined */
0x00, /* Interface descriptor string index */
/* Class-specific Video Streaming Input Header Descriptor */
0x0E, /* Descriptor size */
0x24, /* Class-specific VS I/f Type */
0x01, /* Descriptotor Subtype : Input Header */
0x01, /* 1 format desciptor follows */
0x47,0x00, /* Total size of Class specific VS descr */
CY_FX_EP_BULK_VIDEO, /* EP address for BULK video data */
0x00, /* No dynamic format change supported */
0x04, /* Output terminal ID : 4 */
0x01, /* Still image capture method 1 supported */
0x00, /* Hardware trigger NOT supported */
0x00, /* Hardware to initiate still image capture NOT supported */
0x01, /* Size of controls field : 1 byte */
0x00, /* D2 : Compression quality supported */
/* Class specific Uncompressed VS format descriptor */
0x1B, /* Descriptor size */
0x24, /* Class-specific VS I/f Type */
0x04, /* Subtype : uncompressed format I/F */
0x01, /* Format desciptor index */
0x02, /* Number of frame descriptor followed */
#ifdef USE_YUY2_FORMAT
/* GFL: changed pixel encoding back to YUY2 for debugging
* GUID used to identify streaming-encoding format: YUY2
*/
YUY2_GUID,
#else
/* MEDIASUBTYPE_RGB565 GUID: E436EB7B-524F-11CE-9F53-0020AF0BA770 */
RGB565_GUID,
#endif
0x10, /* Number of bits per pixel */
0x01, /* Optimum Frame Index for this stream: 1 */
PYTHON480_X_RATIO, /* X dimension of the picture aspect ratio; Non-interlaced; Changed by GL*/
PYTHON480_Y_RATIO, /* Y dimension of the pictuer aspect ratio: Non-interlaced; Changed by GL*/
0x00, /* Interlace Flags: Progressive scanning, no interlace */
0x00, /* duplication of the video stream restriction: 0 - no restriction */
/* Class specific Uncompressed VS Frame descriptor: 288x288 120Hz */
0x1E, /* Descriptor size */
0x24, /* Descriptor type*/
0x05, /* Subtype: uncompressed frame I/F */
0x02, /* Frame Descriptor Index */
0x01, /* Still image capture method 1 supported, fixed frame rate */
PYTHON480_X_LENGTH_120FPS, /* Width in pixel; Changed by GL */
PYTHON480_Y_LENGTH_120FPS, /* Height in pixel; Changed by GL */
PYTHON480_BITRATE_120FPS, /* Min bit rate bits/s. Not specified, taken from MJPEG; */
PYTHON480_BITRATE_120FPS, /* Max bit rate bits/s. Not specified, taken from MJPEG; */
PYTHON480_FRAMESIZE_BYTES_120FPS, /* Maximum video or still frame size in bytes(Deprecated) */
INTERVAL_120FPS_100NS_MULTIPLE, /* Default Frame Interval: 30 FPS, Changed by JRS */
0x01, /* Frame interval(Frame Rate) types: Only one frame interval supported */
INTERVAL_120FPS_100NS_MULTIPLE, /* Shortest Frame Interval, Changed by JRS */
/* Class specific Uncompressed VS frame descriptor 608x608 30Hz*/
0x1E, /* Descriptor size */
0x24, /* Descriptor type*/
0x05, /* Subtype: uncompressed frame I/F */
0x01, /* Frame Descriptor Index */
0x01, /* Still image capture method 1 supported, fixed frame rate */
PYTHON480_X_LENGTH_30FPS, /* Width in pixel; Changed by GL */
PYTHON480_Y_LENGTH_30FPS, /* Height in pixel; Changed by GL */
PYTHON480_BITRATE_30FPS, /* Min bit rate bits/s. Not specified, taken from MJPEG; */
PYTHON480_BITRATE_30FPS, /* Max bit rate bits/s. Not specified, taken from MJPEG; */
PYTHON480_FRAMESIZE_BYTES_30FPS, /* Maximum video or still frame size in bytes(Deprecated) */
INTERVAL_30FPS_100NS_MULTIPLE, /* Default Frame Interval: 30 FPS, Changed by JRS */
0x01, /* Frame interval(Frame Rate) types: Only one frame interval supported */
INTERVAL_30FPS_100NS_MULTIPLE, /* Shortest Frame Interval, Changed by JRS */
/* Endpoint Descriptor for BULK Streaming Video Data */
0x07, /* Descriptor size */
CY_U3P_USB_ENDPNT_DESCR, /* Endpoint Descriptor Type */
CY_FX_EP_BULK_VIDEO, /* Endpoint address and description */
CY_U3P_USB_EP_BULK, /* BULK End point */
CY_FX_EP_BULK_VIDEO_PKT_SIZE_L, /* EP MaxPcktSize: 1024B */
CY_FX_EP_BULK_VIDEO_PKT_SIZE_H, /* EP MaxPcktSize: 1024B */
0x00, /* Servicing interval for data transfers */
/* Super Speed Endpoint Companion Descriptor */
0x06, /* Descriptor size */
CY_U3P_SS_EP_COMPN_DESCR, /* SS Endpoint Companion Descriptor Type */
0x0F, /* Max number of packets per burst: 16 */
0x00, /* Attribute: Streams not defined */
0x00, /* No meaning for bulk */
0x00
#ifdef USB_DEBUG_INTERFACE
,
0x09, /* Descriptor size */
CY_U3P_USB_INTRFC_DESCR, /* Interface Descriptor type */
0x02, /* Interface number */
0x00, /* Alternate setting number */
0x02, /* Number of end points */
0xFF, /* Interface class */
0x00, /* Interface sub class */
0x00, /* Interface protocol code */
0x00, /* Interface descriptor string index */
/* Endpoint descriptor for producer EP */
0x07, /* Descriptor size */
CY_U3P_USB_ENDPNT_DESCR, /* Endpoint descriptor type */
CY_FX_EP_DEBUG_CMD, /* Endpoint address and description */
CY_U3P_USB_EP_BULK, /* Bulk endpoint type */
0x00,0x04, /* Max packet size = 1024 bytes */
0x00, /* Servicing interval for data transfers : 0 for bulk */
/* Super speed endpoint companion descriptor for producer EP */
0x06, /* Descriptor size */
CY_U3P_SS_EP_COMPN_DESCR, /* SS endpoint companion descriptor type */
0, /* No burst support. */
0x00, /* Max streams for bulk EP = 0 (No streams) */
0x00,0x00, /* Service interval for the EP : 0 for bulk */
/* Endpoint descriptor for consumer EP */
0x07, /* Descriptor size */
CY_U3P_USB_ENDPNT_DESCR, /* Endpoint descriptor type */
CY_FX_EP_DEBUG_RSP, /* Endpoint address and description */
CY_U3P_USB_EP_BULK, /* Bulk endpoint type */
0x00,0x04, /* Max packet size = 1024 bytes */
0x00, /* Servicing interval for data transfers : 0 for Bulk */
/* Super speed endpoint companion descriptor for consumer EP */
0x06, /* Descriptor size */
CY_U3P_SS_EP_COMPN_DESCR, /* SS endpoint companion descriptor type */
0, /* No burst support. */
0x00, /* Max streams for bulk EP = 0 (No streams) */
0x00,0x00 /* Service interval for the EP : 0 for bulk */
#endif
};
/* Standard Language ID String Descriptor */
const uint8_t CyFxUSBStringLangIDDscr[] =
{
0x04, /* Descriptor Size */
CY_U3P_USB_STRING_DESCR, /* Device Descriptor Type */
0x09,0x04 /* Language ID supported */
};
/* Standard Manufacturer String Descriptor */
const uint8_t CyFxUSBManufactureDscr[] =
{
0x0E, /* Descriptor Size; Changed by GL */
CY_U3P_USB_STRING_DESCR, /* Device Descriptor Type */
'F',0x00, /* Changed by GL, and subsequent DESCR lines */
'e',0x00,
'e',0x00,
'L',0x00,
'a',0x00,
'b',0x00
};
/* Standard Product String Descriptor */
const uint8_t CyFxUSBProductDscr[] =
{
0x12, /* Descriptor Size; Changed by GL */
CY_U3P_USB_STRING_DESCR, /* Device Descriptor Type */
'F',0x00, /* Changed by GL, and subsequent DESCR lines */
'e',0x00,
'e',0x00,
'S',0x00,
'c',0x00,
'o',0x00,
'p',0x00,
'e',0x00
};