Home |
Keyboard Class Driver AX772/AX178 and AX172 USB-Ethernet Drivers |
Keyboard Class DriverThe keyboard driver supports all USB keyboards using USB class 3 (HID), subclass 1 (boot device), protocol 1 (keyboard). Up to four keyboards can be operated simultaneously; additional keyboards are ignored. Configuration options can be set in the global configuration structure RTUSBKeybrdConfig. The driver is registered using its callback USBKeyboard. The driver will create an internal thread to handle the keyboard(s) once the first keyboard is attached. Any received key presses and releases are forwarded to the operating system's keyboard driver. For On Time RTOS-32, see RTTarget-32's keyboard driver for details. Example:int main(void) { RTURegisterCallback(USBKeyboard); // include USB keyboard driver FindUSBControllers(); // start USB printf("hit return on a USB keyboard to terminate\n"); getc(stdin); return 0; } The RTUSB-32 Reference Manual contains additional information about the driver's API.
|