[][src]Struct tm4c129x_hal::gpio::gpioa::PA2

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

Pin

Implementations

impl<MODE> PA2<MODE> where
    MODE: IsUnlocked
[src]

pub fn into_af_push_pull<AF>(
    self,
    _gpio_control: &mut GpioControl
) -> PA2<AlternateFunction<AF, PushPull>> where
    AF: AlternateFunctionChoice
[src]

Configures the pin to serve as alternate function 1 through 15. Disables open-drain to make the output a push-pull.

pub fn into_af_pull_up<AF>(
    self,
    _gpio_control: &mut GpioControl
) -> PA2<AlternateFunction<AF, PullUp>> where
    AF: AlternateFunctionChoice
[src]

Configures the pin to serve as alternate function 1 through 15 with a weak pull-up resistor.

pub fn into_af_pull_down<AF>(
    self,
    _gpio_control: &mut GpioControl
) -> PA2<AlternateFunction<AF, PullDown>> where
    AF: AlternateFunctionChoice
[src]

Configures the pin to serve as alternate function 1 through 15 with a weak pull-down resistor.

pub fn into_af_open_drain<AF, ODM>(
    self,
    _gpio_control: &mut GpioControl
) -> PA2<AlternateFunction<AF, OpenDrain<ODM>>> where
    AF: AlternateFunctionChoice,
    ODM: OpenDrainMode
[src]

Configures the pin to serve as alternate function 1 through 15. Enables open-drain (useful for I2C SDA, for example).

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

Configures the pin to operate as a floating input pin

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

Configures the pin to operate as a pulled down input pin

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

Configures the pin to operate as a pulled up input pin

pub fn into_open_drain_output<ODM>(self) -> PA2<Output<OpenDrain<ODM>>> where
    ODM: OpenDrainMode
[src]

Configures the pin to operate as an open drain output pin

pub fn into_push_pull_output(self) -> PA2<Output<PushPull>>[src]

Configures the pin to operate as an push pull output pin

pub fn into_tri_state(self) -> PA2<Tristate>[src]

Configures the pin as tri-state

impl<MODE> PA2<MODE>[src]

pub fn downgrade(self) -> PAx<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

impl<MODE> PA2<Input<MODE>> where
    MODE: InputMode
[src]

pub fn set_interrupt_mode(&mut self, mode: InterruptMode)[src]

Enables or disables interrupts on this GPIO pin.

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

Returns the current interrupt status for this pin.

pub fn clear_interrupt(&self)[src]

Marks the interrupt for this pin as handled. You should call this (or perform its functionality) from the ISR.

impl PA2<Locked>[src]

pub fn unlock(self, _gpio_control: &mut GpioControl) -> PA2<Tristate>[src]

Unlock a GPIO so that it can be used. This is required on 'special' GPIOs that the manufacturer doesn't want you to change by accident - like NMI and JTAG pins.

Trait Implementations

impl<MODE> InputPin for PA2<Input<MODE>> where
    MODE: InputMode
[src]

impl<MODE> OutputPin for PA2<Output<MODE>> where
    MODE: OutputMode
[src]

impl<T> RxPin<UART4> for PA2<AlternateFunction<AF1, T>> where
    T: OutputMode
[src]

impl<MODE> StatefulOutputPin for PA2<Output<MODE>> where
    MODE: OutputMode
[src]

Auto Trait Implementations

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

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

impl<MODE> Unpin for PA2<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> InputPin for T where
    T: InputPin
[src]

type Error = ()

Error type

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

impl<T> OutputPin for T where
    T: OutputPin
[src]

type Error = ()

Error type

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> StatefulOutputPin for T where
    T: StatefulOutputPin + OutputPin
[src]

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.