pub struct OfdmParams { /* private fields */ }Expand description
The subcarrier layout of an OFDM system. Subcarriers are numbered by signed index k in
-N/2 .. N/2 (index 0 is DC and is never used); negative indices are the upper half of the FFT.
Implementations§
Source§impl OfdmParams
impl OfdmParams
Sourcepub fn new(
fft_size: usize,
cp_len: usize,
data: Vec<isize>,
pilots: Vec<isize>,
pilot_values: Vec<Complex<f64>>,
) -> Result<Self, ErrorsJSL>
pub fn new( fft_size: usize, cp_len: usize, data: Vec<isize>, pilots: Vec<isize>, pilot_values: Vec<Complex<f64>>, ) -> Result<Self, ErrorsJSL>
A layout with fft_size (a power of two, at least 8), a cyclic prefix of cp_len samples
(< fft_size), the signed indices of the data and pilot subcarriers, and the known value
sent on each pilot every symbol. Indices must be distinct, nonzero, and within ±fft_size/2.
Sourcepub fn wifi_like() -> Self
pub fn wifi_like() -> Self
A 64-point layout in the style of IEEE 802.11a/g: 48 data subcarriers ±1..±26, pilots at
±7 and ±21 (BPSK +1, +1, +1, −1), and a 16-sample prefix.
pub fn fft_size(&self) -> usize
pub fn cp_len(&self) -> usize
Sourcepub fn symbol_len(&self) -> usize
pub fn symbol_len(&self) -> usize
Samples per OFDM symbol including the prefix.
Trait Implementations§
Source§impl Clone for OfdmParams
impl Clone for OfdmParams
Source§impl Debug for OfdmParams
impl Debug for OfdmParams
Source§impl PartialEq for OfdmParams
impl PartialEq for OfdmParams
impl StructuralPartialEq for OfdmParams
Auto Trait Implementations§
impl Freeze for OfdmParams
impl RefUnwindSafe for OfdmParams
impl Send for OfdmParams
impl Sync for OfdmParams
impl Unpin for OfdmParams
impl UnsafeUnpin for OfdmParams
impl UnwindSafe for OfdmParams
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