Trait infrared::remotecontrol::RemoteControlModel[][src]

pub trait RemoteControlModel: Default {
    type Cmd: AddressCommand;

    const MODEL: &'static str;
    const DEVTYPE: DeviceType;
    const PROTOCOL: ProtocolId;
    const ADDRESS: u32;
    const BUTTONS: &'static [(u32, Action)];
    fn decode(cmd: &Self::Cmd) -> Option<Action> { ... }
fn encode(button: &Action) -> Option<Self::Cmd> { ... } }
Expand description

A trait describing a Remote Control

Associated Types

The type of command

Associated Constants

Remote control model

Type of device that this remote controls

Protocol

Device address

command byte to action mapping

Provided methods

Try to map a command into a Action for this remote

Encode a button into a command

Implementors