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

📄 dscr.lst

📁 psoc_usb的代码,用来小卡测试的.没事下下来
💻 LST
📖 第 1 页 / 共 2 页
字号:
A51 MACRO ASSEMBLER  DSCR                                                                 01/31/2008 22:24:27 PAGE     1


MACRO ASSEMBLER A51 V8.00c
OBJECT MODULE PLACED IN dscr.OBJ
ASSEMBLER INVOKED BY: C:\Program Files\Keil\C51\BIN\A51.EXE dscr.a51 SET(SMALL) DEBUG EP

LOC  OBJ            LINE     SOURCE

                       1     ;;-----------------------------------------------------------------------------
                       2     ;;   File:      dscr.a51
                       3     ;;   Contents:  This file contains descriptor data tables.
                       4     ;;
                       5     ;; $Archive: /USB/Examples/Fx2lp/bulkloop/dscr.a51 $
                       6     ;; $Date: 9/01/03 8:51p $
                       7     ;; $Revision: 3 $
                       8     ;;
                       9     ;;
                      10     ;;-----------------------------------------------------------------------------
                      11     ;; Copyright 2003, Cypress Semiconductor Corporation
                      12     ;;-----------------------------------------------------------------------------;;----------
                             -------------------------------------------------------------------
                      13        
  0001                14     DSCR_DEVICE   equ   1   ;; Descriptor type: Device
  0002                15     DSCR_CONFIG   equ   2   ;; Descriptor type: Configuration
  0003                16     DSCR_STRING   equ   3   ;; Descriptor type: String
  0004                17     DSCR_INTRFC   equ   4   ;; Descriptor type: Interface
  0005                18     DSCR_ENDPNT   equ   5   ;; Descriptor type: Endpoint
  0006                19     DSCR_DEVQUAL  equ   6   ;; Descriptor type: Device Qualifier
                      20     
  0012                21     DSCR_DEVICE_LEN   equ   18
  0009                22     DSCR_CONFIG_LEN   equ    9
  0009                23     DSCR_INTRFC_LEN   equ    9
  0007                24     DSCR_ENDPNT_LEN   equ    7
  000A                25     DSCR_DEVQUAL_LEN  equ   10
                      26     
  0000                27     ET_CONTROL   equ   0   ;; Endpoint type: Control
  0001                28     ET_ISO       equ   1   ;; Endpoint type: Isochronous
  0002                29     ET_BULK      equ   2   ;; Endpoint type: Bulk
  0003                30     ET_INT       equ   3   ;; Endpoint type: Interrupt
                      31     
                      32     public      DeviceDscr, DeviceQualDscr, HighSpeedConfigDscr, FullSpeedConfigDscr, StringDsc
                             r, UserDscr
                      33     
                      34     DSCR   SEGMENT   CODE PAGE
                      35     
                      36     ;;-----------------------------------------------------------------------------
                      37     ;; Global Variables
                      38     ;;-----------------------------------------------------------------------------
----                  39           rseg DSCR      ;; locate the descriptor table in on-part memory.
                      40     
0000                  41     DeviceDscr:   
0000 12               42           db   DSCR_DEVICE_LEN      ;; Descriptor length
0001 01               43           db   DSCR_DEVICE   ;; Decriptor type
0002 0002             44           dw   0002H      ;; Specification Version (BCD)
0004 00               45           db   00H        ;; Device class
0005 00               46           db   00H        ;; Device sub-class
0006 00               47           db   00H        ;; Device sub-sub-class
0007 40               48           db   64         ;; Maximum packet size
                      49           
                      50           
0008 3705             51           dw   3705H      ;; Invente Vendor ID
000A 0301             52           dw   0301H      ;; PSoC detect
000C 0000             53           dw   0000H      ;; Product version ID
000E 01               54           db   1          ;; Manufacturer string index
000F 02               55           db   2          ;; Product string index
0010 00               56           db   0          ;; Serial number string index
A51 MACRO ASSEMBLER  DSCR                                                                 01/31/2008 22:24:27 PAGE     2

0011 01               57           db   1          ;; Number of configurations
                      58     
