[−][src]Struct nucleo_f401re::gpio::gpiob::PB8
Pin
Methods
impl<MODE> PB8<MODE>
[src]
pub fn into_alternate_af0(self) -> PB8<Alternate<AF0>>
[src]
Configures the pin to operate in AF0 mode
pub fn into_alternate_af1(self) -> PB8<Alternate<AF1>>
[src]
Configures the pin to operate in AF1 mode
pub fn into_alternate_af2(self) -> PB8<Alternate<AF2>>
[src]
Configures the pin to operate in AF2 mode
pub fn into_alternate_af3(self) -> PB8<Alternate<AF3>>
[src]
Configures the pin to operate in AF3 mode
pub fn into_alternate_af4(self) -> PB8<Alternate<AF4>>
[src]
Configures the pin to operate in AF4 mode
pub fn into_alternate_af5(self) -> PB8<Alternate<AF5>>
[src]
Configures the pin to operate in AF5 mode
pub fn into_alternate_af6(self) -> PB8<Alternate<AF6>>
[src]
Configures the pin to operate in AF6 mode
pub fn into_alternate_af7(self) -> PB8<Alternate<AF7>>
[src]
Configures the pin to operate in AF7 mode
pub fn into_alternate_af8(self) -> PB8<Alternate<AF8>>
[src]
Configures the pin to operate in AF8 mode
pub fn into_alternate_af9(self) -> PB8<Alternate<AF9>>
[src]
Configures the pin to operate in AF9 mode
pub fn into_alternate_af10(self) -> PB8<Alternate<AF10>>
[src]
Configures the pin to operate in AF10 mode
pub fn into_alternate_af11(self) -> PB8<Alternate<AF11>>
[src]
Configures the pin to operate in AF11 mode
pub fn into_alternate_af12(self) -> PB8<Alternate<AF12>>
[src]
Configures the pin to operate in AF12 mode
pub fn into_alternate_af13(self) -> PB8<Alternate<AF13>>
[src]
Configures the pin to operate in AF13 mode
pub fn into_alternate_af14(self) -> PB8<Alternate<AF14>>
[src]
Configures the pin to operate in AF14 mode
pub fn into_alternate_af15(self) -> PB8<Alternate<AF15>>
[src]
Configures the pin to operate in AF15 mode
pub fn into_floating_input(self) -> PB8<Input<Floating>>
[src]
Configures the pin to operate as a floating input pin
pub fn into_pull_down_input(self) -> PB8<Input<PullDown>>
[src]
Configures the pin to operate as a pulled down input pin
pub fn into_pull_up_input(self) -> PB8<Input<PullUp>>
[src]
Configures the pin to operate as a pulled up input pin
pub fn into_open_drain_output(self) -> PB8<Output<OpenDrain>>
[src]
Configures the pin to operate as an open drain output pin
pub fn into_push_pull_output(self) -> PB8<Output<PushPull>>
[src]
Configures the pin to operate as an push pull output pin
pub fn into_analog(self) -> PB8<Analog>
[src]
Configures the pin to operate as an analog input pin
impl<MODE> PB8<Output<MODE>>
[src]
impl PB8<Output<OpenDrain>>
[src]
pub fn internal_pull_up(&mut self, on: bool)
[src]
Enables / disables the internal pull up
impl<MODE> PB8<Alternate<MODE>>
[src]
pub fn set_speed(self, speed: Speed) -> PB8<Alternate<MODE>>
[src]
Set pin speed
pub fn internal_pull_up(self, on: bool) -> PB8<Alternate<MODE>>
[src]
Enables / disables the internal pull up
impl<MODE> PB8<Alternate<MODE>>
[src]
pub fn set_open_drain(self) -> PB8<Alternate<MODE>>
[src]
Turns pin alternate configuration pin into open drain
impl<MODE> PB8<MODE>
[src]
pub fn downgrade(self) -> PB<MODE>
[src]
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> StatefulOutputPin for PB8<Output<MODE>>
[src]
fn is_set_high(&self) -> bool
[src]
fn is_set_low(&self) -> bool
[src]
impl<MODE> InputPin for PB8<Output<MODE>>
[src]
impl<MODE> InputPin for PB8<Input<MODE>>
[src]
impl<MODE> ExtiPin for PB8<Input<MODE>>
[src]
fn make_interrupt_source(&mut self, syscfg: &mut SYSCFG)
[src]
Configure EXTI Line $i to trigger from this pin.
fn trigger_on_edge(&mut self, exti: &mut EXTI, edge: Edge)
[src]
Generate interrupt on rising edge, falling edge or both
fn enable_interrupt(&mut self, exti: &mut EXTI)
[src]
Enable external interrupts from this pin.
fn disable_interrupt(&mut self, exti: &mut EXTI)
[src]
Disable external interrupts from this pin
fn clear_interrupt_pending_bit(&mut self, exti: &mut EXTI)
[src]
Clear the interrupt pending bit for this pin
impl<MODE> Default for PB8<Output<MODE>>
[src]
impl PinScl<I2C1> for PB8<Alternate<AF4>>
[src]
impl<MODE> OutputPin for PB8<Output<MODE>>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<P> ToggleableOutputPin for P where
P: Default,
[src]
P: Default,
impl<T> Same for T
type Output = T
Should always be Self