pub struct PB0<MODE> { /* private fields */ }
Expand description
Pin PB0
Implementations§
Source§impl<MODE> PB0<MODE>
impl<MODE> PB0<MODE>
Sourcepub fn into_af2(self, moder: &mut MODER, afr: &mut AFRL) -> PB0<AF2>
pub fn into_af2(self, moder: &mut MODER, afr: &mut AFRL) -> PB0<AF2>
Configures PB0 to serve as alternate function: AF2
Sourcepub fn into_af3(self, moder: &mut MODER, afr: &mut AFRL) -> PB0<AF3>
pub fn into_af3(self, moder: &mut MODER, afr: &mut AFRL) -> PB0<AF3>
Configures PB0 to serve as alternate function: AF3
Sourcepub fn into_af4(self, moder: &mut MODER, afr: &mut AFRL) -> PB0<AF4>
pub fn into_af4(self, moder: &mut MODER, afr: &mut AFRL) -> PB0<AF4>
Configures PB0 to serve as alternate function: AF4
Sourcepub fn into_af6(self, moder: &mut MODER, afr: &mut AFRL) -> PB0<AF6>
pub fn into_af6(self, moder: &mut MODER, afr: &mut AFRL) -> PB0<AF6>
Configures PB0 to serve as alternate function: AF6
Sourcepub fn into_af15(self, moder: &mut MODER, afr: &mut AFRL) -> PB0<AF15>
pub fn into_af15(self, moder: &mut MODER, afr: &mut AFRL) -> PB0<AF15>
Configures PB0 to serve as alternate function: AF15
Sourcepub fn into_floating_input(
self,
moder: &mut MODER,
pupdr: &mut PUPDR,
) -> PB0<Input<Floating>>
pub fn into_floating_input( self, moder: &mut MODER, pupdr: &mut PUPDR, ) -> PB0<Input<Floating>>
Configures the pin to operate as a floating input pin
Sourcepub fn into_pull_down_input(
self,
moder: &mut MODER,
pupdr: &mut PUPDR,
) -> PB0<Input<PullDown>>
pub fn into_pull_down_input( self, moder: &mut MODER, pupdr: &mut PUPDR, ) -> PB0<Input<PullDown>>
Configures the pin to operate as a pulled down input pin
Sourcepub fn into_pull_up_input(
self,
moder: &mut MODER,
pupdr: &mut PUPDR,
) -> PB0<Input<PullUp>>
pub fn into_pull_up_input( self, moder: &mut MODER, pupdr: &mut PUPDR, ) -> PB0<Input<PullUp>>
Configures the pin to operate as a pulled up input pin
Sourcepub fn into_open_drain_output(
self,
moder: &mut MODER,
otyper: &mut OTYPER,
) -> PB0<Output<OpenDrain>>
pub fn into_open_drain_output( self, moder: &mut MODER, otyper: &mut OTYPER, ) -> PB0<Output<OpenDrain>>
Configures the pin to operate as an open drain output pin
Source§impl PB0<Output<OpenDrain>>
impl PB0<Output<OpenDrain>>
Sourcepub fn internal_pull_up(&mut self, pupdr: &mut PUPDR, on: bool)
pub fn internal_pull_up(&mut self, pupdr: &mut PUPDR, on: bool)
Enables / disables the internal pull up
Trait Implementations§
Source§impl<MODE> StatefulOutputPin for PB0<Output<MODE>>
impl<MODE> StatefulOutputPin for PB0<Output<MODE>>
impl<MODE> Default for PB0<Output<MODE>>
Auto Trait Implementations§
impl<MODE> Freeze for PB0<MODE>
impl<MODE> RefUnwindSafe for PB0<MODE>where
MODE: RefUnwindSafe,
impl<MODE> Send for PB0<MODE>where
MODE: Send,
impl<MODE> Sync for PB0<MODE>where
MODE: Sync,
impl<MODE> Unpin for PB0<MODE>where
MODE: Unpin,
impl<MODE> UnwindSafe for PB0<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