[−][src]Trait infrared::Command
Remote control command trait
Required methods
pub fn construct(addr: u32, data: u32) -> Option<Self> where
Self: Sized,
[src]
Self: Sized,
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
Provided methods
pub fn pulses_shift_scaled(&self, buf: &mut [u16], shift: usize) -> usize
[src]
Pulses scaled by shifting