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::Pin
s. To aid in
compatibility, the v1
Pin
types also implement AnyPin
. From
&
Into
conversions are provided between the two pin types.
Implementations
The gpio::v1 module is deprecated, and will be removed in a subsequent release. Please use the gpio::v2 module instead.
👎 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.
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
👎 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.
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
👎 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.
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
👎 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.
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
👎 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.
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
👎 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.
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
👎 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.
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
👎 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.
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
👎 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.
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
👎 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.
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
👎 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.
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
👎 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.
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
👎 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.
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
👎 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.
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
👎 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.
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
👎 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.
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
👎 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.
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
👎 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.
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
👎 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.
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
👎 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.
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
👎 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.
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
👎 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.
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.
Trait Implementations
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Configure a pin as a floating external interrupt
Configure a pin as pulled-up external interrupt
Convert from a v1::Pin
to a v2::Pin
Convert from a v2::Pin
to a v1::Pin
impl<I, M, C> IntoFunction<Pin<I, Alternate<C>>> for Pin<I, M> where
I: PinId,
M: PinMode,
C: AlternateConfig,
impl<I, M, C> IntoFunction<Pin<I, Alternate<C>>> for Pin<I, M> where
I: PinId,
M: PinMode,
C: AlternateConfig,
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,
<Pin<I, <I as GetPad<S>>::PinMode> as IsPad>::Sercom == S,
<Pin<I, <I as GetPad<S>>::PinMode> as IsPad>::PadNum == N,
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,
<Pin<I, <I as GetPad<S>>::PinMode> as IsPad>::Sercom == S,
<Pin<I, <I as GetPad<S>>::PinMode> as IsPad>::PadNum == N,
Auto Trait Implementations
impl<I, M> RefUnwindSafe for Pin<I, M> where
I: RefUnwindSafe,
M: RefUnwindSafe,
impl<I, M> UnwindSafe for Pin<I, M> where
I: UnwindSafe,
M: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
Casts the value.
OverflowingCasts the value.
Casts the value.
Casts the value.
Casts the value.
UnwrappedCasts the value.
Casts the value.
WrappingCasts the value.