Expand description
This module implements GPIO ABI v2 which is the current version of the ABI, released in Linux v5.10.
Structs§
- Chip
Info - Information about a particular GPIO chip.
- Errno
- An error number returned by a kernel ioctl call.
- Line
Attribute - A configurable attribute of a line.
- Line
Attributes - The set of potential configuration attributes for a line.
- Line
Config - Configuration for a set of requested lines.
- Line
Config Attribute - A configuration attribute associated with one or more of the requested lines.
- Line
Config Attributes - The set of additional configuration attributes for a line request.
- Line
Edge Event - Information about an edge event on a requested line.
- Line
Flags - Flags indicating the configuration of a line.
- Line
Info - Information about a certain GPIO line.
- Line
Info Change Event - An event indicating a change to the info for a line.
- Line
Request - Information about a request for GPIO lines.
- Line
Values - Values of GPIO lines.
- Name
- A uAPI name string, common to ABI v1 and v2.
- Offsets
- A collection of line offsets.
- Under
Read Error - A failure to read sufficient bytes to construct an object.
- Validation
Error - A failure to validate a struct returned from a system call.
Enums§
- Error
- Errors returned by
gpiocdev_uapi
functions. - Line
Attribute Kind - An identifier for which field of the
LineAttributeValueUnion
is in use. - Line
Attribute Value - The attribute value contained within a
LineAttribute
. - Line
Edge Event Kind - The trigger identifier for a
LineEdgeEvent
. - Line
Info Change Kind - The trigger identifier for a
LineInfoChangeEvent
.
Constants§
- NAME_
LEN_ MAX - The maximum number of bytes stored in a Name.
- NUM_
ATTRS_ MAX - The capacity of
LineAttributes
andLineConfigAttributes
arrays. - NUM_
LINES_ MAX - The maximum number of lines that may be requested in a single request.
Functions§
- get_
chip_ info - Get the publicly available information for a chip.
- get_
line - Request a line or set of lines for exclusive access.
- get_
line_ info - Get the publicly available information for a line.
- get_
line_ values - Read values of requested lines.
- has_
event - Check if the file has an event available to read.
- read_
event - Read an event from a chip or request file descriptor.
- set_
line_ config - Update the configuration of an existing line request.
- set_
line_ values - Set values of requested output lines.
- unwatch_
line_ info - Remove any watch on changes to the
LineInfo
for a line. - wait_
event - Wait for the file to have an event available to read.
- watch_
line_ info - Add a watch on changes to the
LineInfo
for a line.
Type Aliases§
- Offset
- An identifier for a line on a particular chip.
- Result
- The result returned by
gpiocdev_uapi
functions. - Validation
Result - Result returned by struct validators.
Unions§
- Line
Attribute Value Union - The value of a particular line attribute.