fun_ofdm  1.0
802.11a Physical Layer for USRP
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
fun::plcp_header Struct Reference

The plcp_header struct is a container for PLCP Headers and their respective parameters. More...

#include <ppdu.h>

Public Member Functions

 plcp_header ()
 Constructor for empty plcp_header. More...
 
 plcp_header (Rate _rate, int _length)
 Constructor for plcp_header with rate and length known. More...
 
 plcp_header (Rate _rate, int _length, int _num_symbols)
 Constructor for plcp_header with rate, length and number of symbols known. More...
 

Public Attributes

Rate rate
 The PHY Rate for this frame. More...
 
int length
 The length of the payload in bytes. More...
 
int num_symbols
 The number of ofdm symbols in the frame. More...
 
unsigned short service
 The service field. More...
 

Detailed Description

The plcp_header struct is a container for PLCP Headers and their respective parameters.

Definition at line 25 of file ppdu.h.

Constructor & Destructor Documentation

fun::plcp_header::plcp_header ( )
inline

Constructor for empty plcp_header.

-Initializations:

  • rate -> RATE_1_2_BPSK i.e. BPSK modulation with 1/2 rate convolutional code
  • length -> 0
  • num_symbols -> 0
  • service -> 0

Definition at line 41 of file ppdu.h.

References length, num_symbols, rate, fun::RATE_1_2_BPSK, and service.

42  {
44  length = 0;
45  num_symbols = 0;
46  service = 0;
47  }
fun::plcp_header::plcp_header ( Rate  _rate,
int  _length 
)
inline

Constructor for plcp_header with rate and length known.

Parameters
_ratePHY Rate for this frame.
_lengthLength of payload in bytes.

Definition at line 54 of file ppdu.h.

References length, rate, and service.

55  {
56  rate = _rate;
57  length = _length;
58  service = 0;
59  }
fun::plcp_header::plcp_header ( Rate  _rate,
int  _length,
int  _num_symbols 
)
inline

Constructor for plcp_header with rate, length and number of symbols known.

Parameters
_ratePHY Rate for this frame.
_lengthLength of payload in bytes.
_num_symbolsNumber of OFDM symbols in frame.

Definition at line 67 of file ppdu.h.

References length, num_symbols, rate, and service.

68  {
69  rate = _rate;
70  length = _length;
71  num_symbols = _num_symbols;
72  service = 0;
73  }

Member Data Documentation

int fun::plcp_header::length

The length of the payload in bytes.

Definition at line 28 of file ppdu.h.

Referenced by fun::ppdu::decode_data(), fun::ppdu::decode_header(), fun::ppdu::encoder_header(), fun::ppdu::get_length(), and plcp_header().

int fun::plcp_header::num_symbols

The number of ofdm symbols in the frame.

Definition at line 29 of file ppdu.h.

Referenced by fun::ppdu::decode_header(), fun::ppdu::get_num_symbols(), and plcp_header().

Rate fun::plcp_header::rate
unsigned short fun::plcp_header::service

The service field.

Definition at line 30 of file ppdu.h.

Referenced by fun::ppdu::decode_data(), and plcp_header().


The documentation for this struct was generated from the following file: