Struct p25::message::nid::NidReceiver
[−]
[src]
pub struct NidReceiver { /* fields omitted */ }State machine that attempts to parse a stream of dibits into an NID word.
Methods
impl NidReceiver[src]
pub fn new() -> NidReceiver[src]
Create a new NidReceiver with an empty buffer.
pub fn feed(&mut self, dibit: Dibit) -> Option<Result<NetworkId>>[src]
Feed in a data symbol, possibly producing a decoded NID. Return Some(Ok(nid)) if
an NID was successfully parsed, Some(Err(err)) if an unrecoverable error
occurred, and None for no event.