pub struct PB6<MODE> { /* private fields */ }
Expand description
Pin
Implementations§
Source§impl<MODE> PB6<MODE>
impl<MODE> PB6<MODE>
Sourcepub fn into_af4(self, moder: &mut MODER, afr: &mut AFRL) -> PB6<AF4>
pub fn into_af4(self, moder: &mut MODER, afr: &mut AFRL) -> PB6<AF4>
Configures the pin to serve as alternate function 4 (AF4)
Sourcepub fn into_af5(self, moder: &mut MODER, afr: &mut AFRL) -> PB6<AF5>
pub fn into_af5(self, moder: &mut MODER, afr: &mut AFRL) -> PB6<AF5>
Configures the pin to serve as alternate function 5 (AF5)
Sourcepub fn into_af6(self, moder: &mut MODER, afr: &mut AFRL) -> PB6<AF6>
pub fn into_af6(self, moder: &mut MODER, afr: &mut AFRL) -> PB6<AF6>
Configures the pin to serve as alternate function 6 (AF6)
Sourcepub fn into_af7(self, moder: &mut MODER, afr: &mut AFRL) -> PB6<AF7>
pub fn into_af7(self, moder: &mut MODER, afr: &mut AFRL) -> PB6<AF7>
Configures the pin to serve as alternate function 7 (AF7)
Sourcepub fn into_floating_input(
self,
moder: &mut MODER,
pupdr: &mut PUPDR,
) -> PB6<Input<Floating>>
pub fn into_floating_input( self, moder: &mut MODER, pupdr: &mut PUPDR, ) -> PB6<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,
) -> PB6<Input<PullDown>>
pub fn into_pull_down_input( self, moder: &mut MODER, pupdr: &mut PUPDR, ) -> PB6<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,
) -> PB6<Input<PullUp>>
pub fn into_pull_up_input( self, moder: &mut MODER, pupdr: &mut PUPDR, ) -> PB6<Input<PullUp>>
Configures the pin to operate as a pulled up input pin
Trait Implementations§
Source§impl<MODE> OutputPin for PB6<Output<MODE>>
impl<MODE> OutputPin for PB6<Output<MODE>>
impl SclPin<I2C1> for PB6<AF4>
impl TxPin<USART1> for PB6<AF7>
Auto Trait Implementations§
impl<MODE> Freeze for PB6<MODE>
impl<MODE> RefUnwindSafe for PB6<MODE>where
MODE: RefUnwindSafe,
impl<MODE> Send for PB6<MODE>where
MODE: Send,
impl<MODE> Sync for PB6<MODE>where
MODE: Sync,
impl<MODE> Unpin for PB6<MODE>where
MODE: Unpin,
impl<MODE> UnwindSafe for PB6<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