⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gphid_descriptors.lst

📁 基于sy2100 ez-usb开发板的程序
💻 LST
字号:
A51 MACRO ASSEMBLER  GPHID_DESCRIPTORS                                                    10/10/2001 19:23:09 PAGE     1


MACRO ASSEMBLER A51 V6.10
OBJECT MODULE PLACED IN .\gpHID_descriptors.OBJ
ASSEMBLER INVOKED BY: C:\KEIL\C51\BIN\A51.EXE .\gpHID_descriptors.a51 SET(SMALL) DEBUG EP

LOC  OBJ            LINE     SOURCE

                       1     ; HID_descriptors.a51
                       2     ; Contains the Device Descriptor, Configuration(/Interface/HID/Endpoint) Descriptor,
                       3     ; and String descriptors.
                       4     ; 
                       5     ; There are two advantages to putting these into an assembly file rather than in-likne
                       6     ; in the C module:
                       7     ;       1.      Descriptor lengths can be computed using the 'db' directive.
                       8     ;       2.      Labels may be assigned in the middle of a discriptor (HID)
                       9     ;
                      10     public  DeviceDescr,ConfigDescr,String0,String1,String2,HIDDescr,ReportDescr,ReportDescr_en
                             d
                      11     ;
  0547                12     VID     equ     0547h
  7450                13     PID     equ     7450h
  0001                14     DID     equ     0001h
                      15     ;
                      16     DSCR    segment CODE
                      17     ;
----                  18             rseg    DSCR
0000                  19     DeviceDescr:    
0000 12               20             db      18d                     ; Descriptor length
0001 01               21             db      01h                     ; Descriptor type = DEVICE
0002 1001             22             db      10h,01h                 ; spec version (BCD) is 1.10
0004 000000           23             db      0,0,0                   ; HID class is defined in the interface descriptor
0007 40               24             db      64                      ; maxPacketSize
0008 4705             25             db      LOW(VID),HIGH(VID)
000A 5074             26             db      LOW(PID),HIGH(PID)
000C 0100             27             db      LOW(DID),HIGH(DID)
000E 010203           28             db      01h,02h,03h             ; manuf, product, s/n string index (no s/n)
0011 01               29             db      01h                     ; number of configurations
0012                  30     ConfigDescr:
0012 09               31             db      09h                     ; descriptor length
0013 02               32             db      02h                     ; Descriptor type = CONFIG
0014 29               33             db      LOW(EPend-ConfigDescr)  ; total length (conf+interface+HID+EP's)
0015 00               34             db      HIGH(EPend-ConfigDescr)
0016 01               35             db      01h                     ; number of interfaces
0017 01               36             db      01h                     ; value to select this interface
0018 04               37             db      04h                     ; string index to describe this config
0019 A0               38             db      10100000b               ; b7=1; b6=self-powered; b5=Remote WU
001A 32               39             db      50d                     ; bus power = 100 ma
                      40     ; Interface Descriptor
001B 09               41             db      09h                     ; Descriptor length
001C 04               42             db      04h                     ; Descriptor type = INTERFACE
001D 0000             43             db      0,0                     ; Interface 0, Alternate setting 0
001F 02               44             db      02h                     ; number of endpoints
0020 030000           45             db      03h,0,0                 ; class(03)=HID, no subclass or protocol
0023 05               46             db      05h                     ; string index for this interface
0024                  47     HIDDescr:
0024 09               48             db      09h                     ; Descriptor length
0025 21               49             db      21h                     ; Descriptor type - HID
0026 1001             50             db      10h,01h                 ; HID Spec version 1.10
0028 00               51             db      0                       ; country code(none)
0029 01               52             db      01h                     ; number of HID class descriptors
002A 22               53             db      22h                     ; class descriptor type: REPORT
002B 22               54             db      LOW(ReportDescr_end - ReportDescr)
002C 00               55             db      HIGH(ReportDescr_end - ReportDescr)
                      56     ; I-0, AS-0, first endpoint descriptor (EP1IN)
002D 07               57             db      07h                     ; Descriptor length
A51 MACRO ASSEMBLER  GPHID_DESCRIPTORS                                                    10/10/2001 19:23:09 PAGE     2

002E 05               58             db      05h                     ; Descriptor type = ENDPOINT
002F 81               59             db      81h                     ; IN-1
0030 03               60             db      03h                     ; type - INTERRUPT
0031 4000             61             db      64d,0                   ; maxPacketSize = 64
0033 0A               62             db      10d                     ; polling interval is 10 msec
                      63     ; I-0, AS-0, second endpoint descriptor (EP1OUT)
0034 07               64             db      07h                     ; Descriptor length
0035 05               65             db      05h                     ; Descriptor type = ENDPOINT
0036 01               66             db      01h                     ; OUT-1
0037 03               67             db      03h                     ; type - INTERRUPT
0038 4000             68             db      64d,0                   ; maxPacketSize = 64
003A 0A               69             db      10d                     ; polling interval is 10 msec
003B                  70     EPend:
                      71     ;
003B 06A0FF           72     ReportDescr:    db      06h,0A0h,0FFh   ; Usage page (vendor-defined:FF00-FFFF)
003E 09A5             73                     db      09h,0A5h        ; Usage (vendor defines 'A5')
0040 A101             74                     db      0A1h,01h        ; Collection(application)
0042 09A6             75                     db      09h,0A6h        ;       Usage (vendor)
                      76     ; The input report
0044 09A7             77                     db      09h,0A7h        ;         Usage(vendor defines 'A7')
0046 1580             78                     db      15h,80h         ;         Logical minimum(-128)
0048 257F             79                     db      25h,7Fh         ;         Logical maximum(127)
004A 7508             80                     db      75h,08h         ;         Report size(8)
004C 9502             81                     db      95h,02h         ;         Report count(2)
004E 8102             82                     db      81h,02h         ;         Input(Data,Variable,Absolute)
                      83     ; The output report
0050 09A9             84                     db      09h,0A9h        ;       Usage (vendor defines 'A9')
0052 1580             85                     db      15h,80h         ;         Logical minimum(-128)
0054 257F             86                     db      25h,7Fh         ;         Logical maximum(127)
0056 7508             87                     db      75h,08h         ;         Report size(8)
0058 9502             88                     db      95h,02h         ;         Report count(2)
005A 9102             89                     db      91h,02h         ;         Output (Data, Variable, Absolute)
005C C0               90                     db      0C0h            ; End Collection
005D                  91     ReportDescr_end:
                      92     
005D                  93     String0:
005D 04030904         94             db      4,3,9,4                 ; string0 is language ID: len, type, lang, sub-lang
0061                  95     String1:                                ; manufacturer
0061 10               96             db      endStr1-String1         ; length is one byte for strings
0062 03               97             db      3                       ; Descriptor type = STRING
0063 43007900         98             db      'C',0,'y',0,'p',0,'r',0,'e',0,'s',0,'s',0
0067 70007200                
006B 65007300                
006F 7300                    
0071                  99     endStr1:
0071                 100     String2:                                ; product
0071 14              101             db      endStr2-String2
0072 03              102             db      3
0073 4C006100        103             db      'L',0,'a',0,'n',0,'e',0,'s',0,' ',0,'H',0,'I',0,'D',0
0077 6E006500                
007B 73002000                
007F 48004900                
0083 4400                    
                     104     
0085                 105     endStr2:
0085                 106     String3:                                ; Serial Number
0085 12              107             db      endStr3-String3 
0086 03              108             db      3
0087 53002F00        109             db      'S',0,'/',0,'N',0,' ',0,'0',0,'0',0,'0',0,'1',0
008B 4E002000                
008F 30003000                
0093 30003100                
                     110     
0097                 111     endStr3:        
0097                 112     String4:                                ; configuration
0097 16              113             db      endStr4-String4 
A51 MACRO ASSEMBLER  GPHID_DESCRIPTORS                                                    10/10/2001 19:23:09 PAGE     3

0098 03              114             db      3
0099 43006600        115             db      'C',0,'f',0,'g',0,'.',0,'s',0,'t',0,'r',0,'i',0,'n',0,'g',0
009D 67002E00                
00A1 73007400                
00A5 72006900                
00A9 6E006700                
00AD                 116     endStr4:
00AD                 117     String5:                                ; interface
00AD 16              118             db      endStr5-String5 
00AE 03              119             db      3
00AF 49006E00        120             db      'I',0,'n',0,'t',0,'e',0,'r',0,'f',0,'a',0,'c',0,'e',0,'X',0
00B3 74006500                
00B7 72006600                
00BB 61006300                
00BF 65005800                
00C3                 121     endStr5:
                     122     END
                             
A51 MACRO ASSEMBLER  GPHID_DESCRIPTORS                                                    10/10/2001 19:23:09 PAGE     4

SYMBOL TABLE LISTING
------ ----- -------


N A M E             T Y P E  V A L U E   ATTRIBUTES

CONFIGDESCR. . . .  C ADDR   0012H   R   SEG=DSCR
DEVICEDESCR. . . .  C ADDR   0000H   R   SEG=DSCR
DID. . . . . . . .  N NUMB   0001H   A   
DSCR . . . . . . .  C SEG    00C3H       REL=UNIT
ENDSTR1. . . . . .  C ADDR   0071H   R   SEG=DSCR
ENDSTR2. . . . . .  C ADDR   0085H   R   SEG=DSCR
ENDSTR3. . . . . .  C ADDR   0097H   R   SEG=DSCR
ENDSTR4. . . . . .  C ADDR   00ADH   R   SEG=DSCR
ENDSTR5. . . . . .  C ADDR   00C3H   R   SEG=DSCR
EPEND. . . . . . .  C ADDR   003BH   R   SEG=DSCR
HIDDESCR . . . . .  C ADDR   0024H   R   SEG=DSCR
PID. . . . . . . .  N NUMB   7450H   A   
REPORTDESCR. . . .  C ADDR   003BH   R   SEG=DSCR
REPORTDESCR_END. .  C ADDR   005DH   R   SEG=DSCR
STRING0. . . . . .  C ADDR   005DH   R   SEG=DSCR
STRING1. . . . . .  C ADDR   0061H   R   SEG=DSCR
STRING2. . . . . .  C ADDR   0071H   R   SEG=DSCR
STRING3. . . . . .  C ADDR   0085H   R   SEG=DSCR
STRING4. . . . . .  C ADDR   0097H   R   SEG=DSCR
STRING5. . . . . .  C ADDR   00ADH   R   SEG=DSCR
VID. . . . . . . .  N NUMB   0547H   A   


REGISTER BANK(S) USED: 0 

ASSEMBLY COMPLETE.  0 WARNING(S), 0 ERROR(S)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -