[−][src]Trait infrared::RemoteControl
A trait describing a Remote Control
Associated Types
Loading content...Associated Constants
pub const MODEL: &'static str
[src]
Remote control model
pub const DEVTYPE: DeviceType
[src]
Type of device that this remote controls
pub const PROTOCOL: Protocol
[src]
Protocol
pub const ADDRESS: u32
[src]
Device address
pub const BUTTONS: &'static [(u8, Button)]
[src]
command byte to standardbutton mapping
Provided methods
pub fn decode(cmd: Self::Cmd) -> Option<Button>
[src]
Try to map a command into an Button for this remote
pub fn encode(button: Button) -> Option<Self::Cmd>
[src]
Encode a button into a command