pub struct PA13<MODE> { /* private fields */ }
Expand description
A mock GPIO pin in a particular mode.
Implementations
sourceimpl<MODE> PA13<MODE>
impl<MODE> PA13<MODE>
sourcepub fn into_push_pull_output(self) -> PA13<Output<PushPull>>
pub fn into_push_pull_output(self) -> PA13<Output<PushPull>>
Change the mode of this mock pin to an output with low and high states.
sourcepub fn into_open_drain_output(self) -> PA13<Output<OpenDrain>>
pub fn into_open_drain_output(self) -> PA13<Output<OpenDrain>>
Change the mode of this mock pin to an output with low and floating states.
sourcepub fn into_floating_input(self) -> PA13<Input<Floating>>
pub fn into_floating_input(self) -> PA13<Input<Floating>>
Change the mode of this mock pin to a floating input.
sourcepub fn into_pull_up_input(self) -> PA13<Input<PullUp>>
pub fn into_pull_up_input(self) -> PA13<Input<PullUp>>
Change the mode of this mock pin to an input with a pullup resistor.
Trait Implementations
Auto Trait Implementations
impl<MODE> RefUnwindSafe for PA13<MODE>where
MODE: RefUnwindSafe,
impl<MODE> Send for PA13<MODE>where
MODE: Send,
impl<MODE> Sync for PA13<MODE>where
MODE: Sync,
impl<MODE> Unpin for PA13<MODE>where
MODE: Unpin,
impl<MODE> UnwindSafe for PA13<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