pub struct Ofdm { /* private fields */ }Expand description
An OFDM modulator/demodulator for a fixed layout.
Implementations§
Source§impl Ofdm
impl Ofdm
pub fn new(params: OfdmParams) -> Result<Self, ErrorsJSL>
pub fn params(&self) -> &OfdmParams
Sourcepub fn modulate(
&mut self,
symbols: &[Complex<f64>],
) -> Result<Vec<Complex<f64>>, ErrorsJSL>
pub fn modulate( &mut self, symbols: &[Complex<f64>], ) -> Result<Vec<Complex<f64>>, ErrorsJSL>
Modulates data symbols into a time-domain signal. The number of symbols must be a multiple
of num_data.
Sourcepub fn demodulate(
&mut self,
rx: &[Complex<f64>],
) -> Result<OfdmDemodulated, ErrorsJSL>
pub fn demodulate( &mut self, rx: &[Complex<f64>], ) -> Result<OfdmDemodulated, ErrorsJSL>
Demodulates a stream of OFDM symbols (each symbol_len samples, prefix included),
equalizing with a pilot-derived channel estimate per symbol. Without pilots there is
nothing to estimate from and the channel is taken to be 1.
Auto Trait Implementations§
impl Freeze for Ofdm
impl RefUnwindSafe for Ofdm
impl Send for Ofdm
impl Sync for Ofdm
impl Unpin for Ofdm
impl UnsafeUnpin for Ofdm
impl UnwindSafe for Ofdm
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