@ginden/blinkstick-v2
Version:
Improved Blickstick API for Node.js
53 lines • 1.31 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.FeatureReportId = exports.FeatureReportDescription = void 0;
/**
* @summary Descriptions of HID feature reports for BlinkStick devices.
* @remarks Based on https://github.com/subzey/blinkstick-webhid
* @category Constants
* @enum
*/
exports.FeatureReportDescription = {
SetFirst: {
reportId: 0x01,
bufferLength: 3,
},
InfoBlock1: {
reportId: 0x02,
bufferLength: 32,
},
InfoBlock2: {
reportId: 0x03,
bufferLength: 32,
},
SetMode: {
reportId: 0x04,
bufferLength: 1,
},
SetArbitraryPixel: {
reportId: 0x05,
bufferLength: 5,
},
Set8Pixels: {
reportId: 0x06,
bufferLength: 25,
},
Set16Pixels: {
reportId: 0x07,
bufferLength: 49 /* 1 + 3 * 16 */,
},
Set32Pixels: {
reportId: 0x08,
bufferLength: 97 /* 1 + 3 * 32 */,
},
Set64Pixels: {
reportId: 0x09,
bufferLength: 193 /* 1 + 3 * 64 */,
},
};
/**
* @category Constants
* @enum
*/
exports.FeatureReportId = Object.fromEntries(Object.entries(exports.FeatureReportDescription).map(([key, value]) => [key, value.reportId]));
//# sourceMappingURL=feature-report.js.map