pub struct Output(/* private fields */);Expand description
Push-Pull output pin.
Implementations§
Source§impl Output
impl Output
pub fn new<I: PinId>(_pin: Pin<I>, init_level: PinState) -> Self
pub fn port(&self) -> Port
pub fn offset(&self) -> usize
pub fn set_high(&mut self)
pub fn set_low(&mut self)
pub fn is_set_high(&self) -> bool
pub fn is_set_low(&self) -> bool
pub fn configure_pulse_mode(&mut self, enable: bool, default_state: PinState)
pub fn configure_delay(&mut self, delay_1: bool, delay_2: bool)
Trait Implementations§
Source§impl StatefulOutputPin for Output
impl StatefulOutputPin for Output
Auto Trait Implementations§
impl Freeze for Output
impl RefUnwindSafe for Output
impl Send for Output
impl !Sync for Output
impl Unpin for Output
impl UnwindSafe for Output
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