0.2.2 • Published 6 years ago
hidraw-native v0.2.2
hidraw-native
N-API native node module to export constants from linux/hidraw.h (and
linux/hid.h).
Installation
$ npm install hidraw-nativeUsage
const { HIDIOCGRDESCSIZE } = require('hidraw-native')API
The following constants are exported:
HIDRAW_REPORT_DESCRIPTOR_BYTES(sizeof(struct hidraw_report_descriptor))HIDRAW_DEVINFO_BYTES(sizeof(struct hidraw_devinfo))
From linux/hidraw.h:
HIDIOCGRDESCSIZEHIDIOCGRAWINFOHIDIOCGRDESCHIDRAW_FIRST_MINORHIDRAW_MAX_DEVICES
From linux/hid.h:
HID_REQ_GET_REPORTHID_REQ_GET_IDLEHID_REQ_GET_PROTOCOLHID_REQ_SET_REPORTHID_REQ_SET_IDLEHID_REQ_SET_PROTOCOLHID_DT_HIDHID_DT_REPORTHID_DT_PHYSICALHID_MAX_DESCRIPTOR_SIZE
License
MIT