pub enum Modulation {
Bpsk,
Qpsk,
}Expand description
Constellation mapping used on OFDM data carriers.
Variants§
Bpsk
Binary phase-shift keying, one bit per symbol.
Qpsk
Quadrature phase-shift keying, two bits per symbol.
Implementations§
Source§impl Modulation
impl Modulation
Sourcepub fn bits_per_symbol(self) -> usize
pub fn bits_per_symbol(self) -> usize
Returns the number of bits carried by one constellation symbol.
Parameters:
self: modulation variant. Returns:usize: bits per symbol (1for BPSK,2for QPSK).
Trait Implementations§
Source§impl Clone for Modulation
impl Clone for Modulation
Source§fn clone(&self) -> Modulation
fn clone(&self) -> Modulation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Modulation
impl Debug for Modulation
Source§impl PartialEq for Modulation
impl PartialEq for Modulation
impl Copy for Modulation
impl Eq for Modulation
impl StructuralPartialEq for Modulation
Auto Trait Implementations§
impl Freeze for Modulation
impl RefUnwindSafe for Modulation
impl Send for Modulation
impl Sync for Modulation
impl Unpin for Modulation
impl UnwindSafe for Modulation
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