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§
impl Copy for Level
impl Eq for Level
impl PeripheralInput<'_> for Level
impl PeripheralOutput<'_> for Level
impl PeripheralSignal<'_> for Level
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 UnsafeUnpin for Level
impl UnwindSafe for Level
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more