[−][src]Trait infrared::Receiver
Receiver trait
Associated Types
Loading content...Associated Constants
const PROTOCOL_ID: ProtocolId
Protocol id
Required methods
fn sample(
&mut self,
pinval: bool,
sampletime: u32
) -> ReceiverState<Self::Cmd, Self::Err>
&mut self,
pinval: bool,
sampletime: u32
) -> ReceiverState<Self::Cmd, Self::Err>
Sample
fn sample_edge(
&mut self,
rising: bool,
sampletime: u32
) -> ReceiverState<Self::Cmd, Self::Err>
&mut self,
rising: bool,
sampletime: u32
) -> ReceiverState<Self::Cmd, Self::Err>
Sample on known edge
fn reset(&mut self)
Reset receiver
fn disable(&mut self)
Disable receiver
Implementors
impl Receiver for LoggingReceiver
[src]
type Cmd = ()
type Err = ()
const PROTOCOL_ID: ProtocolId
[src]
fn sample(&mut self, pinval: bool, samplenum: u32) -> ReceiverState<(), ()>
[src]
fn sample_edge(
&mut self,
rising: bool,
sampletime: u32
) -> ReceiverState<Self::Cmd, Self::Err>
[src]
&mut self,
rising: bool,
sampletime: u32
) -> ReceiverState<Self::Cmd, Self::Err>
fn reset(&mut self)
[src]
fn disable(&mut self)
[src]
impl Receiver for Rc5Receiver
[src]
type Cmd = Rc5Command
type Err = Rc5Error
const PROTOCOL_ID: ProtocolId
[src]
fn sample(
&mut self,
pinval: bool,
sampletime: u32
) -> ReceiverState<Rc5Command, Rc5Error>
[src]
&mut self,
pinval: bool,
sampletime: u32
) -> ReceiverState<Rc5Command, Rc5Error>
fn sample_edge(
&mut self,
rising: bool,
sampletime: u32
) -> ReceiverState<Rc5Command, Rc5Error>
[src]
&mut self,
rising: bool,
sampletime: u32
) -> ReceiverState<Rc5Command, Rc5Error>
fn reset(&mut self)
[src]
fn disable(&mut self)
[src]
impl Receiver for Rc6Receiver
[src]
type Cmd = Rc6Command
type Err = Rc6Error
const PROTOCOL_ID: ProtocolId
[src]
fn sample(
&mut self,
pinval: bool,
timestamp: u32
) -> ReceiverState<Rc6Command, Rc6Error>
[src]
&mut self,
pinval: bool,
timestamp: u32
) -> ReceiverState<Rc6Command, Rc6Error>
fn sample_edge(
&mut self,
rising: bool,
sampletime: u32
) -> ReceiverState<Rc6Command, Rc6Error>
[src]
&mut self,
rising: bool,
sampletime: u32
) -> ReceiverState<Rc6Command, Rc6Error>
fn reset(&mut self)
[src]
fn disable(&mut self)
[src]
impl Receiver for SbpReceiver
[src]
type Cmd = SbpCommand
type Err = ()
const PROTOCOL_ID: ProtocolId
[src]
fn sample(
&mut self,
pinval: bool,
sampletime: u32
) -> ReceiverState<Self::Cmd, Self::Err>
[src]
&mut self,
pinval: bool,
sampletime: u32
) -> ReceiverState<Self::Cmd, Self::Err>
fn sample_edge(
&mut self,
rising: bool,
sampletime: u32
) -> ReceiverState<Self::Cmd, Self::Err>
[src]
&mut self,
rising: bool,
sampletime: u32
) -> ReceiverState<Self::Cmd, Self::Err>
fn reset(&mut self)
[src]
fn disable(&mut self)
[src]
impl<NECTYPE: NecTypeTrait> Receiver for NecTypeReceiver<NECTYPE>
[src]
type Cmd = NecCommand
type Err = NecError
const PROTOCOL_ID: ProtocolId
[src]
fn sample(
&mut self,
pinval: bool,
timestamp: u32
) -> ReceiverState<NecCommand, NecError>
[src]
&mut self,
pinval: bool,
timestamp: u32
) -> ReceiverState<NecCommand, NecError>
fn sample_edge(
&mut self,
rising: bool,
sampletime: u32
) -> ReceiverState<Self::Cmd, Self::Err>
[src]
&mut self,
rising: bool,
sampletime: u32
) -> ReceiverState<Self::Cmd, Self::Err>