pub enum Command {
Set {
chip: u32,
pin: u32,
level: Level,
},
Beep {
chip: u32,
pin: u32,
pattern: BeepPattern,
},
Status,
}Expand description
A validated GPIO-output command, parsed from one request line. Parsing is
pure (no hardware), so every malformed request is rejected before the service
touches a line. A set drives one line to a level; a beep runs a bounded
software-PWM envelope on one line; status reports the current line states.
Variants§
Set
Drive pin on chip chip to level.
Beep
Run a bounded beep envelope on pin of chip chip.
Status
Report the current driven line states.
Trait Implementations§
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.