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

  • 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 43
GHI Electronics,LLC USBwiz User Manual
USBwiz Command Set
all of them must be sent; if an error occurs while writing, USBwiz still expects all bytes
before producing the final error code.
If any data is written to a file, the file must be flushed (FF command) or closed (CF
command) when done. Otherwise, the file and/or the file system might get corrupted.
Format WF<SP>n>ssssssss<CR>
!00<CR>
User sends data
$aaaaaaaa<CR>
!00<CR>
n File Handle
ssssssss HEX DWORD data size to be
written
aaaaaaaa HEX DWORD actual written
size
Example WF<SP>1>10<CR>
!00<CR>
1234567890abcdef
$00000010<CR>
!00<CR>
Write 16 bytes to the file opened with
handle 1
SH - Shadow Write to multiple Files
This command is similar to WF command except that it writes the same data into two or
three files simultaneously.
Format 1 SH<SP>n<SP>m>ssssssss<CR>
!00<CR>
User sends data
$aaaaaaa1 !00<CR>
$aaaaaaa2 !00<CR>
N First File Handle
m Second File Handle
ssssssss HEX DWORD data
size to be written
aaaaaaaa HEX DWORD actual
written data size to the first and
second handles
Format 2 SH<SP>n<SP>m<SP>o>ssssssss<CR>
!00<CR>
User sends data
$aaaaaaa1 !00<CR>
$aaaaaaa2 !00<CR>
$aaaaaaa3 !00<CR>
Same as the previous Format
except for having a third
shadow o Which is a third file
handle
Example SH<SP>1<SP>0<SP>3>10<CR>
!00<CR>
1234567890abcdef
$00000010 !00<CR>
$00000010 !00<CR>
$00000010 !00<CR>
Write 16 bytes to the files
opened with handles 1, 0, 3
USBwiz accepted the command
16 bytes of data to go into the
file
USBwiz was able to write 16
bytes to the three files
successfully with no errors
occurrence.
RW - Read from File, Write to other file
This command is very powerful and fast! If we have two files, one is opened for Read
Rev.2.27 Page 44 of 64 www.ghielectronics.com
Zobrazit stránku 43
1 2 ... 39 40 41 42 43 44 45 46 47 48 49 ... 63 64

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

Žádné komentáře