Struct p25::voice::header::VoiceHeaderReceiver
[−]
[src]
pub struct VoiceHeaderReceiver { /* fields omitted */ }
State machine for receiving a voice header packet.
Methods
impl VoiceHeaderReceiver
[src]
pub fn new() -> VoiceHeaderReceiver
[src]
Create a new VoiceHeaderReceiver
in the initial state.
pub fn feed(&mut self, dibit: Dibit) -> Option<Result<VoiceHeaderFields>>
[src]
Feed in a baseband symbol, possibly producing a voice header packet. Return
Some(Ok(pkt))
if the packet was successfully received, Some(Err(err))
if an
error occurred, and None
in the case of no event.