GHI Electronics,LLC USBwiz User Manual
USBwiz Command Set
SC - Set Configuration (Raw Command)
Set USB configuration.
Format SC<SP>h>n<CR>
!00<CR>
h USB device handle 0, 1, 2
n Configuration number. First configuration is 1 not
0. 0 is not configured.
Example SC<SP>0>1<CR>
!00<CR>
FI - Find Interface (Raw Command)
Searches for an interface in the loaded configuration descriptor(LD command) in the
internal buffer with a specific criteria. Since several interface 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 FI<SP>cc<SP>ss<SP>pp<SP>ii<CR>
!00<CR>
$09<CR>
9 bytes in ASCII<CR>
!00<CR>
cc Class.
ss Subclass.
pp Protocol.
ii Zero-based index
09 is fixed
Example FI<SP>03<SP>01<SP>02<SP>00<CR>
!00<CR>
$09<CR>
09<SP>04<SP>00<SP>00<SP>01<SP>
03<SP>01<SP>02<SP>00<CR>
!00<CR>
Find the first interface(index = 0)
with Class(3), Subclass(1) and
protocol(2).
SI - Set Interface (Raw Command)
Only to be used after a Find Interface command (Resembles Set Interface setup
request).
Format SI<CR>
!00<CR>
FE - Find Endpoint (Raw Command)
Searches for an endpoint in the found interface(FI command) with a specific criteria.
The found endpoint descriptor is displayed in ASCII format and the bytes are separated
by space characters.
Format FE<SP>tt<SP>dd<CR>
!00<CR>
$07<CR>
7 bytes in ASCII<CR>
!00<CR>
tt Transfer type:
00 Control transfer.
01 Isochronous transfer.
02 Bulk transfer.
03 Interrupt transfer.
dd Data direction
Rev.2.27 Page 54 of 64 www.ghielectronics.com
Komentáře k této Příručce