pub struct Config {
pub direction: Option<Direction>,
pub active_low: bool,
pub bias: Option<Bias>,
pub drive: Option<Drive>,
pub edge_detection: Option<EdgeDetection>,
pub event_clock: Option<EventClock>,
pub debounce_period: Option<Duration>,
pub value: Option<Value>,
}
Expand description
The configuration settings for a single line.
Fields
direction: Option<Direction>
The direction setting for the line.
active_low: bool
The active low setting for the line.
bias: Option<Bias>
The bias setting for the line.
drive: Option<Drive>
The drive setting for the line.
Only relevant for output lines.
edge_detection: Option<EdgeDetection>
The edge detection setting for the line.
Only relevant for input lines.
event_clock: Option<EventClock>
The source clock for edge event timestamps.
Only relevant for input lines with edge detection enabled.
debounce_period: Option<Duration>
The debounce period.
Setting the debounce period filters edges occuring at a rate faster than that period.
Only relevant for input lines with edge detection enabled.
value: Option<Value>
The logical value to be applied to the line if it is an output.
Trait Implementations
impl Eq for Config
impl StructuralEq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more