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 InputSignal<'_>
Available on crate feature unstable
only.
impl From<Level> for InputSignal<'_>
Available on crate feature
unstable
only.Source§impl From<Level> for OutputSignal<'_>
Available on crate feature unstable
only.
impl From<Level> for OutputSignal<'_>
Available on crate feature
unstable
only.impl 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 PeripheralSignal<'_> 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, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)