Module gpiocdev_uapi::v1
source · Expand description
This module implements GPIO ABI v1 which was released in Linux v4.8.
This ABI version is deprecated.
ABI v2 adds features and overcomes a number of bugs and limitations present in v1. Use ABI v2 instead where possible.
Structs§
- Information about a particular GPIO chip.
- An error number returned by a kernel ioctl call.
- Information about a GPIO event request.
- Additional configuration flags for event requests.
- Updated configuration for an existing GPIO handle request.
- Information about a GPIO line handle request.
- Configuration flags for requested lines.
- Information about an edge event on a requested line.
- Information about a certain GPIO line.
- Information about a change in status of a GPIO line.
- Flags indicating the configuration of a line.
- The logical values of the requested lines.
- A uAPI name string, common to ABI v1 and v2.
- A collection of line offsets.
- A failure to read sufficient bytes to construct an object.
- A failure to validate a struct returned from a system call.
Enums§
- Errors returned by
gpiocdev_uapifunctions. - The trigger identifier for a
LineEdgeEvent. - The trigger identifier for a
LineInfoChangeEvent.
Constants§
- The maximum number of bytes stored in a Name.
- The maximum number of lines that may be requested in a single request.
Functions§
- Get the publicly available information for a chip.
- Request a line with edge detection enabled.
- Request a line or set of lines for exclusive access.
- Get the publicly available information for a line.
- Read the values of requested lines.
- Check if the file has an event available to read.
- Read an event from a chip or request file descriptor.
- Update the configuration of an existing handle or event request.
- Set the values of requested lines.
- Remove any watch on changes to the
LineInfofor a line. - Wait for the file to have an event available to read.
- Add a watch on changes to the
LineInfofor a line.
Type Aliases§
- An identifier for a line on a particular chip.
- The result returned by
gpiocdev_uapifunctions. - Result returned by struct validators.