#[non_exhaustive]pub enum S2Field1 {
Fft1k,
Fft2k,
Fft4k,
Fft8k,
Fft16k,
Fft32k,
Reserved1,
Reserved2,
}Expand description
S2 field 1 (upper 3 bits of the 4-bit S2 field) per EN 302 755 §7.2.3 Tables 19-20.
Encodes the FFT size and guard-interval set for the T2 frame.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Fft1k
FFT size 1k / GI 1/128, 1/32, 1/16, 19/256, 1/8, 19/128, 1/4.
Fft2k
FFT size 2k / GI 1/128, 1/32, 1/16, 19/256, 1/8, 19/128, 1/4.
Fft4k
FFT size 4k / GI 1/128, 1/32, 1/16, 19/256, 1/8, 19/128, 1/4.
Fft8k
FFT size 8k / GI 1/128, 1/32, 1/16, 19/256, 1/8, 19/128, 1/4.
Fft16k
FFT size 16k / GI 1/128, 1/32, 1/16, 1/8, 19/128, 1/4.
Fft32k
FFT size 32k / GI 1/128, 1/32, 1/16, 19/256.
Reserved1
Reserved.
Reserved2
Reserved.
Implementations§
Source§impl S2Field1
impl S2Field1
Sourcepub fn from_u8(v: u8) -> Self
pub fn from_u8(v: u8) -> Self
Decode from the 3-bit S2 field 1 (bits [6:4] of the S2 byte).
Decode from the wire byte. Every byte maps to a variant (lossless).
Sourcepub const fn to_u8(self) -> u8
pub const fn to_u8(self) -> u8
Encode to 3-bit value.
Encode to the wire byte. Inverse of from_u8.
Sourcepub fn guard_interval_set(self) -> &'static str
pub fn guard_interval_set(self) -> &'static str
Guard-interval set description.
Trait Implementations§
impl Copy for S2Field1
impl Eq for S2Field1
impl StructuralPartialEq for S2Field1
Auto Trait Implementations§
impl Freeze for S2Field1
impl RefUnwindSafe for S2Field1
impl Send for S2Field1
impl Sync for S2Field1
impl Unpin for S2Field1
impl UnsafeUnpin for S2Field1
impl UnwindSafe for S2Field1
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