pub trait PeripheralInput<'d>: Into<InputSignal<'d>> + PeripheralSignal<'d> { }
Available on crate feature
unstable
only.Expand description
A signal that can be connected to a peripheral input.
Peripheral drivers are encouraged to accept types that implement this and
PeripheralOutput
as arguments instead of pin types.
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.
Implementors§
impl PeripheralInput<'_> for Level
impl PeripheralInput<'_> for NoPin
impl<'d> PeripheralInput<'d> for Flex<'d>
§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.
impl<'d> PeripheralInput<'d> for Input<'d>
§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.