Porting a HID driver to QNX
The USB HID class devices and their basic functions are defined in USB-IF documentation without any specific software in mind. This widely adopted specification makes it easier to port HID drivers written for Linux to QNX, since QNX's HID pipeline also follows the HID specification. A typical HID driver API, libusb's hidapi for example, exposes APIs like hid_open(), hid_get_device_info(), hid_get_report_descriptor(), hid_read(), hid_write(), hid_get_input_report(), hid_close() that need to be wrapped around QNX's libhiddi APIs discussed in previous sections. In other words, any HID driver ported to QNX needs to interface with QNX's USB stack via libusbdi and the HID manager via libhiddi.
Page updated: