pub struct PIN20<MODE> { /* private fields */ }
Expand description
Pin
Implementations
sourceimpl<MODE> PIN20<MODE>
impl<MODE> PIN20<MODE>
sourcepub fn into_floating_input(self) -> PIN20<Input<Floating>>
pub fn into_floating_input(self) -> PIN20<Input<Floating>>
Configures the pin to operate as a floating input pin
sourcepub fn into_open_drain_input(self) -> PIN20<Input<OpenDrain>>
pub fn into_open_drain_input(self) -> PIN20<Input<OpenDrain>>
Configures the pin to operate as a open drain input pin
sourcepub fn into_pull_down_input(self) -> PIN20<Input<PullDown>>
pub fn into_pull_down_input(self) -> PIN20<Input<PullDown>>
Configures the pin to operate as a pulled down input pin
sourcepub fn into_pull_up_input(self) -> PIN20<Input<PullUp>>
pub fn into_pull_up_input(self) -> PIN20<Input<PullUp>>
Configures the pin to operate as a pulled up input pin
sourcepub fn into_open_drain_output(self) -> PIN20<Output<OpenDrain>>
pub fn into_open_drain_output(self) -> PIN20<Output<OpenDrain>>
Configures the pin to operate as an open drain output pin
sourcepub fn into_push_pull_output(self) -> PIN20<Output<PushPull>>
pub fn into_push_pull_output(self) -> PIN20<Output<PushPull>>
Configures the pin to operate as an push pull output pin
sourceimpl PIN20<Input<OpenDrain>>
impl PIN20<Input<OpenDrain>>
sourcepub fn internal_pull_up(&mut self, on: bool)
pub fn internal_pull_up(&mut self, on: bool)
Enables / disables the internal pull up
sourceimpl PIN20<Output<OpenDrain>>
impl PIN20<Output<OpenDrain>>
sourcepub fn internal_pull_up(&mut self, on: bool)
pub fn internal_pull_up(&mut self, on: bool)
Enables / disables the internal pull up
Trait Implementations
sourceimpl<MODE> InputPin for PIN20<Input<MODE>>
impl<MODE> InputPin for PIN20<Input<MODE>>
sourceimpl<MODE> OutputPin for PIN20<Output<MODE>>
impl<MODE> OutputPin for PIN20<Output<MODE>>
sourceimpl<MODE> StatefulOutputPin for PIN20<Output<MODE>>
impl<MODE> StatefulOutputPin for PIN20<Output<MODE>>
sourcefn is_set_high(&self) -> bool
fn is_set_high(&self) -> bool
👎Deprecated since 0.2.2: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Is the pin in drive high mode? Read more
sourcefn is_set_low(&self) -> bool
fn is_set_low(&self) -> bool
👎Deprecated since 0.2.2: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Is the pin in drive low mode? Read more
Auto Trait Implementations
impl<MODE> RefUnwindSafe for PIN20<MODE>where
MODE: RefUnwindSafe,
impl<MODE> Send for PIN20<MODE>where
MODE: Send,
impl<MODE> Sync for PIN20<MODE>where
MODE: Sync,
impl<MODE> Unpin for PIN20<MODE>where
MODE: Unpin,
impl<MODE> UnwindSafe for PIN20<MODE>where
MODE: UnwindSafe,
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