node-libgpiod
Version:
Native nodejs bindings for [libgpiod][libgpiod]
44 lines • 1.59 kB
TypeScript
/**
* @class Bulk
* @description Class to handle bulk operations on the chip lines
*/
export class Bulk {
/**
* @constructor
* @param {Chip} chip - The chip to request the line bulk
* @param {Number[]|String[]} [lines] which lines to request from the chip.
* Either pass the names or the pin numbers. If no list is passed, or the list
* is empty, all lines from the chip will be requested.
*/
constructor(chip: Chip, lines?: number[] | string[]);
_handler: any;
/**
* @property {number[]} values - get current values of the lines in the bulk.
*/
get values(): any;
/**
* @method setValues
* @description Set values for the lines in the bulk.
* @param {number[]} values - An array of values to set for each line in the bulk.
* The length of the array must match the number of lines in the bulk.
* Number values must be either 0 or 1.
*/
setValues(values: number[]): any;
/**
* Request input mode for all lines in the bulk.
* @param {string} [consumer] - Consumer name for the request.
*/
requestInputMode(consumer?: string): any;
/**
* Request output mode for all lines in the bulk.
* @param {string} [consumer] - Consumer name for the request.
* @param {number[]} [defaultValues] default values for the output lines.
*/
requestOutputMode(consumer?: string, defaultValues?: number[]): any;
/**
* release a previously requested bulk
*/
release(): void;
}
import { Chip } from "./chip";
//# sourceMappingURL=bulk.d.ts.map