Struct infrared::protocol::rc5::Rc5Command
source · Fields§
§addr: u8
§cmd: u8
§start: u8
§toggle: bool
Implementations§
Trait Implementations§
source§impl AddressCommand for Rc5Command
impl AddressCommand for Rc5Command
source§impl Clone for Rc5Command
impl Clone for Rc5Command
source§fn clone(&self) -> Rc5Command
fn clone(&self) -> Rc5Command
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Rc5Command
impl Debug for Rc5Command
source§impl From<Rc5Command> for MultiReceiverCommand
impl From<Rc5Command> for MultiReceiverCommand
source§fn from(cmd: Rc5Command) -> MultiReceiverCommand
fn from(cmd: Rc5Command) -> MultiReceiverCommand
Converts to this type from the input type.
source§impl PartialEq<Rc5Command> for Rc5Command
impl PartialEq<Rc5Command> for Rc5Command
source§fn eq(&self, other: &Rc5Command) -> bool
fn eq(&self, other: &Rc5Command) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<Mono: InfraMonotonic> ProtocolDecoder<Mono, Rc5Command> for Rc5Decoder<Mono>
impl<Mono: InfraMonotonic> ProtocolDecoder<Mono, Rc5Command> for Rc5Decoder<Mono>
source§fn event(&mut self, rising: bool, delta_t: Mono::Duration) -> State
fn event(&mut self, rising: bool, delta_t: Mono::Duration) -> State
Notify the state machine of a new event Read more
source§fn command(&self) -> Option<Rc5Command>
fn command(&self) -> Option<Rc5Command>
Get the command
Returns the data if State == Done, otherwise None
source§fn spans(&self) -> &PulseSpans<Mono>
fn spans(&self) -> &PulseSpans<Mono>
Get the time spans
source§fn event_total(
&mut self,
edge: bool,
dt: Mono::Duration
) -> Result<Option<Cmd>, DecodingError>
fn event_total(
&mut self,
edge: bool,
dt: Mono::Duration
) -> Result<Option<Cmd>, DecodingError>
I don’t care about the details, just give me a command (or an error)!