GpioChip
- this
this(string name)
"/dev/gpiochip0". Note it MUST be zero terminated!
A destructor is present on this object, but not explicitly documented in the source.
A postblit is present on this object, but not explicitly documented in the source.
- 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).
- label
string label;
- lines
int lines;
- name
string name;