fun_ofdm
1.0
802.11a Physical Layer for USRP
|
The modulator class. More...
#include <modulator.h>
Static Public Member Functions | |
static std::vector < std::complex< double > > | modulate (std::vector< unsigned char > data, Rate rate) |
Modulates the data. More... | |
static std::vector< unsigned char > | demodulate (std::vector< std::complex< double > > data, Rate rate) |
Demodulates the data. More... | |
The modulator class.
The modulator takes the input data in bits and converts it to complex doubles representing the digital modulation symbols and vice versa. Supported Modulations are: -BPSK -QPSK -16 QAM -64 QAM
Definition at line 35 of file modulator.h.
|
static |
Demodulates the data.
data | Vector of data to be demodulated in complex doubles. |
rate | PHY transmission frate from which the type of modulation is extracted. |
Demodulates the input data vector using one of the following modulations based on the given rate: -BPSK -QPSK -16 QAM -64 QAM
Definition at line 108 of file modulator.cpp.
References fun::RateParams::bpsc, fun::QAM< NumBits >::decode(), fun::RATE_1_2_BPSK, fun::RATE_1_2_QAM16, fun::RATE_1_2_QPSK, fun::RATE_2_3_BPSK, fun::RATE_2_3_QAM16, fun::RATE_2_3_QAM64, fun::RATE_2_3_QPSK, fun::RATE_3_4_BPSK, fun::RATE_3_4_QAM16, fun::RATE_3_4_QAM64, and fun::RATE_3_4_QPSK.
Referenced by fun::ppdu::decode_data(), and fun::ppdu::decode_header().
|
static |
Modulates the data.
data | Vector of data in bytes to be modulated. |
rate | PHY transmission rate from which the type of modulation is extracted. |
Modulates the input data vector using one of the following modulations based on the given rate: -BPSK -QPSK -16 QAM -64 QAM
Definition at line 29 of file modulator.cpp.
References fun::QAM< NumBits >::encode(), fun::RATE_1_2_BPSK, fun::RATE_1_2_QAM16, fun::RATE_1_2_QPSK, fun::RATE_2_3_BPSK, fun::RATE_2_3_QAM16, fun::RATE_2_3_QAM64, fun::RATE_2_3_QPSK, fun::RATE_3_4_BPSK, fun::RATE_3_4_QAM16, fun::RATE_3_4_QAM64, and fun::RATE_3_4_QPSK.
Referenced by fun::ppdu::encode_data(), and fun::ppdu::encoder_header().