[][src]Struct infrared::logging::LoggingReceiver

pub struct LoggingReceiver {
    pub samplerate: u32,
    pub timeout: u16,
    pub edges: [u16; 128],
    pub n_edges: usize,
    pub prev_pinval: bool,
    pub prev_samplenum: u32,
    pub state: ReceiverState<(), ()>,
}

Receiver that doesn't do any decoding of the incoming signal Instead it saves the distance between the edges for later processing

Fields

samplerate: u32

Samplerate

timeout: u16

Timemout

edges: [u16; 128]

Saved edges

n_edges: usize

Number of edges in edges

prev_pinval: bool

Prev pin value

prev_samplenum: u32

Samplenum with pin change

state: ReceiverState<(), ()>

Our state

Methods

impl LoggingReceiver[src]

pub const fn new(samplerate: u32, timeout: u16) -> Self[src]

pub fn delta(&self, ts: u32) -> u16[src]

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

Trait Implementations

impl Receiver for LoggingReceiver[src]

type Cmd = ()

The resulting command type

type Err = ()

Receive Error

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]