[][src]Trait infrared::Command

pub trait Command {
    pub fn construct(addr: u32, data: u32) -> Option<Self>
    where
        Self: Sized
;
pub fn address(&self) -> u32;
pub fn data(&self) -> u32;
pub fn protocol(&self) -> Protocol;
pub fn pulses(&self, buf: &mut [u16]) -> usize; pub fn pulses_shift_scaled(&self, buf: &mut [u16], shift: usize) -> usize { ... } }

Remote control command trait

Required methods

pub fn construct(addr: u32, data: u32) -> Option<Self> where
    Self: Sized
[src]

Construct a command

pub fn address(&self) -> u32[src]

Command address

pub fn data(&self) -> u32[src]

Get the data associated with the command

pub fn protocol(&self) -> Protocol[src]

Protocol

pub fn pulses(&self, buf: &mut [u16]) -> usize[src]

Command as pulses

Loading content...

Provided methods

pub fn pulses_shift_scaled(&self, buf: &mut [u16], shift: usize) -> usize[src]

Pulses scaled by shifting

Loading content...

Implementors

impl Command for Rc5Command[src]

impl Command for Rc6Command[src]

impl Command for SbpCommand[src]

impl<VARIANT: NecVariant> Command for NecCommand<VARIANT>[src]

Loading content...