Struct msp432p401r_hal::gpio::porta::P2_2[][src]

pub struct P2_2<MODE> { /* fields omitted */ }

Implementations

impl<MODE> P2_2<MODE>[src]

pub fn into_pull_up_input(self) -> P2_2<Input<PullUp>>[src]

Setup PullUp resistor and configures Pin to Input mode

pub fn into_pull_down_input(self) -> P2_2<Input<PullDown>>[src]

Setup PullDown resistor and configures Pin to Input mode

pub fn into_floating_input(self) -> P2_2<Input<Floating>>[src]

Disables PullUp/PullDown resistor and configures Pin to Input mode

pub fn into_output(self) -> P2_2<Output>[src]

Setup Pin to output mode

pub fn into_alternate_primary(self) -> P2_2<Alternate<Primary>>[src]

Setup Primary Module Function

pub fn into_alternate_secondary(self) -> P2_2<Alternate<Secondary>>[src]

Setup Secondary Module Function

pub fn into_alternate_tertiary(self) -> P2_2<Alternate<Tertiary>>[src]

Setup Tertiary Module Function

impl<MODE> P2_2<Input<MODE>>[src]

pub fn trigger_on_edge(&mut self, edge: Edge)[src]

pub fn enable_interrupt(&mut self)[src]

pub fn disable_interrupt(&mut self)[src]

pub fn interrupt_enabled(&self) -> bool[src]

pub fn clear_interrupt_pending_bit(&mut self)[src]

pub fn check_interrupt(&mut self) -> bool[src]

Trait Implementations

impl<MODE> InputPin for P2_2<Input<MODE>>[src]

type Error = Infallible

Error type

impl OutputPin for P2_2<Output>[src]

type Error = Infallible

Error type

impl StatefulOutputPin for P2_2<Output>[src]

impl ToggleableOutputPin for P2_2<Output>[src]

type Error = Infallible

Error type

Auto Trait Implementations

impl<MODE> Send for P2_2<MODE> where
    MODE: Send

impl<MODE> Sync for P2_2<MODE> where
    MODE: Sync

impl<MODE> Unpin for P2_2<MODE> where
    MODE: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.