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
type Cmd: AddressCommand
type Cmd: AddressCommand
The type of command
Associated Constants
const DEVTYPE: DeviceType
const DEVTYPE: DeviceType
Type of device that this remote controls
const PROTOCOL: ProtocolId
const PROTOCOL: ProtocolId
Protocol