Struct p25::trunking::tsbk::TsbkReceiver [] [src]

pub struct TsbkReceiver { /* fields omitted */ }

State machine for receiving a TSBK packet.

The state machine consumes dibit symbols and performs the following steps:

  1. Buffer dibits until a full packet's worth are available
  2. Descramble symbols using the same deinterleaver as data packets
  3. Decode 1/2-rate convolutional code and attempt to correct any errors
  4. Group dibits into a buffer of bytes for further interpretation

Methods

impl TsbkReceiver
[src]

[src]

Create a new TsbkReceiver in the initial state.

[src]

Feed in a baseband symbol, possibly producing a complete TSBK packet. Return Some(Ok(pkt)) if a packet was successfully received, Some(Err(err)) if an error occurred, and None in the case of no event.