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
impl From<Level> for InputConnection
Source§impl From<Level> for OutputConnection
impl From<Level> for OutputConnection
Source§impl Peripheral for Level
impl Peripheral for Level
impl Copy for Level
impl Eq for Level
impl PeripheralInput for Level
impl PeripheralOutput 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 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