📄 usb_desc.ls1
字号:
00CD 437 string3Desc:
00CD 1A 438 DB 01AH
00CE 03 439 DB 003H
00CF 53 440 DB 053H
00D0 00 441 DB 000H
00D1 2F 442 DB 02FH
00D2 00 443 DB 000H
00D3 4E 444 DB 04EH
00D4 00 445 DB 000H
00D5 3A 446 DB 03AH
00D6 00 447 DB 000H
00D7 30 448 DB 030H
00D8 00 449 DB 000H
00D9 30 450 DB 030H
00DA 00 451 DB 000H
00DB 31 452 DB 031H
00DC 00 453 DB 000H
A51 MACRO ASSEMBLER USB_DESC 04/30/2004 12:57:59 PAGE 8
00DD 2F 454 DB 02FH
00DE 00 455 DB 000H
00DF 32 456 DB 032H
00E0 00 457 DB 000H
00E1 30 458 DB 030H
00E2 00 459 DB 000H
00E3 30 460 DB 030H
00E4 00 461 DB 000H
00E5 34 462 DB 034H
00E6 00 463 DB 000H
464
00E7 465 stringXDesc:
00E7 02 466 DB 002H
00E8 00 467 DB 000H
468
00E9 469 stringDescTable:
00E9 FF 470 DB 0FFH
00EA 0000 F 471 DW string0Desc + 0
00EC FF 472 DB 0FFH
00ED 0000 F 473 DW string1Desc + 0
00EF FF 474 DB 0FFH
00F0 0000 F 475 DW string2Desc + 0
00F2 FF 476 DB 0FFH
00F3 0000 F 477 DW string3Desc + 0
00F5 FF 478 DB 0FFH
00F6 0000 F 479 DW stringXDesc + 0
480
481 ; /* `=========================================================================`
482 ;
483 ; ***************************************
484 ; **** * * ****
485 ; Title: USB_DESC
486 ; File name: usb_desc.c
487 ; Project name: USB_DESC
488 ; *** ****
489 ; ****************** * ******************
490 ; **** ****
491 ; Author: Petr PFEIFER
492 ; MPG Prague, Czech Republic
493 ; **** * * ****
494 ; ***************************************
495 ;
496 ; $Version: 0.019a Build: April 30, 2004
497 ;
498 ; $Version: 0.019 Build: 2004-03-22,15:44:27
499 ;
500 ;
501 ;
502 ;
503 ;
504 ; Description:
505 ; ============
506 ; Version 0.19 String descriptor problem fixed.
507 ; Since version 0.018 PhysicalReportDesc added
508 ; Since version 0.016, no aux. string constants needed
509 ;
510 ;
511 ; based on USB demo version 7E
512 ; Author: Jon Moore
513 ; 07/22/02 (JAM) Initial coding.
514 ; 08/30/03 (JAM) Changed to ST vendor ID.
515 ;
516 ;
517 ; Notes:
518 ; ======
519 ; -none
A51 MACRO ASSEMBLER USB_DESC 04/30/2004 12:57:59 PAGE 9
520 ;
521 ;
522 ; ..........................
523 ; . .
524 ; . ****************** .
525 ; . **PPPPPPPPPPPPPPPP .
526 ; . *PPPP*******PP**** .
527 ; . **PPP********PP*** .
528 ; . ***PPP******PP**** .
529 ; . *****PPP****PP**** .
530 ; . *****PPP****PP**** .
531 ; . PPPPPPPP****PP**** (R) .
532 ; . .
533 ; ..........................
534 ;
535 ;
536 ; =-=-=-=-=-=
537 ; =-=-=-=-=-=-=-=-=-=-=-=-=
538 ; =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
539 ;
540 ; Copyright 2004 ST Microelectronics
541 ;
542 ; This code/file is provided as is and has no warranty,
543 ; implied or otherwise. You are free to use/modify any of the provided
544 ; code at your own risk in your applications with the expressed limitation
545 ; of liability (see below) so long as your product using the code
546 ; contains at least one uPSD products (device).
547 ;
548 ; LIMITATION OF LIABILITY:
549 ; ========================
550 ; NEITHER STMicroelectronics NOR ITS VENDORS OR AGENTS
551 ; SHALL BE LIABLE FOR ANY LOSS OF PROFITS, LOSS OF USE, LOSS OF DATA,
552 ; INTERRUPTION OF BUSINESS, NOR FOR INDIRECT, SPECIAL, INCIDENTAL OR
553 ; CONSEQUENTIAL DAMAGES OF ANY KIND WHETHER UNDER THIS AGREEMENT OR
554 ; OTHERWISE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
555 ;
556 ; =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
557 ; =-=-=-=-=-=-=-=-=-=-=-=-=
558 ; =-=-=-=-=-=
559 ;
560 ; For current information on uPSD products,
561 ; please consult our pages on the World Wide Web:
562 ;
563 ; www.st.com/psm
564 ;
565 ; - - - - - - - - - - - -
566 ;
567 ; STMicroelectronics GROUP OF COMPANIES
568 ; Australia - Brazil - China - Czech Republic - Finland - France - Germany
569 ; Hong Kong - India - Italy - Japan - Malaysia - Malta - Morocco - Singapore
570 ; Spain - Sweden - Switzerland - United Kingdom - U.S.A.
571 ;
572 ; http://www.st.com
573 ;
574 ;
575 ; `========================================================================` */
576 ;
577 ;
578 ; #pragma NOAREGS
579 ;
580 ;
581 ; #include "uPSD3200.h"
582 ; #include "usb.h"
583 ;
584 ;
585 ; const uchar code string1Desc[];
A51 MACRO ASSEMBLER USB_DESC 04/30/2004 12:57:59 PAGE 10
586 ; const uchar code string2Desc[];
587 ; const uchar code string3Desc[];
588 ; const uchar code stringXDesc[];
589 ;
590 ;
591 ;
592 ; #define REPORT_DESC_LEN sizeof(reportDesc)
593 ;
594 ; const uchar code reportDesc[] =
595 ; {
596 ; 0x06, 0xA0, 0xFF, // Usage page (vendor defined)
597 ; 0x09, 0xA5, // Usage (vendor defined)
598 ;
599 ; 0xA1, 0x01, // Collection (application)
600 ; 0x09, 0xA6, // Usage (vendor defined)
601 ;
602 ; // Feature report
603 ;
604 ; 0x09, 0xA5, // Usage (vendor defined)
605 ; 0x15, 0x80, // Logical min (-127)
606 ; 0x25, 0x7F, // Logical max (128)
607 ; 0x75, 0x08, // Report size (8 bits)
608 ; 0x95, 0x40, // Report count (64 bytes)
609 ; 0xB1, 0x02, // Feature (data, variable, absolute)
610 ;
611 ; // Input report
612 ;
613 ; 0x09, 0xA7, // Usage (vendor defined)
614 ; 0x15, 0x80, // Logical min (-127)
615 ; 0x25, 0x7F, // Logical max (128)
616 ; 0x75, 0x08, // Report size (8 bits)
617 ; 0x95, 0x08, // Report count (8 bytes)
618 ; 0x81, 0x02, // Input (data, variable, absolute)
619 ;
620 ; // Output report
621 ;
622 ; 0x09, 0xA9, // Usage (vendor defined)
623 ; 0x15, 0x80, // Logical min (-127)
624 ; 0x25, 0x7F, // Logical max (128)
625 ; 0x75, 0x08, // Report size (8 bits)
626 ; 0x95, 0x40, // Report count (64 bytes)
627 ; 0x91, 0x02, // Output (data, variable, absolute)
628 ;
629 ; 0xC0 // End Collection (Application)
630 ; }
631 ; ;
632 ;
633 ; const uchar code reportDescSize = REPORT_DESC_LEN;
634 ;
635 ;
636 ;
637 ;
638 ;
639 ; const uchar code PhysicalReportDesc[] =
640 ; {
641 ; 0,0,0 // no physical descriptor defined now
642 ; }
643 ; ;
644 ;
645 ; const uchar code PhysicalReportDescSize = sizeof(PhysicalReportDesc);
646 ;
647 ;
648 ;
649 ;
650 ;
651 ;
A51 MACRO ASSEMBLER USB_DESC 04/30/2004 12:57:59 PAGE 11
652 ; const device_descriptor code deviceDesc =
653 ; {
654 ; sizeof(device_descriptor), // Size of this Descriptor in Bytes
655 ; DT_DEVICE, // Descriptor Type (=1)
656 ; {
657 ; 0x10, 0x01 } //changed on April
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -