Skip to main content

DvbtFrame

Struct DvbtFrame 

Source
pub struct DvbtFrame { /* private fields */ }
Expand description

The cells of the frame of a mode: what every carrier of every symbol carries, the pilot PRBS and the data carriers (see the module).

Implementations§

Source§

impl DvbtFrame

Source

pub fn new(mode: Mode) -> DvbtFrame

The frame of the mode mode.

Source

pub fn mode(&self) -> Mode

The mode.

Source

pub fn cell(&self, l: usize, k: usize) -> Cell

What carrier k of symbol l carries.

Source

pub fn data_carriers(&self, l: usize) -> &[usize]

The data carriers of symbol l, increasing ($N_{\max}$ of them).

Source

pub fn reference(&self, k: usize) -> f64

The sign $2(1/2 - w_{k})$ of the reference signals of carrier k.

Source

pub fn mean_carrier_power(&self) -> f64

The mean power $E|c|^{2}$ over the $K$ carriers of a symbol: the data and TPS cells at 1, the pilots at 16/9; the same for every symbol (1.0803 in the 2K mode, 1.0800 in the 8K mode).

Source

pub fn symbol(&self, l: usize, data: &[C64], tps_sign: f64) -> Result<Vec<C64>>

The $K$ cells of symbol l: the pilots, the TPS carriers with the sign tps_sign ($d_{l}$ of tps_signs) and the $N_{\max}$ values data on the data carriers.

§Errors

Error::Shape unless data has $N_{\max}$ values.

Source

pub fn data_of(&self, l: usize, cells: &[C64]) -> Result<Vec<C64>>

The data cells of the $K$ received cells of symbol l.

§Errors

Error::Shape unless cells has $K$ values.

Source

pub fn tps_statistic( &self, cells: &[C64], channel: Option<&[C64]>, ) -> Result<f64>

The statistic of the TPS sign of a received symbol: $\sum_{k} \mathrm{Re}{y_{k} h_{k}^{*}} \cdot 2(1/2 - w_{k})$ over the TPS carriers, of the sign of $d_{l}$ (channel the gains of the carriers, 1 if None).

§Errors

Error::Shape unless cells (and channel) have $K$ values.

Source

pub fn ofdm(&self, guard: Guard) -> Result<Ofdm>

The OFDM modulator of the mode with the guard interval guard: $K$ active carriers out of the FFT of $T_{U}/T$, one sample per $T$.

§Errors

Never: the sizes of the mode are valid.

Trait Implementations§

Source§

impl Clone for DvbtFrame

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DvbtFrame

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.