Struct sodaq_sara_aff::gpio::Pin

source ·
pub struct Pin<I, M>where
    I: PinId,
    M: PinMode,{ /* private fields */ }
👎Deprecated since 0.13.0: The gpio::v1 module is deprecated, and will be removed in a subsequent release. Please use the gpio::v2 module instead.
Expand description

Represents a GPIO pin with a corresponding PinId and PinMode

The v2::Pin type provides many of the same inherent functions, but it does so without requiring the PORT as an argument, breaking backwards compatibility.

v1 Pin type is a newtype wrapper for v2::Pins. To aid in compatibility, the v1 Pin types also implement AnyPin. From & Into conversions are provided between the two pin types.

Implementations§

source§

impl<I, M> Pin<I, M>where I: PinId, M: PinMode,

source

pub fn into_mode<N>(self) -> Pin<I, N>where N: PinMode,

👎Deprecated since 0.13.0: The gpio::v1 module is deprecated, and will be removed in a subsequent release. Please use the gpio::v2 module instead.
source

pub fn into_floating_input(self, port: &mut Port) -> Pin<I, Input<Floating>>

👎Deprecated since 0.13.0: The gpio::v1 module is deprecated, and will be removed in a subsequent release. Please use the gpio::v2 module instead.

Configures the pin to operate as a floating input

source

pub fn into_pull_down_input(self, port: &mut Port) -> Pin<I, Input<PullDown>>

👎Deprecated since 0.13.0: The gpio::v1 module is deprecated, and will be removed in a subsequent release. Please use the gpio::v2 module instead.

Configures the pin to operate as a pulled down input pin

source

pub fn into_pull_up_input(self, port: &mut Port) -> Pin<I, Input<PullUp>>

👎Deprecated since 0.13.0: The gpio::v1 module is deprecated, and will be removed in a subsequent release. Please use the gpio::v2 module instead.

Configures the pin to operate as a pulled up input pin

source

pub fn into_floating_interrupt( self, port: &mut Port ) -> Pin<I, Interrupt<Floating>>

👎Deprecated since 0.13.0: The gpio::v1 module is deprecated, and will be removed in a subsequent release. Please use the gpio::v2 module instead.

Configures the pin to operate as a floating interrupt

source

pub fn into_pull_down_interrupt( self, port: &mut Port ) -> Pin<I, Interrupt<PullDown>>

👎Deprecated since 0.13.0: The gpio::v1 module is deprecated, and will be removed in a subsequent release. Please use the gpio::v2 module instead.

Configures the pin to operate as a pulled down interrupt pin

source

pub fn into_pull_up_interrupt( self, port: &mut Port ) -> Pin<I, Interrupt<PullUp>>

👎Deprecated since 0.13.0: The gpio::v1 module is deprecated, and will be removed in a subsequent release. Please use the gpio::v2 module instead.

Configures the pin to operate as a pulled up interrupt pin

source

pub fn into_open_drain_output(self, port: &mut Port) -> Pin<I, Output<PushPull>>

👎Deprecated since 0.13.0: The gpio::v1 module is deprecated, and will be removed in a subsequent release. Please use the gpio::v2 module instead.

Configures the pin to operate as an open drain output

source

pub fn into_readable_open_drain_output( self, port: &mut Port ) -> Pin<I, Output<Readable>>

👎Deprecated since 0.13.0: The gpio::v1 module is deprecated, and will be removed in a subsequent release. Please use the gpio::v2 module instead.

Configures the pin to operate as an open drain output which can be read

source

pub fn into_push_pull_output(self, port: &mut Port) -> Pin<I, Output<PushPull>>

👎Deprecated since 0.13.0: The gpio::v1 module is deprecated, and will be removed in a subsequent release. Please use the gpio::v2 module instead.

Configures the pin to operate as a push-pull output

source

pub fn into_function_b(self, port: &mut Port) -> Pin<I, Alternate<B>>

👎Deprecated since 0.13.0: The gpio::v1 module is deprecated, and will be removed in a subsequent release. Please use the gpio::v2 module instead.

Configures the pin to operate with a peripheral

source

pub fn into_function_c(self, port: &mut Port) -> Pin<I, Alternate<C>>

👎Deprecated since 0.13.0: The gpio::v1 module is deprecated, and will be removed in a subsequent release. Please use the gpio::v2 module instead.

Configures the pin to operate with a peripheral

source

pub fn into_function_d(self, port: &mut Port) -> Pin<I, Alternate<D>>

👎Deprecated since 0.13.0: The gpio::v1 module is deprecated, and will be removed in a subsequent release. Please use the gpio::v2 module instead.

Configures the pin to operate with a peripheral

source

pub fn into_function_e(self, port: &mut Port) -> Pin<I, Alternate<E>>

👎Deprecated since 0.13.0: The gpio::v1 module is deprecated, and will be removed in a subsequent release. Please use the gpio::v2 module instead.

Configures the pin to operate with a peripheral

source

pub fn into_function_f(self, port: &mut Port) -> Pin<I, Alternate<F>>

👎Deprecated since 0.13.0: The gpio::v1 module is deprecated, and will be removed in a subsequent release. Please use the gpio::v2 module instead.

Configures the pin to operate with a peripheral

source

pub fn into_function_g(self, port: &mut Port) -> Pin<I, Alternate<G>>

👎Deprecated since 0.13.0: The gpio::v1 module is deprecated, and will be removed in a subsequent release. Please use the gpio::v2 module instead.

Configures the pin to operate with a peripheral

source

pub fn into_function_h(self, port: &mut Port) -> Pin<I, Alternate<H>>

👎Deprecated since 0.13.0: The gpio::v1 module is deprecated, and will be removed in a subsequent release. Please use the gpio::v2 module instead.

Configures the pin to operate with a peripheral

source§

impl<I> Pin<I, Output<PushPull>>where I: PinId,

source

pub fn internal_pull_up(&mut self, port: &mut Port, on: bool)

👎Deprecated since 0.13.0: The gpio::v1 module is deprecated, and will be removed in a subsequent release. Please use the gpio::v2 module instead.

Control state of the internal pull up

This function shouldn’t exist. It is not possible to enable a pull-up resistor in an output mode.

source§

impl<I, M> Pin<I, Output<M>>where I: PinId, M: OutputConfig,

source

pub fn toggle(&mut self)

👎Deprecated since 0.13.0: The gpio::v1 module is deprecated, and will be removed in a subsequent release. Please use the gpio::v2 module instead.

Toggle the logic level of the pin; if it is currently high, set it low and vice versa.

Trait Implementations§

source§

impl<I, M> AnyPin for Pin<I, M>where I: PinId, M: PinMode,

Implement AnyPin for v1 Pin types to enhance compatibility with v2::Pins

§

type Id = I

PinId of the corresponding Pin
§

type Mode = M

PinMode of the corresponding Pin
source§

impl<P> AsMut<P> for Pin<<P as AnyPin>::Id, <P as AnyPin>::Mode>where P: AnyPin,

source§

fn as_mut(&mut self) -> &mut P

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl<P> AsRef<P> for Pin<<P as AnyPin>::Id, <P as AnyPin>::Mode>where P: AnyPin,

source§

fn as_ref(&self) -> &P

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<MODE> EicPin for Pin<PA00, MODE>where MODE: PinMode,

§

type Floating = ExtInt0<Pin<PA00, Interrupt<Floating>>>

§

type PullUp = ExtInt0<Pin<PA00, Interrupt<PullUp>>>

§

type PullDown = ExtInt0<Pin<PA00, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PA00, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PA00, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PA00, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PA01, MODE>where MODE: PinMode,

§

type Floating = ExtInt1<Pin<PA01, Interrupt<Floating>>>

§

type PullUp = ExtInt1<Pin<PA01, Interrupt<PullUp>>>

§

type PullDown = ExtInt1<Pin<PA01, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PA01, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PA01, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PA01, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PA02, MODE>where MODE: PinMode,

§

type Floating = ExtInt2<Pin<PA02, Interrupt<Floating>>>

§

type PullUp = ExtInt2<Pin<PA02, Interrupt<PullUp>>>

§

type PullDown = ExtInt2<Pin<PA02, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PA02, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PA02, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PA02, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PA03, MODE>where MODE: PinMode,

§

type Floating = ExtInt3<Pin<PA03, Interrupt<Floating>>>

§

type PullUp = ExtInt3<Pin<PA03, Interrupt<PullUp>>>

§

type PullDown = ExtInt3<Pin<PA03, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PA03, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PA03, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PA03, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PA04, MODE>where MODE: PinMode,

§

type Floating = ExtInt4<Pin<PA04, Interrupt<Floating>>>

§

type PullUp = ExtInt4<Pin<PA04, Interrupt<PullUp>>>

§

type PullDown = ExtInt4<Pin<PA04, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PA04, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PA04, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PA04, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PA05, MODE>where MODE: PinMode,

§

type Floating = ExtInt5<Pin<PA05, Interrupt<Floating>>>

§

type PullUp = ExtInt5<Pin<PA05, Interrupt<PullUp>>>

§

type PullDown = ExtInt5<Pin<PA05, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PA05, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PA05, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PA05, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PA06, MODE>where MODE: PinMode,

§

type Floating = ExtInt6<Pin<PA06, Interrupt<Floating>>>

§

type PullUp = ExtInt6<Pin<PA06, Interrupt<PullUp>>>

§

type PullDown = ExtInt6<Pin<PA06, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PA06, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PA06, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PA06, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PA07, MODE>where MODE: PinMode,

§

type Floating = ExtInt7<Pin<PA07, Interrupt<Floating>>>

§

type PullUp = ExtInt7<Pin<PA07, Interrupt<PullUp>>>

§

type PullDown = ExtInt7<Pin<PA07, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PA07, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PA07, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PA07, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PA09, MODE>where MODE: PinMode,

§

type Floating = ExtInt9<Pin<PA09, Interrupt<Floating>>>

§

type PullUp = ExtInt9<Pin<PA09, Interrupt<PullUp>>>

§

type PullDown = ExtInt9<Pin<PA09, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PA09, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PA09, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PA09, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PA10, MODE>where MODE: PinMode,

§

type Floating = ExtInt10<Pin<PA10, Interrupt<Floating>>>

§

type PullUp = ExtInt10<Pin<PA10, Interrupt<PullUp>>>

§

type PullDown = ExtInt10<Pin<PA10, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PA10, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PA10, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PA10, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PA11, MODE>where MODE: PinMode,

§

type Floating = ExtInt11<Pin<PA11, Interrupt<Floating>>>

§

type PullUp = ExtInt11<Pin<PA11, Interrupt<PullUp>>>

§

type PullDown = ExtInt11<Pin<PA11, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PA11, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PA11, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PA11, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PA12, MODE>where MODE: PinMode,

§

type Floating = ExtInt12<Pin<PA12, Interrupt<Floating>>>

§

type PullUp = ExtInt12<Pin<PA12, Interrupt<PullUp>>>

§

type PullDown = ExtInt12<Pin<PA12, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PA12, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PA12, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PA12, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PA13, MODE>where MODE: PinMode,

§

type Floating = ExtInt13<Pin<PA13, Interrupt<Floating>>>

§

type PullUp = ExtInt13<Pin<PA13, Interrupt<PullUp>>>

§

type PullDown = ExtInt13<Pin<PA13, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PA13, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PA13, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PA13, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PA14, MODE>where MODE: PinMode,

§

type Floating = ExtInt14<Pin<PA14, Interrupt<Floating>>>

§

type PullUp = ExtInt14<Pin<PA14, Interrupt<PullUp>>>

§

type PullDown = ExtInt14<Pin<PA14, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PA14, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PA14, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PA14, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PA15, MODE>where MODE: PinMode,

§

type Floating = ExtInt15<Pin<PA15, Interrupt<Floating>>>

§

type PullUp = ExtInt15<Pin<PA15, Interrupt<PullUp>>>

§

type PullDown = ExtInt15<Pin<PA15, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PA15, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PA15, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PA15, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PA16, MODE>where MODE: PinMode,

§

type Floating = ExtInt0<Pin<PA16, Interrupt<Floating>>>

§

type PullUp = ExtInt0<Pin<PA16, Interrupt<PullUp>>>

§

type PullDown = ExtInt0<Pin<PA16, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PA16, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PA16, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PA16, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PA17, MODE>where MODE: PinMode,

§

type Floating = ExtInt1<Pin<PA17, Interrupt<Floating>>>

§

type PullUp = ExtInt1<Pin<PA17, Interrupt<PullUp>>>

§

type PullDown = ExtInt1<Pin<PA17, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PA17, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PA17, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PA17, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PA18, MODE>where MODE: PinMode,

§

type Floating = ExtInt2<Pin<PA18, Interrupt<Floating>>>

§

type PullUp = ExtInt2<Pin<PA18, Interrupt<PullUp>>>

§

type PullDown = ExtInt2<Pin<PA18, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PA18, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PA18, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PA18, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PA19, MODE>where MODE: PinMode,

§

type Floating = ExtInt3<Pin<PA19, Interrupt<Floating>>>

§

type PullUp = ExtInt3<Pin<PA19, Interrupt<PullUp>>>

§

type PullDown = ExtInt3<Pin<PA19, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PA19, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PA19, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PA19, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PA20, MODE>where MODE: PinMode,

§

type Floating = ExtInt4<Pin<PA20, Interrupt<Floating>>>

§

type PullUp = ExtInt4<Pin<PA20, Interrupt<PullUp>>>

§

type PullDown = ExtInt4<Pin<PA20, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PA20, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PA20, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PA20, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PA21, MODE>where MODE: PinMode,

§

type Floating = ExtInt5<Pin<PA21, Interrupt<Floating>>>

§

type PullUp = ExtInt5<Pin<PA21, Interrupt<PullUp>>>

§

type PullDown = ExtInt5<Pin<PA21, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PA21, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PA21, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PA21, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PA22, MODE>where MODE: PinMode,

§

type Floating = ExtInt6<Pin<PA22, Interrupt<Floating>>>

§

type PullUp = ExtInt6<Pin<PA22, Interrupt<PullUp>>>

§

type PullDown = ExtInt6<Pin<PA22, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PA22, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PA22, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PA22, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PA23, MODE>where MODE: PinMode,

§

type Floating = ExtInt7<Pin<PA23, Interrupt<Floating>>>

§

type PullUp = ExtInt7<Pin<PA23, Interrupt<PullUp>>>

§

type PullDown = ExtInt7<Pin<PA23, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PA23, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PA23, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PA23, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PA24, MODE>where MODE: PinMode,

§

type Floating = ExtInt12<Pin<PA24, Interrupt<Floating>>>

§

type PullUp = ExtInt12<Pin<PA24, Interrupt<PullUp>>>

§

type PullDown = ExtInt12<Pin<PA24, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PA24, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PA24, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PA24, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PA25, MODE>where MODE: PinMode,

§

type Floating = ExtInt13<Pin<PA25, Interrupt<Floating>>>

§

type PullUp = ExtInt13<Pin<PA25, Interrupt<PullUp>>>

§

type PullDown = ExtInt13<Pin<PA25, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PA25, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PA25, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PA25, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PA27, MODE>where MODE: PinMode,

§

type Floating = ExtInt15<Pin<PA27, Interrupt<Floating>>>

§

type PullUp = ExtInt15<Pin<PA27, Interrupt<PullUp>>>

§

type PullDown = ExtInt15<Pin<PA27, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PA27, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PA27, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PA27, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PA28, MODE>where MODE: PinMode,

§

type Floating = ExtInt8<Pin<PA28, Interrupt<Floating>>>

§

type PullUp = ExtInt8<Pin<PA28, Interrupt<PullUp>>>

§

type PullDown = ExtInt8<Pin<PA28, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PA28, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PA28, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PA28, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PA30, MODE>where MODE: PinMode,

§

type Floating = ExtInt10<Pin<PA30, Interrupt<Floating>>>

§

type PullUp = ExtInt10<Pin<PA30, Interrupt<PullUp>>>

§

type PullDown = ExtInt10<Pin<PA30, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PA30, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PA30, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PA30, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PA31, MODE>where MODE: PinMode,

§

type Floating = ExtInt11<Pin<PA31, Interrupt<Floating>>>

§

type PullUp = ExtInt11<Pin<PA31, Interrupt<PullUp>>>

§

type PullDown = ExtInt11<Pin<PA31, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PA31, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PA31, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PA31, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PB00, MODE>where MODE: PinMode,

§

type Floating = ExtInt0<Pin<PB00, Interrupt<Floating>>>

§

type PullUp = ExtInt0<Pin<PB00, Interrupt<PullUp>>>

§

type PullDown = ExtInt0<Pin<PB00, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PB00, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PB00, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PB00, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PB01, MODE>where MODE: PinMode,

§

type Floating = ExtInt1<Pin<PB01, Interrupt<Floating>>>

§

type PullUp = ExtInt1<Pin<PB01, Interrupt<PullUp>>>

§

type PullDown = ExtInt1<Pin<PB01, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PB01, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PB01, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PB01, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PB02, MODE>where MODE: PinMode,

§

type Floating = ExtInt2<Pin<PB02, Interrupt<Floating>>>

§

type PullUp = ExtInt2<Pin<PB02, Interrupt<PullUp>>>

§

type PullDown = ExtInt2<Pin<PB02, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PB02, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PB02, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PB02, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PB03, MODE>where MODE: PinMode,

§

type Floating = ExtInt3<Pin<PB03, Interrupt<Floating>>>

§

type PullUp = ExtInt3<Pin<PB03, Interrupt<PullUp>>>

§

type PullDown = ExtInt3<Pin<PB03, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PB03, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PB03, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PB03, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PB04, MODE>where MODE: PinMode,

§

type Floating = ExtInt4<Pin<PB04, Interrupt<Floating>>>

§

type PullUp = ExtInt4<Pin<PB04, Interrupt<PullUp>>>

§

type PullDown = ExtInt4<Pin<PB04, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PB04, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PB04, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PB04, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PB05, MODE>where MODE: PinMode,

§

type Floating = ExtInt5<Pin<PB05, Interrupt<Floating>>>

§

type PullUp = ExtInt5<Pin<PB05, Interrupt<PullUp>>>

§

type PullDown = ExtInt5<Pin<PB05, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PB05, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PB05, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PB05, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PB06, MODE>where MODE: PinMode,

§

type Floating = ExtInt6<Pin<PB06, Interrupt<Floating>>>

§

type PullUp = ExtInt6<Pin<PB06, Interrupt<PullUp>>>

§

type PullDown = ExtInt6<Pin<PB06, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PB06, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PB06, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PB06, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PB07, MODE>where MODE: PinMode,

§

type Floating = ExtInt7<Pin<PB07, Interrupt<Floating>>>

§

type PullUp = ExtInt7<Pin<PB07, Interrupt<PullUp>>>

§

type PullDown = ExtInt7<Pin<PB07, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PB07, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PB07, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PB07, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PB08, MODE>where MODE: PinMode,

§

type Floating = ExtInt8<Pin<PB08, Interrupt<Floating>>>

§

type PullUp = ExtInt8<Pin<PB08, Interrupt<PullUp>>>

§

type PullDown = ExtInt8<Pin<PB08, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PB08, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PB08, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PB08, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PB09, MODE>where MODE: PinMode,

§

type Floating = ExtInt9<Pin<PB09, Interrupt<Floating>>>

§

type PullUp = ExtInt9<Pin<PB09, Interrupt<PullUp>>>

§

type PullDown = ExtInt9<Pin<PB09, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PB09, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PB09, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PB09, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PB10, MODE>where MODE: PinMode,

§

type Floating = ExtInt10<Pin<PB10, Interrupt<Floating>>>

§

type PullUp = ExtInt10<Pin<PB10, Interrupt<PullUp>>>

§

type PullDown = ExtInt10<Pin<PB10, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PB10, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PB10, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PB10, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PB11, MODE>where MODE: PinMode,

§

type Floating = ExtInt11<Pin<PB11, Interrupt<Floating>>>

§

type PullUp = ExtInt11<Pin<PB11, Interrupt<PullUp>>>

§

type PullDown = ExtInt11<Pin<PB11, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PB11, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PB11, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PB11, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PB12, MODE>where MODE: PinMode,

§

type Floating = ExtInt12<Pin<PB12, Interrupt<Floating>>>

§

type PullUp = ExtInt12<Pin<PB12, Interrupt<PullUp>>>

§

type PullDown = ExtInt12<Pin<PB12, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PB12, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PB12, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PB12, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PB13, MODE>where MODE: PinMode,

§

type Floating = ExtInt13<Pin<PB13, Interrupt<Floating>>>

§

type PullUp = ExtInt13<Pin<PB13, Interrupt<PullUp>>>

§

type PullDown = ExtInt13<Pin<PB13, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PB13, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PB13, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PB13, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PB14, MODE>where MODE: PinMode,

§

type Floating = ExtInt14<Pin<PB14, Interrupt<Floating>>>

§

type PullUp = ExtInt14<Pin<PB14, Interrupt<PullUp>>>

§

type PullDown = ExtInt14<Pin<PB14, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PB14, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PB14, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PB14, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PB15, MODE>where MODE: PinMode,

§

type Floating = ExtInt15<Pin<PB15, Interrupt<Floating>>>

§

type PullUp = ExtInt15<Pin<PB15, Interrupt<PullUp>>>

§

type PullDown = ExtInt15<Pin<PB15, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PB15, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PB15, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PB15, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PB16, MODE>where MODE: PinMode,

§

type Floating = ExtInt0<Pin<PB16, Interrupt<Floating>>>

§

type PullUp = ExtInt0<Pin<PB16, Interrupt<PullUp>>>

§

type PullDown = ExtInt0<Pin<PB16, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PB16, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PB16, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PB16, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PB17, MODE>where MODE: PinMode,

§

type Floating = ExtInt1<Pin<PB17, Interrupt<Floating>>>

§

type PullUp = ExtInt1<Pin<PB17, Interrupt<PullUp>>>

§

type PullDown = ExtInt1<Pin<PB17, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PB17, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PB17, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PB17, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PB22, MODE>where MODE: PinMode,

§

type Floating = ExtInt6<Pin<PB22, Interrupt<Floating>>>

§

type PullUp = ExtInt6<Pin<PB22, Interrupt<PullUp>>>

§

type PullDown = ExtInt6<Pin<PB22, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PB22, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PB22, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PB22, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PB23, MODE>where MODE: PinMode,

§

type Floating = ExtInt7<Pin<PB23, Interrupt<Floating>>>

§

type PullUp = ExtInt7<Pin<PB23, Interrupt<PullUp>>>

§

type PullDown = ExtInt7<Pin<PB23, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PB23, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PB23, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PB23, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PB30, MODE>where MODE: PinMode,

§

type Floating = ExtInt14<Pin<PB30, Interrupt<Floating>>>

§

type PullUp = ExtInt14<Pin<PB30, Interrupt<PullUp>>>

§

type PullDown = ExtInt14<Pin<PB30, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PB30, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PB30, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PB30, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> EicPin for Pin<PB31, MODE>where MODE: PinMode,

§

type Floating = ExtInt15<Pin<PB31, Interrupt<Floating>>>

§

type PullUp = ExtInt15<Pin<PB31, Interrupt<PullUp>>>

§

type PullDown = ExtInt15<Pin<PB31, Interrupt<PullDown>>>

source§

fn into_floating_ei( self, port: &mut Port ) -> <Pin<PB31, MODE> as EicPin>::Floating

Configure a pin as a floating external interrupt
source§

fn into_pull_up_ei(self, port: &mut Port) -> <Pin<PB31, MODE> as EicPin>::PullUp

Configure a pin as pulled-up external interrupt
source§

fn into_pull_down_ei( self, port: &mut Port ) -> <Pin<PB31, MODE> as EicPin>::PullDown

Configure a pin as pulled-down external interrupt
source§

impl<MODE> ExternalInterrupt for Pin<PA00, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PA01, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PA02, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PA03, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PA04, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PA05, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PA06, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PA07, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PA09, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PA10, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PA11, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PA12, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PA13, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PA14, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PA15, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PA16, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PA17, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PA18, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PA19, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PA20, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PA21, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PA22, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PA23, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PA24, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PA25, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PA27, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PA28, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PA30, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PA31, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PB00, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PB01, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PB02, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PB03, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PB04, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PB05, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PB06, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PB07, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PB08, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PB09, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PB10, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PB11, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PB12, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PB13, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PB14, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PB15, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PB16, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PB17, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PB22, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PB23, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PB30, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<MODE> ExternalInterrupt for Pin<PB31, MODE>where MODE: PinMode,

source§

fn id(&self) -> usize

source§

impl<I, M> From<Pin<I, M>> for Pin<I, M>where I: PinId, M: PinMode,

Convert from a v1::Pin to a v2::Pin

source§

fn from(pin: Pin<I, M>) -> Pin<I, M>

Converts to this type from the input type.
source§

impl<I, M> From<Pin<I, M>> for Pin<I, M>where I: PinId, M: PinMode,

Convert from a v2::Pin to a v1::Pin

source§

fn from(pin: Pin<I, M>) -> Pin<I, M>

Converts to this type from the input type.
source§

impl<I, M, C> IntoFunction<Pin<I, Alternate<C>>> for Pin<I, M>where I: PinId, M: PinMode, C: AlternateConfig,

source§

fn into_function(self, port: &mut Port) -> Pin<I, Alternate<C>>

👎Deprecated since 0.13.0: The gpio::v1 module is deprecated, and will be removed in a subsequent release. Please use the gpio::v2 module instead.
Consume the pin and configure it to operate in the mode T.
source§

impl<I, M> IsPad for Pin<I, M>where I: PinId, M: PinMode, Pin<I, M>: AnyPin, Pin<I, M>: IsPad,

Extend implementations of IsPad from v2::Pins to v1::Pins

§

type Sercom = <Pin<I, M> as IsPad>::Sercom

§

type PadNum = <Pin<I, M> as IsPad>::PadNum

source§

impl<I, M> OutputPin for Pin<I, Output<M>>where I: PinId, M: OutputConfig,

§

type Error = ()

Error type
source§

fn set_high(&mut self) -> Result<(), <Pin<I, Output<M>> as OutputPin>::Error>

Drives the pin high Read more
source§

fn set_low(&mut self) -> Result<(), <Pin<I, Output<M>> as OutputPin>::Error>

Drives the pin low Read more
source§

fn set_state(&mut self, state: PinState) -> Result<(), Self::Error>

Drives the pin high or low depending on the provided value Read more
source§

impl<S, N, I, M> PadPin<Pad<S, N, Pin<I, <I as GetPad<S>>::PinMode>>> for Pin<I, M>where S: Sercom, N: PadNum, I: GetPad<S>, M: PinMode, Pin<I, M>: IntoFunction<Pin<I, <I as GetPad<S>>::PinMode>>, Pin<I, <I as GetPad<S>>::PinMode>: IsPad<Sercom = S, PadNum = N>,

source§

fn into_pad( self, port: &mut Port ) -> Pad<S, N, Pin<I, <I as GetPad<S>>::PinMode>>

Auto Trait Implementations§

§

impl<I, M> RefUnwindSafe for Pin<I, M>where I: RefUnwindSafe, M: RefUnwindSafe,

§

impl<I, M> Send for Pin<I, M>where I: Send, M: Send,

§

impl<I, M> Sync for Pin<I, M>where I: Sync, M: Sync,

§

impl<I, M> Unpin for Pin<I, M>where I: Unpin, M: Unpin,

§

impl<I, M> UnwindSafe for Pin<I, M>where I: UnwindSafe, M: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<P> CompatiblePad for Pwhere P: IsPad,

§

type Sercom = <P as IsPad>::Sercom

§

type PadNum = <P as IsPad>::PadNum

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Is for Twhere T: Sealed + AsRef<T> + AsMut<T>,

§

type Type = T

source§

impl<P> OptionalPad for Pwhere P: IsPad,

§

type PadNum = <P as IsPad>::PadNum

source§

impl<P> OptionalPin for Pwhere P: AnyPin,

§

type Id = <P as AnyPin>::Id

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<P> SomePad for Pwhere P: IsPad,

source§

impl<P> SomePin for Pwhere P: AnyPin,