pub struct PinConfiguration {
pub mode: Option<PinMode>,
pub level: Option<bool>,
pub pull_mode: Option<PullMode>,
pub volts: Option<f32>,
pub invert: Option<bool>,
}
Fields§
§mode: Option<PinMode>
The input/output mode of the GPIO pin.
level: Option<bool>
The default/initial level of the pin (true means high), has effect only in PushPull
or
OpenDrain
modes.
pull_mode: Option<PullMode>
Whether the pin has pullup/down resistor enabled.
volts: Option<f32>
The default/initial analog level of the pin in Volts, has effect only in AnalogOutput
mode.
invert: Option<bool>
Trait Implementations§
Source§impl Clone for PinConfiguration
impl Clone for PinConfiguration
Source§fn clone(&self) -> PinConfiguration
fn clone(&self) -> PinConfiguration
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PinConfiguration
impl Debug for PinConfiguration
Source§impl Default for PinConfiguration
impl Default for PinConfiguration
Source§fn default() -> PinConfiguration
fn default() -> PinConfiguration
Returns the “default value” for a type. Read more
impl Copy for PinConfiguration
Auto Trait Implementations§
impl Freeze for PinConfiguration
impl RefUnwindSafe for PinConfiguration
impl Send for PinConfiguration
impl Sync for PinConfiguration
impl Unpin for PinConfiguration
impl UnwindSafe for PinConfiguration
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more