pub struct InputConnection(/* private fields */);
unstable
only.Expand description
A peripheral input signal connection.
This is mainly intended for internal use, but it can be used to connect peripherals within the MCU without external hardware.
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Implementations§
Source§impl InputConnection
impl InputConnection
Sourcepub fn pull_direction(&self, pull: Pull)
pub fn pull_direction(&self, pull: Pull)
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Sourcepub fn init_input(&self, pull: Pull)
pub fn init_input(&self, pull: Pull)
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Sourcepub fn is_input_high(&self) -> bool
pub fn is_input_high(&self) -> bool
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Sourcepub fn input_signals(
&self,
_internal: Internal,
) -> &'static [(AlternateFunction, InputSignal)]
pub fn input_signals( &self, _internal: Internal, ) -> &'static [(AlternateFunction, InputSignal)]
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Sourcepub fn enable_input(&self, on: bool)
pub fn enable_input(&self, on: bool)
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Trait Implementations§
Source§impl Clone for InputConnection
impl Clone for InputConnection
Source§fn clone(&self) -> InputConnection
fn clone(&self) -> InputConnection
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl From<Flex<'static>> for InputConnection
impl From<Flex<'static>> for InputConnection
Source§impl From<InputSignal> for InputConnection
impl From<InputSignal> for InputConnection
Source§fn from(input: InputSignal) -> Self
fn from(input: InputSignal) -> Self
Source§impl From<Level> for InputConnection
impl From<Level> for InputConnection
Source§impl From<NoPin> for InputConnection
impl From<NoPin> for InputConnection
Source§impl From<OutputConnection> for InputConnection
impl From<OutputConnection> for InputConnection
Source§fn from(conn: OutputConnection) -> Self
fn from(conn: OutputConnection) -> Self
Source§impl From<OutputSignal> for InputConnection
impl From<OutputSignal> for InputConnection
Source§fn from(output_signal: OutputSignal) -> Self
fn from(output_signal: OutputSignal) -> Self
Source§impl<P> From<P> for InputConnectionwhere
P: InputPin,
impl<P> From<P> for InputConnectionwhere
P: InputPin,
Source§impl Peripheral for InputConnection
impl Peripheral for InputConnection
Source§type P = InputConnection
type P = InputConnection
Source§unsafe fn clone_unchecked(&self) -> Self::P
unsafe fn clone_unchecked(&self) -> Self::P
Source§fn into_ref<'a>(self) -> PeripheralRef<'a, Self::P>where
Self: 'a,
fn into_ref<'a>(self) -> PeripheralRef<'a, Self::P>where
Self: 'a,
PeripheralRef
. Read moreimpl PeripheralInput for InputConnection
Auto Trait Implementations§
impl Freeze for InputConnection
impl RefUnwindSafe for InputConnection
impl Send for InputConnection
impl Sync for InputConnection
impl Unpin for InputConnection
impl UnwindSafe for InputConnection
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
clone_to_uninit
)