📄 slx11s.inc
字号:
;--------------------------------------------------------------------------
; slx11s.inc : SL11/SL811S definition
; Copyright: (c)1998 ScanLogic Corporation
;
; Revision: May/22/96 SNguyen Revised
; May/28/98 update & documentation
; Oct/23/00 Revised
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;Local Variables
;--------------------------------------------------------------------------
ImSize0 equ 20h ;Image copied of LineSize0 & LineSize1
ImSize1 equ 21h
iSize0 equ 22h ;temporary storage of ImSize0
iSize1 equ 23h ;used by the subroutine ChkSize80h
;--------------------------------------------------------------------------
; Usb Standard Command Package
;--------------------------------------------------------------------------
bmRequest equ 24h
bRequest equ 25h
wValue0 equ 26h ;wValue
wValue1 equ 27h
wIndex0 equ 28h ;wIndex
wIndex1 equ 29h
wLength0 equ 2ah
wLength1 equ 2bh
LineSize0 equ 28h ;LineSize base on wIndex
LineSize1 equ 29h
ConfigReg equ 2ch ;ConfigReg: setup from host (notused)
DmaFlags equ 2ch ;shared variable with ConfigReg
cmd1 reg 2ch.7 ;stepper command
EP3DataFlag reg 2ch.5 ;use by endpoint 3 DMA as DATA toggle bit
EP2DataFlag reg 2ch.4 ;use by endpoint 2 as DATA toggle bit
EP1DataFlag reg 2ch.3 ;use by endpoint 2 as DATA toggle bit
;--------------------------------------------------------------------------
;EP0 use for configuration and Vendor Specific command interface
;--------------------------------------------------------------------------
EP0Buf equ 40h ;use SL11/SL811S memory start at 0x40
EP0Len equ 40h ;length of config buffer EP0Buf
;--------------------------------------------------------------------------
;SL11/SL811S memory from 80h-ffh use as ping-pong buffer for endpoint1-endpoint3
;These buffers are share for endpoint 1-endpoint 3.
; For DMA: endpoint3 will be used
;--------------------------------------------------------------------------
uBufA equ 80h ;SL11/SL811S buffer A address for DATA0
uBufB equ c0h ;SL11/SL811S buffer B address for DATA1
uXferLen equ 40h ;SL11/SL811S xfer length
sMemSize equ c0h ;Total SL11/SL811S memory size
;--------------------------------------------------------------------------
;SL11/SL811S Register Control memory map
;--------------------------------------------------------------------------
CtrlReg equ 05h
IntStatus equ 0dh
USBAdd equ 07h
IntEna equ 06h
DATASet equ 0eh
DMACntLow equ 35h
DMACntHigh equ 36h
IntMask equ 57h ;Reset|DMA|EP0|EP2|EP1 for IntEna
HostMask equ 47h ;Host request command for IntStatus
ReadMask equ d7h ;Read mask interrupt for IntStatus
EP0Control equ 00h
EP0Address equ 01h
EP0XferLen equ 02h
EP0Status equ 03h
EP0Counter equ 04h
EP1AControl equ 10h
EP1AAddress equ 11h
EP1AXferLen equ 12h
EP1ACounter equ 14h
EP1BControl equ 18h
EP1BAddress equ 19h
EP1BXferLen equ 1ah
EP1BCounter equ 1ch
EP2AControl equ 20h
EP2AAddress equ 21h
EP2AXferLen equ 22h
EP2ACounter equ 24h
EP2BControl equ 28h
EP2BAddress equ 29h
EP2BXferLen equ 2ah
EP2BCounter equ 2ch
EP3AControl equ 30h
EP3AAddress equ 31h
EP3AXferLen equ 32h
EP3ACounter equ 34h
EP3BControl equ 38h
EP3BAddress equ 39h
EP3BXferLen equ 3ah
EP3BCounter equ 3ch
;--------------------------------------------------------------------------
;Standard Chapter 9 definition
;--------------------------------------------------------------------------
GET_STATUS equ 00h
CLEAR_FEATURE equ 01h
SET_FEATURE equ 03h
SET_ADDRESS equ 05h
GET_DESCRIPTOR equ 06h
SET_DESCRIPTOR equ 07h
GET_CONFIG equ 08h
SET_CONFIG equ 09h
GET_INTERFACE equ 0ah
SET_INTERFACE equ 0bh
DEVICE equ 01h
CONFIGURATION equ 02h
STRING equ 03h
INTERFACE equ 04h
ENDPOINT equ 05h
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -