[][src]Trait infrared::Receiver

pub trait Receiver {
    type Cmd;
    type Err;

    const PROTOCOL_ID: ProtocolId;

    fn sample(
        &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>;
fn reset(&mut self);
fn disable(&mut self); }

Receiver trait

Associated Types

type Cmd

The resulting command type

type Err

Receive Error

Loading content...

Associated Constants

const PROTOCOL_ID: ProtocolId

Protocol id

Loading content...

Required methods

fn sample(
    &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>

Sample on known edge

fn reset(&mut self)

Reset receiver

fn disable(&mut self)

Disable receiver

Loading content...

Implementors

impl Receiver for LoggingReceiver[src]

type Cmd = ()

type Err = ()

impl Receiver for Rc5Receiver[src]

type Cmd = Rc5Command

type Err = Rc5Error

impl Receiver for Rc6Receiver[src]

type Cmd = Rc6Command

type Err = Rc6Error

impl Receiver for SbpReceiver[src]

type Cmd = SbpCommand

type Err = ()

impl<NECTYPE: NecTypeTrait> Receiver for NecTypeReceiver<NECTYPE>[src]

type Cmd = NecCommand

type Err = NecError

Loading content...