Miss any of our Open RFC calls?Watch the recordings here! »

hidraw-native

0.2.2 • Public • Published

hidraw-native

N-API native node module to export constants from linux/hidraw.h (and linux/hid.h).

Installation

$ npm install hidraw-native

Usage

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:

  • HIDIOCGRDESCSIZE
  • HIDIOCGRAWINFO
  • HIDIOCGRDESC
  • HIDRAW_FIRST_MINOR
  • HIDRAW_MAX_DEVICES

From linux/hid.h:

  • HID_REQ_GET_REPORT
  • HID_REQ_GET_IDLE
  • HID_REQ_GET_PROTOCOL
  • HID_REQ_SET_REPORT
  • HID_REQ_SET_IDLE
  • HID_REQ_SET_PROTOCOL
  • HID_DT_HID
  • HID_DT_REPORT
  • HID_DT_PHYSICAL
  • HID_MAX_DESCRIPTOR_SIZE

License

MIT

Install

npm i hidraw-native

DownloadsWeekly Downloads

4

Version

0.2.2

License

MIT

Unpacked Size

7.16 kB

Total Files

10

Last publish

Collaborators

  • avatar