[−][src]Struct embedded_platform::gpio::NoConnect
A virtual pin that is not actually connected to a physical pin.
The pin will always read a fixed value, can be configured to be in any mode, and will always have writes result in no-ops.
Methods
impl NoConnect
[src]
pub fn new(value: bool) -> Self
[src]
Creates a new NoConnect
that will always read the specified high/low value.
Trait Implementations
impl Clone for NoConnect
[src]
fn clone(&self) -> NoConnect
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for NoConnect
[src]
impl Debug for NoConnect
[src]
impl InputPin for NoConnect
[src]
impl IntoFloatingInputPin for NoConnect
[src]
type FloatingInputPin = Self
The type of an InputPin
that does not employ any pull-up or pull-down resistors.
fn into_floating_input_pin(self) -> Result<Self::FloatingInputPin, Self::Error>
[src]
impl IntoOpenDrainOutputPin for NoConnect
[src]
type OpenDrainOutputPin = Self
The type of an OutputPin
that is in open drain mode.
fn into_open_drain_output_pin(
self,
_initial_high: bool
) -> Result<Self::OpenDrainOutputPin, Self::Error>
[src]
self,
_initial_high: bool
) -> Result<Self::OpenDrainOutputPin, Self::Error>
impl IntoPullDownInputPin for NoConnect
[src]
type PullDownInputPin = Self
The type of an InputPin
that has a pull-down resistor attached.
fn into_pull_down_input_pin(self) -> Result<Self::PullDownInputPin, Self::Error>
[src]
impl IntoPullUpInputPin for NoConnect
[src]
type PullUpInputPin = Self
The type of an InputPin
that has a pull-up resistor attached.
fn into_pull_up_input_pin(self) -> Result<Self::PullUpInputPin, Self::Error>
[src]
impl IntoPushPullOutputPin for NoConnect
[src]
type PushPullOutputPin = Self
The type of an OutputPin
that is in push-pull mode.
fn into_push_pull_output_pin(
self,
_initial_high: bool
) -> Result<Self::PushPullOutputPin, Self::Error>
[src]
self,
_initial_high: bool
) -> Result<Self::PushPullOutputPin, Self::Error>
impl OutputPin for NoConnect
[src]
fn poll_set(
self: Pin<&mut Self>,
_cx: &mut Context,
_high: bool
) -> Poll<Result<(), Self::Error>>
[src]
self: Pin<&mut Self>,
_cx: &mut Context,
_high: bool
) -> Poll<Result<(), Self::Error>>
impl Pin for NoConnect
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<A> InputPinExt for A where
A: InputPin,
[src]
A: InputPin,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<A> OutputPinExt for A where
A: OutputPin,
[src]
A: OutputPin,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,