pub enum ConvCode {
K5,
DvbK7,
}Expand description
Selects the convolutional mother code. Both are rate-1/2, zero-tail
terminated, and share the puncture matrices in PunctureRate.
Variants§
K5
The crate’s original constraint-length-5 code, G0 = 0o25, G1 = 0o23.
Also the code PSK31 uses (codec::conv_encode). Default for backward
compatibility.
DvbK7
DVB-T’s constraint-length-7 code, G0 = 0o171, G1 = 0o133 (ETSI EN 300 744 §4.3.3). The conformant DVB-T inner code.
Implementations§
Source§impl ConvCode
impl ConvCode
Sourcepub const fn constraint_length(self) -> usize
pub const fn constraint_length(self) -> usize
Constraint length K (register width is K − 1).
Sourcepub const fn reg_bits(self) -> usize
pub const fn reg_bits(self) -> usize
Register width in bits, K − 1 (also the number of zero tail bits).
Sourcepub const fn num_states(self) -> usize
pub const fn num_states(self) -> usize
Number of trellis states, 2^(K−1).
Trait Implementations§
impl Copy for ConvCode
impl Eq for ConvCode
impl StructuralPartialEq for ConvCode
Auto Trait Implementations§
impl Freeze for ConvCode
impl RefUnwindSafe for ConvCode
impl Send for ConvCode
impl Sync for ConvCode
impl Unpin for ConvCode
impl UnsafeUnpin for ConvCode
impl UnwindSafe for ConvCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more