pub enum Level {
Low,
High,
}
Expand description
Digital input or output level.
Level
can be used to control a GPIO output, and it can act as a peripheral
signal and be connected to peripheral inputs and outputs.
When connected to a peripheral input, the peripheral will read the corresponding level from that signal.
When connected to a peripheral output, the level will be ignored.
Variants§
Trait Implementations§
Source§impl From<Level> for InputConnection
Available on crate feature unstable
only.
impl From<Level> for InputConnection
Available on crate feature
unstable
only.Source§impl From<Level> for OutputConnection
Available on crate feature unstable
only.
impl From<Level> for OutputConnection
Available on crate feature
unstable
only.Source§impl Peripheral for Level
impl Peripheral for Level
Source§unsafe fn clone_unchecked(&self) -> Self::P
unsafe fn clone_unchecked(&self) -> Self::P
Unsafely clone (duplicate) a peripheral singleton. Read more
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,
Convert a value into a
PeripheralRef
. Read moreimpl Copy for Level
impl Eq for Level
impl PeripheralInput for Level
Available on crate feature
unstable
only.impl PeripheralOutput for Level
Available on crate feature
unstable
only.impl StructuralPartialEq for Level
Auto Trait Implementations§
impl Freeze for Level
impl RefUnwindSafe for Level
impl Send for Level
impl Sync for Level
impl Unpin for Level
impl UnwindSafe for Level
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
Mutably borrows from an owned value. Read more
§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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)