Struct stm32f446_hal::gpio::gpioc::PC10 [−][src]
pub struct PC10<MODE> { /* fields omitted */ }
Pin
Methods
impl<MODE> PC10<MODE>
[src]
impl<MODE> PC10<MODE>
pub fn into_af4(self, moder: &mut MODER, afr: &mut AFRH) -> PC10<AF4>
[src]
pub fn into_af4(self, moder: &mut MODER, afr: &mut AFRH) -> PC10<AF4>
Configures the pin to serve as alternate function 4 (AF4)
pub fn into_af5(self, moder: &mut MODER, afr: &mut AFRH) -> PC10<AF5>
[src]
pub fn into_af5(self, moder: &mut MODER, afr: &mut AFRH) -> PC10<AF5>
Configures the pin to serve as alternate function 5 (AF5)
pub fn into_af6(self, moder: &mut MODER, afr: &mut AFRH) -> PC10<AF6>
[src]
pub fn into_af6(self, moder: &mut MODER, afr: &mut AFRH) -> PC10<AF6>
Configures the pin to serve as alternate function 6 (AF6)
pub fn into_af7(
self,
moder: &mut MODER,
afr: &mut AFRH,
otyper: &mut OTYPER,
pupdr: &mut PUPDR
) -> PC10<AF7>
[src]
pub fn into_af7(
self,
moder: &mut MODER,
afr: &mut AFRH,
otyper: &mut OTYPER,
pupdr: &mut PUPDR
) -> PC10<AF7>
Configures the pin to serve as alternate function 7 (AF7)
pub fn into_floating_input(
self,
moder: &mut MODER,
pupdr: &mut PUPDR
) -> PC10<Input<Floating>>
[src]
pub fn into_floating_input(
self,
moder: &mut MODER,
pupdr: &mut PUPDR
) -> PC10<Input<Floating>>
Configures the pin to operate as a floating input pin
pub fn into_pull_down_input(
self,
moder: &mut MODER,
pupdr: &mut PUPDR
) -> PC10<Input<PullDown>>
[src]
pub fn into_pull_down_input(
self,
moder: &mut MODER,
pupdr: &mut PUPDR
) -> PC10<Input<PullDown>>
Configures the pin to operate as a pulled down input pin
pub fn into_pull_up_input(
self,
moder: &mut MODER,
pupdr: &mut PUPDR
) -> PC10<Input<PullUp>>
[src]
pub fn into_pull_up_input(
self,
moder: &mut MODER,
pupdr: &mut PUPDR
) -> PC10<Input<PullUp>>
Configures the pin to operate as a pulled up input pin
pub fn into_open_drain_output(
self,
moder: &mut MODER,
otyper: &mut OTYPER
) -> PC10<Output<OpenDrain>>
[src]
pub fn into_open_drain_output(
self,
moder: &mut MODER,
otyper: &mut OTYPER
) -> PC10<Output<OpenDrain>>
Configures the pin to operate as an open drain output pin
pub fn into_push_pull_output(
self,
moder: &mut MODER,
otyper: &mut OTYPER
) -> PC10<Output<PushPull>>
[src]
pub fn into_push_pull_output(
self,
moder: &mut MODER,
otyper: &mut OTYPER
) -> PC10<Output<PushPull>>
Configures the pin to operate as an push pull output pin
impl PC10<Output<OpenDrain>>
[src]
impl PC10<Output<OpenDrain>>
pub fn internal_pull_up(&mut self, pupdr: &mut PUPDR, on: bool)
[src]
pub fn internal_pull_up(&mut self, pupdr: &mut PUPDR, on: bool)
Enables / disables the internal pull up
impl<MODE> PC10<Output<MODE>>
[src]
impl<MODE> PC10<Output<MODE>>
pub fn downgrade(self) -> PCx<Output<MODE>>
[src]
pub fn downgrade(self) -> PCx<Output<MODE>>
Erases the pin number from the type
This is useful when you want to collect the pins into an array where you need all the elements to have the same type
Trait Implementations
impl<MODE> OutputPin for PC10<Output<MODE>>
[src]
impl<MODE> OutputPin for PC10<Output<MODE>>
fn set_high(&mut self)
[src]
fn set_high(&mut self)
Drives the pin high Read more
fn set_low(&mut self)
[src]
fn set_low(&mut self)
Drives the pin low Read more
impl TxPin<USART3> for PC10<AF7>
[src]
impl TxPin<USART3> for PC10<AF7>