pub struct Output<'d> { /* private fields */ }Expand description
GPIO output driver.
Note that pins will return to their floating state when Output is dropped.
If pins should retain their state indefinitely, either keep ownership of the
Output, or pass it to [core::mem::forget].
Implementations§
Source§impl<'d> Output<'d>
impl<'d> Output<'d>
Sourcepub fn is_set_high(&self) -> bool
pub fn is_set_high(&self) -> bool
Is the output pin set as high?
Sourcepub fn is_set_low(&self) -> bool
pub fn is_set_low(&self) -> bool
Is the output pin set as low?
Sourcepub fn get_output_level(&self) -> Level
pub fn get_output_level(&self) -> Level
What level output is set to
Trait Implementations§
Source§impl<'d> StatefulOutputPin for Output<'d>
impl<'d> StatefulOutputPin for Output<'d>
Source§fn is_set_low(&mut self) -> Result<bool, Self::Error>
fn is_set_low(&mut self) -> Result<bool, Self::Error>
Is the output pin set as low?
Source§fn is_set_high(&mut self) -> Result<bool, Self::Error>
fn is_set_high(&mut self) -> Result<bool, Self::Error>
Is the pin in drive high mode? Read more