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

📄 wdf_dscr.a51

📁 使用Jungo Windriver開發的USB driver 及其firmware,類型為mass storage,應用於FX2(Cypress CY68013A)上.
💻 A51
字号:
;;-----------------------------------------------------------------------------
;;   File:      wdf_dscr.a51
;;
;;   Contents:  Descriptor data tables definitions for l123456 devices,
;;              based on the Cypress FX2LP (CY7C68013A) development board
;;
;;   Code was generated by DriverWizard v8.02 - http://www.jungo.com
;;   Copyright (c) 2008 Jungo Ltd.  http://www.jungo.com 
;;-----------------------------------------------------------------------------

DSCR_DEVICE         equ   1   ;; Descriptor type: Device
DSCR_CONFIG         equ   2   ;; Descriptor type: Configuration
DSCR_STRING         equ   3   ;; Descriptor type: String
DSCR_INTRFC         equ   4   ;; Descriptor type: Interface
DSCR_ENDPNT         equ   5   ;; Descriptor type: Endpoint
DSCR_DEVQUAL        equ   6   ;; Descriptor type: Device Qualifier
DSCR_INTERFC_ASSC   equ  11   ;; Descriptor type: Interface Association

DSCR_DEVICE_LEN         equ   18
DSCR_CONFIG_LEN         equ    9
DSCR_INTRFC_LEN         equ    9
DSCR_ENDPNT_LEN         equ    7
DSCR_DEVQUAL_LEN        equ   10
DSCR_INTERFC_ASSC_LEN   equ    8

Control      equ   0   ;; Endpoint type: Control
Isochronous  equ   1   ;; Endpoint type: Isochronous
Bulk         equ   2   ;; Endpoint type: Bulk
Interrupt    equ   3   ;; Endpoint type: Interrupt

public      DeviceDscr, DeviceQualDscr, HighSpeedConfigDscr, FullSpeedConfigDscr, StringDscr, UserDscr

DSCR   SEGMENT   CODE PAGE

;;-----------------------------------------------------------------------------
;; Global Variables
;;-----------------------------------------------------------------------------
    rseg DSCR      ;; locate the descriptor table in on-part memory.

DeviceDscr:
    db   DSCR_DEVICE_LEN      ;; Descriptor length
    db   DSCR_DEVICE          ;; Decriptor type
    dw   0002H                ;; Specification Version (BCD)
    db   000H                 ;; Device class
    db   000H                 ;; Device sub-class
    db   000H                 ;; Device protocol class
    db   64                   ;; Maximum packet size
    dw   07856H               ;; Vendor ID
    dw   03412H               ;; Product ID
    dw   0000H                ;; Product version ID
    db   1                     ;; Manufacturer string index
    db   2                     ;; Product string index
    db   0                    ;; Serial number string index
    db   1                    ;; Number of configurations

DeviceQualDscr:
    db   DSCR_DEVQUAL_LEN     ;; Descriptor length
    db   DSCR_DEVQUAL         ;; Decriptor type
    dw   0002H                ;; Specification Version (BCD)
    db   00H                  ;; Device class
    db   00H                  ;; Device sub-class
    db   00H                  ;; Device protocol
    db   64                   ;; Maximum packet size
    db   1                    ;; Number of configurations
    db   0                    ;; Reserved

HighSpeedConfigDscr:
    db   DSCR_CONFIG_LEN     ;; Descriptor length
    db   DSCR_CONFIG         ;; Descriptor type
    db   (HighSpeedConfigDscrEnd-HighSpeedConfigDscr) mod 256 ;; Total Length (LSB)
    db   (HighSpeedConfigDscrEnd-HighSpeedConfigDscr)  /  256 ;; Total Length (MSB)
    db   1                   ;; Number of interfaces
    db   1                   ;; Configuration number
    db   0                   ;; Configuration string
    db   10000000b           ;; Attributes (b7 - buspwr, b6 - selfpwr, b5 - rwu)
    db   50                  ;; Power requirement (div 2 ma)

;; Interface Descriptor
    db   DSCR_INTRFC_LEN      ;; Descriptor length
    db   DSCR_INTRFC          ;; Descriptor type
    db   0                    ;; Zero-based index of this interface
    db   0                    ;; Alternate setting
    db   1                    ;; Number of end points
    db   008H                 ;; Interface class
    db   006H                 ;; Interface sub class
    db   050H                 ;; Interface sub sub class
    db   0                    ;; Interface descriptor string index

;; Endpoint Descriptor
    db   DSCR_ENDPNT_LEN      ;; Descriptor length
    db   DSCR_ENDPNT          ;; Descriptor type
    db   01H                  ;; Endpoint number, and direction
    db   Bulk                 ;; Endpoint type
    db   000H                 ;; Maximun packet size (LSB)
    db   002H                 ;; Max packect size (MSB)
    db   000H                 ;; Polling interval
HighSpeedConfigDscrEnd:

db 00     ;; Align FullSpeedConfigDscr to an even address
FullSpeedConfigDscr:
    db   DSCR_CONFIG_LEN     ;; Descriptor length
    db   DSCR_CONFIG         ;; Descriptor type
    db   (FullSpeedConfigDscrEnd-FullSpeedConfigDscr) mod 256 ;; Total Length (LSB)
    db   (FullSpeedConfigDscrEnd-FullSpeedConfigDscr)  /  256 ;; Total Length (MSB)
    db   1                   ;; Number of interfaces
    db   1                   ;; Configuration number
    db   0                   ;; Configuration string
    db   10000000b           ;; Attributes (b7 - buspwr, b6 - selfpwr, b5 - rwu)
    db   50                  ;; Power requirement (div 2 ma)

;; Interface Descriptor
    db   DSCR_INTRFC_LEN      ;; Descriptor length
    db   DSCR_INTRFC          ;; Descriptor type
    db   0                    ;; Zero-based index of this interface
    db   0                    ;; Alternate setting
    db   1                    ;; Number of end points
    db   008H                 ;; Interface class
    db   006H                 ;; Interface sub class
    db   050H                 ;; Interface sub sub class
    db   0                    ;; Interface descriptor string index

;; Endpoint Descriptor
    db   DSCR_ENDPNT_LEN      ;; Descriptor length
    db   DSCR_ENDPNT          ;; Descriptor type
    db   01H                  ;; Endpoint number, and direction
    db   Bulk                 ;; Endpoint type
    db   040H                 ;; Maximun packet size (LSB)
    db   000H                 ;; Max packect size (MSB)
    db   000H                 ;; Polling interval
FullSpeedConfigDscrEnd:

db 00     ;; Align StringDscr to an even address
StringDscr:

StringDscr0:
    db   StringDscr0End-StringDscr0      ;; String descriptor length
    db   DSCR_STRING
    db   09H,04H
StringDscr0End:

StringDscr1:
    db   StringDscr1End-StringDscr1      ;; String descriptor length
    db   DSCR_STRING
    db   'p',00
    db   'p',00
    db   'p',00
StringDscr1End:

StringDscr2:
    db   StringDscr2End-StringDscr2      ;; String descriptor length
    db   DSCR_STRING
    db   'p',00
    db   'p',00
    db   'p',00
StringDscr2End:

UserDscr:
    dw   0000H
    end

⌨️ 快捷键说明

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