pub trait EicPin: AnyPin + Sealed {
type Floating;
type PullUp;
type PullDown;
type ChId: ChId;
// Required methods
fn into_floating_ei(self, chan: Channel<Self::ChId>) -> Self::Floating;
fn into_pull_up_ei(self, chan: Channel<Self::ChId>) -> Self::PullUp;
fn into_pull_down_ei(self, chan: Channel<Self::ChId>) -> Self::PullDown;
}
Expand description
Trait representing a GPIO pin which can be used as an external interrupt.
Required Associated Types§
Required Methods§
Sourcefn into_floating_ei(self, chan: Channel<Self::ChId>) -> Self::Floating
fn into_floating_ei(self, chan: Channel<Self::ChId>) -> Self::Floating
Configure a pin as a floating external interrupt
Sourcefn into_pull_up_ei(self, chan: Channel<Self::ChId>) -> Self::PullUp
fn into_pull_up_ei(self, chan: Channel<Self::ChId>) -> Self::PullUp
Configure a pin as pulled-up external interrupt
Sourcefn into_pull_down_ei(self, chan: Channel<Self::ChId>) -> Self::PullDown
fn into_pull_down_ei(self, chan: Channel<Self::ChId>) -> Self::PullDown
Configure a pin as pulled-down external interrupt
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.