|Top Previous Next|
Opens a device to allow reading and writing of data to endpoints or to get or set feature reports.
The PIR-1 exposes two interface. The first is a keyboard the second is the IR generic hid device. To be able to open the second device we'll need to first use enumerate and try to open interface with id 0. On Linux interfaceNumber is not specified so just try to open both and use the one that actually opens.