B&B Electronics Parallel Printer Card PIOC Uživatelský manuál Strana 55

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 64
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 54
GHI Electronics,LLC USBwiz User Manual
USBwiz Command Set
00 Setup
01 Output
02 Input
07 is fixed
Example FE<SP>03<SP>02<CR>
!00<CR>
$07<CR>
07<SP>05<SP>81<SP>03<SP>
04<SP>00<SP>0A<CR>
!00<CR>
Find an endpoint in the previous interface
with interrupt transfer and input direction.
FD - Find Descriptor (Raw Command)
Searches for a descriptor in the loaded configuration descriptor(LD command) in the
internal buffer with a specific criteria. Since several descriptors might match a given
criteria, the search parameter “Index” specifies how many matching descriptors shall be
skipped.
The found interface descriptor is displayed in ASCII format and the bytes are separated
by space characters.
Format FD<SP>tt<SP>ii<CR>
!00<CR>
$ss<CR>
ss bytes in ASCII<CR>
!00<CR>
tt Descriptor Type
ii Zero-based index.
ss Data size in hexadecimal.
Example FD<SP>21<SP>00<CR>
!00<CR>
$09<CR>
09<SP>21<SP>10<SP>01<SP>00<SP>
01<SP>22<SP>34<SP>00<CR>
!00<CR>
Find the first descriptor(index = 0)
with (type = 0x21)
SS - Send Setup Request (Raw Command)
This command sends a USB setup transfer. Note that if an error occurred during any of
the communication stages (Setup, Data, Status), USBwiz will return “!” with error code
immediately without finishing all data transfer.
Format SS<SP>h>tt<SP>rr<SP>vvvv<SP>iiii<SP>lll<CR>
!00<CR>
h USB device handle 0, 1,
2
tt: bm RequestType
rr: bRequest
vvvv: wValue
iiii: wIndex
llll: wLength
No Data stage.
Rev.2.27 Page 55 of 64 www.ghielectronics.com
Zobrazit stránku 54
1 2 ... 50 51 52 53 54 55 56 57 58 59 60 ... 63 64

Komentáře k této Příručce

Žádné komentáře