GpioChip

Constructors

this
this(string name)

"/dev/gpiochip0". Note it MUST be zero terminated!

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Postblit

A postblit is present on this object, but not explicitly documented in the source.

Members

Functions

getLine
void getLine(int handle, ubyte[] status)
getLineInfo
void getLineInfo(int line, gpioline_info info)
pullLine
void pullLine(int handle, ubyte[] high)

named as in "pull it high"; it sets the status.

requestEvent
int requestEvent(string label, int line, int handleFlags, int eventFlags)

Returns a file descriptor you can poll and read for events. Read gpioevent_data from the fd.

requestLine
int requestLine(string label, uint[] lines, int flags, ubyte[] defaults)

Returns a file descriptor you can pass to pullLine or getLine (pullLine for OUTPUT, getLine for INPUT).

Variables

label
string label;
lines
int lines;
name
string name;
Suggestion Box / Bug Report