fun_ofdm
1.0
802.11a Physical Layer for USRP
|
The RateParams struct. More...
#include <rates.h>
Public Member Functions | |
RateParams (Rate _rate) | |
RateParams constructor. More... | |
Static Public Member Functions | |
static RateParams | FromRateField (unsigned char rate_field) |
Gets a RateParams instance based on the rate field in the packet header. More... | |
Public Attributes | |
unsigned char | rate_field |
SIGNAL rate field. More... | |
int | cbps |
Coded bits per symbol. More... | |
int | dbps |
Data bits per symbol. More... | |
int | bpsc |
Bits per subcarrier. More... | |
Rate | rate |
Rate enum value. More... | |
double | rel_rate |
Relative coding rate (relative to 1/2) More... | |
std::string | name |
Display name. More... | |
|
inline |
RateParams constructor.
Populates the rate parameters appropriately for the given PHY Rate
_rate | the PHY Rate for which the corresponding parameters are desired |
Definition at line 68 of file rates.h.
References bpsc, cbps, dbps, name, rate, 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, fun::RATE_3_4_QPSK, rate_field, and rel_rate.
Referenced by FromRateField().
|
inlinestatic |
Gets a RateParams instance based on the rate field in the packet header.
This function is used to get the appropriate rate parameters for the received packet based on the rate field in the received packet header.
rate_field | The rate field bits from the packet header |
Definition at line 208 of file rates.h.
References 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, fun::RATE_3_4_QPSK, and RateParams().
Referenced by fun::ppdu::decode_header().
int fun::RateParams::bpsc |
Bits per subcarrier.
Definition at line 57 of file rates.h.
Referenced by fun::modulator::demodulate(), RateParams(), and fun::FrameData::Reset().
int fun::RateParams::cbps |
int fun::RateParams::dbps |
Data bits per symbol.
Definition at line 56 of file rates.h.
Referenced by fun::ppdu::decode_data(), fun::ppdu::decode_header(), fun::ppdu::encode_data(), fun::ppdu::ppdu(), and RateParams().
std::string fun::RateParams::name |
Rate fun::RateParams::rate |
Rate enum value.
Definition at line 58 of file rates.h.
Referenced by fun::ppdu::decode_header(), fun::puncturer::depuncture(), fun::puncturer::puncture(), RateParams(), and fun::frame_decoder::work().
unsigned char fun::RateParams::rate_field |
SIGNAL rate field.
Definition at line 54 of file rates.h.
Referenced by fun::ppdu::encoder_header(), and RateParams().
double fun::RateParams::rel_rate |
Relative coding rate (relative to 1/2)
Definition at line 59 of file rates.h.
Referenced by fun::puncturer::depuncture(), fun::puncturer::puncture(), and RateParams().