infrared 0.14.2

Infrared remote control library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// Command
pub trait Command {
    /// True if command is a repeat
    fn is_repeat(&self) -> bool;
}

/// Command with address and command part
pub trait AddressCommand: Command + Sized {
    /// Get the adress
    fn address(&self) -> u32;
    /// Get the command
    fn command(&self) -> u32;
    /// Create
    fn create(addr: u32, cmd: u32) -> Option<Self>;
}