Skip to content

Commit

Permalink
put lineflags in type definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
sombriks committed Mar 29, 2024
1 parent 5787dd0 commit a7601db
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,19 @@ declare module "node-libgpiod" {
requestInputModeFlags(consumer?: string, flags?: number): void;
}


/**
* LineFlags
*/
declare interface LineFlags {
GPIOD_LINE_REQUEST_FLAG_OPEN_DRAIN: 1;
GPIOD_LINE_REQUEST_FLAG_OPEN_SOURCE: 2;
GPIOD_LINE_REQUEST_FLAG_ACTIVE_LOW: 4;
GPIOD_LINE_REQUEST_FLAG_BIAS_DISABLE: 8;
GPIOD_LINE_REQUEST_FLAG_BIAS_PULL_DOWN: 16;
GPIOD_LINE_REQUEST_FLAG_BIAS_PULL_UP: 32;
}

/**
* Returns true if the libgpiod functionality is available in
* the current execution environment, otherwise false (for example
Expand Down

0 comments on commit a7601db

Please sign in to comment.