Struct p25::bits::TribitParams
[−]
[src]
pub struct TribitParams;
Parameters for Tribits
iterator.
Trait Implementations
impl IterParams for TribitParams
[src]
type Input = u8
Type to consume when buffering.
type Output = Tribit
Type to yield at each iteration.
fn bits() -> usize
[src]
Number of bits to consume at each iteration.
fn buffer() -> usize
[src]
Number of input symbols to consume when buffering.
fn shift() -> usize
[src]
Amount to shift buffer after loading an input symbol.
fn to_byte(input: Self::Input) -> u8
[src]
Convert input symbol to a byte.
fn to_output(bits: u8) -> Tribit
[src]
Convert bits to output type.
fn post_shift() -> usize
[src]
Amount to shift buffer after all buffering, so the bits are lined up at the MSB.
fn iterations() -> usize
[src]
Number of iterations before buffering.
fn validate()
[src]
Verify the parameters are supported.