#[repr(C)]pub struct HandleRequest {
pub offsets: Offsets,
pub flags: HandleRequestFlags,
pub values: LineValues,
pub consumer: Name,
pub num_lines: u32,
/* private fields */
}
Expand description
Information about a GPIO line handle request.
Fields§
§offsets: Offsets
An array of requested lines, identified by offset on the associated GPIO device.
flags: HandleRequestFlags
The requested flags for the requested GPIO lines.
Note that even if multiple lines are requested, the same flags must be applicable to all of them, if you want lines with individual flags set, request them one by one. It is possible to select a batch of input or output lines, but they must all have the same characteristics, i.e. all inputs or all outputs, all active low etc.
values: LineValues
If the HandleRequestFlags::OUTPUT
is set for a requested line, this specifies the
output value for each offset. Should be 0 (inactive) or 1 (active).
Anything other than 0 or 1 is interpreted as 1 (active).
consumer: Name
A requested consumer label for the selected GPIO line(s) such as “my-bitbanged-relay”.
num_lines: u32
The number of lines requested in this request, i.e. the number of valid fields in
the offsets
and values
arrays.
Set to 1 to request a single line.
Trait Implementations§
Source§impl Clone for HandleRequest
impl Clone for HandleRequest
Source§fn clone(&self) -> HandleRequest
fn clone(&self) -> HandleRequest
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more