pub struct PTE2<MODE> { /* private fields */ }
Expand description
a GPIO Port Pin
Implementations§
Source§impl<MODE> PTE2<MODE>
Implements the I/O type conversion methods
impl<MODE> PTE2<MODE>
Implements the I/O type conversion methods
Sourcepub fn into_floating_input(self) -> PTE2<Input<Floating>>
pub fn into_floating_input(self) -> PTE2<Input<Floating>>
Configure as floating
Sourcepub fn into_pull_up_input(self) -> PTE2<Input<PullUp>>
pub fn into_pull_up_input(self) -> PTE2<Input<PullUp>>
Configure as pull up input
Sourcepub fn into_push_pull_output(self) -> PTE2<Output<PushPull>>
pub fn into_push_pull_output(self) -> PTE2<Output<PushPull>>
Configure as PushPull output
Sourcepub fn into_high_impedence(self) -> PTE2<HighImpedence>
pub fn into_high_impedence(self) -> PTE2<HighImpedence>
Configure into High Impedence output
Trait Implementations§
Source§impl<MODE> StatefulOutputPin for PTE2<Output<MODE>>
impl<MODE> StatefulOutputPin for PTE2<Output<MODE>>
Auto Trait Implementations§
impl<MODE> Freeze for PTE2<MODE>
impl<MODE> RefUnwindSafe for PTE2<MODE>where
MODE: RefUnwindSafe,
impl<MODE> Send for PTE2<MODE>where
MODE: Send,
impl<MODE> Sync for PTE2<MODE>where
MODE: Sync,
impl<MODE> Unpin for PTE2<MODE>where
MODE: Unpin,
impl<MODE> UnwindSafe for PTE2<MODE>where
MODE: UnwindSafe,
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