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

  • 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 20
GHI Electronics,LLC USBwiz User Manual
1. USBwiz Functions
MD USBWIZ Create “USBWIZ” folder
CD USBWIZ Change the current folder access to “USBWIZ” folder
Files
USBwiz allows you to open up to 4 files at the same time using file handles. This is not
how many files USBwiz can open on a drive. USBwiz can open thousand of files same
as your PC. Handles are used for fast access to a file. If a user needs to log data to 2
files at the same time, “VOLTAGE.LOG” and “CURRENT.LOG” file handles become
very useful. To do so, open VOLTAGE.LOG under handle 1 and CURRENT.LOG under
handle 2. Now start sending your data to handle 1 and 2 instead of the file name.
Handles can even point to files on different medias because USBwiz contains three
independent FAT cores.
6.3. USB Mass Storage
USBwiz has an internal USB Mass Storage Driver that can control two Mass Storage
Devices at the same time. In case there is a requirement to access a LUN, FM command
can be used with the LUN extension. FM p>l where p is the port number and l is the LUN
number. FM p command alone will use LUN0
FM 0
6.4. USB Human Interface Device
This USB class includes vast range of HID devices. Examples are: joysticks, mice and
keyboards.
First, the HID must be registered like any other USB device. We will initialize the HID
which is attached to USB port 1:
UH 1
Now USBwiz is ready get data from the HID which can be performed by Read HID:
HR 1
Then USBwiz will output the data size of the HID. Now, we can repeat HR 1 to read more
data from the device. It is normal for HR to return code “HID_NO_DATA”.
When the user read data from HID devices, it can represent different things depending on
the HID device. For example, it can represent a mouse move or a keyboard button press.
Your reference should be USB Device Class Definition for Human Interface Devices and
USB HID Usage Table from www.usb.org
Rev.2.27 Page 21 of 64 www.ghielectronics.com
Zobrazit stránku 20
1 2 ... 16 17 18 19 20 21 22 23 24 25 26 ... 63 64

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

Žádné komentáře