A SERVICE OF

logo

Cypress CY3640 USB Starter Kit
User’s Guide
Cypress Semiconductor Ver 0.993
Page 39
USBEndP0TxRespond :equ 80h ;
USBEndP1TxConfig :equ 11h ;
USBEndP1TxCount0 :equ 01h
USBEndP1TxCount1 :equ 02h
USBEndP1TxCount2 :equ 04h
USBEndP1TxCount3 :equ 08h
USBEndP1TxEnable :equ 10h ;
USBEndP1TxStall :equ 20h ;
USBEndP1TxSequence :equ 40h ;
USBEndP1TxRespond :equ 80h
;*************************************************
; USB Protocol
;union USBRqst
;{ struct
; { BYTE bReceipient :5; //
0=Device,1=Interface,2=Endpoint,3=Other,4..31=Reserved
; BYTE bType :2; // 1=Standard,1=Class,2=Vendor,3=Reserved
; BYTE bDirection :1; // 0=Host to Device,1=Device to Host
; BYTE bRqst; //
; // 0x00,0x01,0x02 =Clear Feature
; // 0x00,0x01,0x02 =Set Feature
; // 0x80,0x81,0x82 =Get Status
; // 0x00 =Set Address
; // 0x80 =Get Descriptor
; // 0x00 =Set Descriptor
; // 0x80 =Get Configuration
; // 0x81 =Get Interface
; // 0x01 =Set Interface
; // 0x82 =Synch Frame
; WORD wValue; //
; WORD wIndex; //
; WORD wLength; //
; }
;}
;*************************************************
; USB Protocol
USBRqstType :equ USBEndP0FIFO_0 ;
USBRqstTypeDirection :equ 80h ; 1=Device to Host,0=Host to Device
USBRqstTypeMask :equ 60h
USBRqstTypeStandard :equ 00h
USBRqstTypeClass :equ 20h
USBRqstTypeVendor :equ 40h
USBRqstTypeReserved :equ 60h
USBRqstTargetDevice :equ 00h
USBRqstTargetInterface :equ 01h
USBRqstTargetEndPoint :equ 02h
USBRqstTargetOther :equ 03h
USBRqstMessage :equ USBEndP0FIFO_1 ;
USBRqstGetStatus :equ 00h ; bit field: 0x01 =Self powered,0x02 =Remote
wakeup
USBRqstClearFeature :equ 01h
USBRqstReserved02 :equ 02h
USBRqstSetFeature :equ 03h
USBRqstReserved04 :equ 04h
USBRqstSetAddress :equ 05h
USBRqstGetDescriptor :equ 06h
USBRqstSetDescriptor :equ 07h
USBRqstGetConfiguration :equ 08h
USBRqstSetConfiguration :equ 09h
USBRqstGetInterface :equ 0Ah
USBRqstSetInterface :equ 0Bh
USBRqstSynchFrame :equ 0Ch
USBRqstReserved0D :equ 0Dh
USBRqstWordValueLo :equ USBEndP0FIFO_2 ;