USB - DEVICE / HOST
USB Human Interface Device (HID) Support
204 M
X
800 SERIES PROGRAMMERS GUIDE
USB Human
Interface Device
(HID) Support
The M
x
800 series terminal also has built in USB HID support for some devices
through the Linux kernel Input Event module. When a HID is plugged into the USB
Host port, it is automatically detected and the appropriate USB HID and event
drivers are loaded. It is then possible to open, read/write, and close these devices
from an application. Currently, the M
x
800 series of terminals either partially or fully
supports HID’s:
USB Host Keyboard This enables an event interface to capture keys pressed on a
USB host keyboard. The M
x
800 series of terminals only
supports IBM AT keyboard scancode set 1 at this time. Other
scancode sets 2 and 3 are not supported. There is currently
full support for this device where it can be opened, read, and
closed using the M
x
800 series of terminals’ Input Library API.
This library consists of functions: inputOpen(),
inputRead(), and inputClose(). These are further
described in Chapter 12.
USB Host Scanner This enables an event interface to capture scanned data from
a USB handheld scanner. The scanner must utilize the IBM
AT keyboard scancode set 1. There is currently full support for
this device where it can be opened, read, and closed using the
M
x
800 series Input Library API. This library consists of
functions: inputOpen(), inputRead(), and
inputClose(). These are further described in Chapter 12.
USB Host Mouse This enables an event interface that an application can use to
capture events from a USB mouse. There is currently support
to open and close the event device, but is not fully supported
at this time. Further implementation of a complete API to read
events from the mouse may be done some time in the future.