0012                  59     DeviceQualDscr:
0012 0A               60           db   DSCR_DEVQUAL_LEN   ;; Descriptor length
0013 06               61           db   DSCR_DEVQUAL   ;; Decriptor type
0014 0002             62           dw   0002H      ;; Specification Version (BCD)
0016 00               63           db   00H        ;; Device class
0017 00               64           db   00H         ;; Device sub-class
0018 00               65           db   00H         ;; Device sub-sub-class
0019 40               66           db   64         ;; Maximum packet size
001A 01               67           db   1         ;; Number of configurations
001B 00               68           db   0         ;; Reserved
                      69     
001C                  70     HighSpeedConfigDscr:   
001C 09               71           db   DSCR_CONFIG_LEN               ;; Descriptor length
001D 02               72           db   DSCR_CONFIG                  ;; Descriptor type
001E 2E               73           db   (HighSpeedConfigDscrEnd-HighSpeedConfigDscr) mod 256 ;; Total Length (LSB)
001F 00               74           db   (HighSpeedConfigDscrEnd-HighSpeedConfigDscr)  /  256 ;; Total Length (MSB)
0020 01               75           db   1      ;; Number of interfaces
0021 01               76           db   1      ;; Configuration number
0022 00               77           db   0      ;; Configuration string
0023 80               78           db   10000000b   ;; Attributes (b7 - buspwr, b6 - selfpwr, b5 - rwu)
0024 32               79           db   50      ;; Power requirement (div 2 ma)
                      80     
                      81     ;; Interface Descriptor
0025 09               82           db   DSCR_INTRFC_LEN      ;; Descriptor length
0026 04               83           db   DSCR_INTRFC         ;; Descriptor type
0027 00               84           db   0               ;; Zero-based index of this interface
0028 00               85           db   0               ;; Alternate setting
0029 04               86           db   4               ;; Number of end points 
002A FF               87           db   0ffH            ;; Interface class
002B 00               88           db   00H               ;; Interface sub class
002C 00               89           db   00H               ;; Interface sub sub class
002D 00               90           db   0               ;; Interface descriptor string index
                      91           
                      92     ;; Endpoint Descriptor
002E 07               93           db   DSCR_ENDPNT_LEN      ;; Descriptor length
002F 05               94           db   DSCR_ENDPNT         ;; Descriptor type
0030 02               95           db   02H               ;; Endpoint number, and direction
0031 02               96           db   ET_BULK            ;; Endpoint type
0032 00               97           db   00H               ;; Maximun packet size (LSB)
0033 02               98           db   02H               ;; Max packect size (MSB)
0034 00               99           db   00H               ;; Polling interval
                     100     
                     101     ;; Endpoint Descriptor
0035 07              102           db   DSCR_ENDPNT_LEN      ;; Descriptor length
0036 05              103           db   DSCR_ENDPNT         ;; Descriptor type
0037 04              104           db   04H               ;; Endpoint number, and direction
0038 02              105           db   ET_BULK            ;; Endpoint type
0039 00              106           db   00H               ;; Maximun packet size (LSB)
003A 02              107           db   02H               ;; Max packect size (MSB)
003B 00              108           db   00H               ;; Polling interval
                     109     
                     110     ;; Endpoint Descriptor
003C 07              111           db   DSCR_ENDPNT_LEN      ;; Descriptor length
003D 05              112           db   DSCR_ENDPNT         ;; Descriptor type
003E 86              113           db   86H               ;; Endpoint number, and direction
003F 02              114           db   ET_BULK            ;; Endpoint type
0040 00              115           db   00H               ;; Maximun packet size (LSB)
0041 02              116           db   02H               ;; Max packect size (MSB)
0042 00              117           db   00H               ;; Polling interval
                     118     
                     119     ;; Endpoint Descriptor
0043 07              120           db   DSCR_ENDPNT_LEN      ;; Descriptor length
0044 05              121           db   DSCR_ENDPNT         ;; Descriptor type
0045 88              122           db   88H               ;; Endpoint number, and direction
A51 MACRO ASSEMBLER  DSCR                                                                 01/31/2008 22:24:27 PAGE     3

0046 02              123           db   ET_BULK            ;; Endpoint type
0047 00              124           db   00H               ;; Maximun packet size (LSB)
0048 02              125           db   02H               ;; Max packect size (MSB)
0049 00              126           db   00H               ;; Polling interval
                     127     
004A                 128     HighSpeedConfigDscrEnd:   
                     129     
004A                 130     FullSpeedConfigDscr:   

⌨️ 快捷键说明

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