Struct nexus_revo_io::SymReader[][src]

pub struct SymReader<R: Read> { /* fields omitted */ }
Expand description

Bit-level symbol reader for detecting and decoding messages in Revo RF protocol.

Designed to block and continuously scan for bit patterns containing coded symbols. Incoming bytes do not need to be synchronized to sync words.

Implementations

Constructs new SymReader wrapped around io::Read trait.

Example

let mut sym_reader = SymReader::new(&mut cc1101_reader);

Blocks until a complete, valid Revo message is detected and decoded.

Example

loop {
    let msg = sym_reader.read_msg().expect("bad read_msg");
    println!("{:x?} {:?}", msg.0, msg.1);
}

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.