Expand description
GPIO line control contract (/devices/gpio/<name>).
§Control commands (kind b'g')
| Number | Command | Direction | Input | Output | Effect |
|---|---|---|---|---|---|
0x00 | CONFIGURE | Write | ConfigureAbi | VersionAbi | Releases the line, then requests it as input/output. |
0x01 | RELEASE | Write | VersionAbi | VersionAbi | Releases the line, returning it to high impedance. |
0x02 | GET_CAPABILITIES | Read | VersionAbi | CapabilitiesAbi | Reports what the line supports. |
Every struct starts with a version field equal to ABI_VERSION and its
reserved fields must be zero; otherwise the command fails with
InvalidArgument. Field values outside their documented range are
InvalidArgument. A controller refusal to take the line (unsupported
option, line already in use) is reported as InputOutput.
Structs§
- CONFIGURE
- Capabilities
Abi - Line capabilities; each flag is
0or1. - Configure
Abi - Requested configuration of the line.
- GET_
CAPABILITIES - RELEASE
- Version
Abi - Carries only the ABI version. Used as input of commands without payload and as output of commands that report success.
Constants§
- ABI_
VERSION - Version of every GPIO control ABI struct in this module.