pub struct PC3<MODE> { /* private fields */ }
Expand description
Pin PC3
Implementations§
Source§impl<MODE> PC3<MODE>
impl<MODE> PC3<MODE>
Sourcepub fn into_af1(self, moder: &mut MODER, afr: &mut AFRL) -> PC3<AF1>
pub fn into_af1(self, moder: &mut MODER, afr: &mut AFRL) -> PC3<AF1>
Configures PC3 to serve as alternate function: AF1
Sourcepub fn into_af6(self, moder: &mut MODER, afr: &mut AFRL) -> PC3<AF6>
pub fn into_af6(self, moder: &mut MODER, afr: &mut AFRL) -> PC3<AF6>
Configures PC3 to serve as alternate function: AF6
Sourcepub fn into_floating_input(
self,
moder: &mut MODER,
pupdr: &mut PUPDR,
) -> PC3<Input<Floating>>
pub fn into_floating_input( self, moder: &mut MODER, pupdr: &mut PUPDR, ) -> PC3<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,
) -> PC3<Input<PullDown>>
pub fn into_pull_down_input( self, moder: &mut MODER, pupdr: &mut PUPDR, ) -> PC3<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,
) -> PC3<Input<PullUp>>
pub fn into_pull_up_input( self, moder: &mut MODER, pupdr: &mut PUPDR, ) -> PC3<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,
) -> PC3<Output<OpenDrain>>
pub fn into_open_drain_output( self, moder: &mut MODER, otyper: &mut OTYPER, ) -> PC3<Output<OpenDrain>>
Configures the pin to operate as an open drain output pin
Source§impl PC3<Output<OpenDrain>>
impl PC3<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 PC3<Output<MODE>>
impl<MODE> StatefulOutputPin for PC3<Output<MODE>>
impl<MODE> Default for PC3<Output<MODE>>
Auto Trait Implementations§
impl<MODE> Freeze for PC3<MODE>
impl<MODE> RefUnwindSafe for PC3<MODE>where
MODE: RefUnwindSafe,
impl<MODE> Send for PC3<MODE>where
MODE: Send,
impl<MODE> Sync for PC3<MODE>where
MODE: Sync,
impl<MODE> Unpin for PC3<MODE>where
MODE: Unpin,
impl<MODE> UnwindSafe for PC3<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