#include <gnuradio/config.h>
#include <ieee802_11/api.h>
#include <ieee802_11/mapper.h>
#include <cinttypes>
#include <iostream>
Go to the source code of this file.
|
| void | generate_mac_data_frame (const char *msdu, int msdu_size, char **psdu, int *psdu_size, char seq) |
| void | scramble (const char *input, char *out, frame_param &frame, char initial_state) |
| void | reset_tail_bits (char *scrambled_data, frame_param &frame) |
| void | convolutional_encoding (const char *input, char *out, frame_param &frame) |
| void | puncturing (const char *input, char *out, frame_param &frame, ofdm_param &ofdm) |
| void | interleave (const char *input, char *out, frame_param &frame, ofdm_param &ofdm, bool reverse=false) |
| void | split_symbols (const char *input, char *out, frame_param &frame, ofdm_param &ofdm) |
| void | generate_bits (const char *psdu, char *data_bits, frame_param &frame) |
◆ dout
| #define dout d_debug&& std::cout |
◆ MAX_BITS_PER_SYM
| #define MAX_BITS_PER_SYM 288 |
◆ MAX_ENCODED_BITS
◆ MAX_PAYLOAD_SIZE
| #define MAX_PAYLOAD_SIZE 1500 |
◆ MAX_PSDU_SIZE
◆ MAX_SYM
◆ mylog
Value:do { \
if (d_log) { \
d_logger->info(__VA_ARGS__); \
} \
} while (0);
◆ Encoding
◆ convolutional_encoding()
| void convolutional_encoding |
( |
const char * | input, |
|
|
char * | out, |
|
|
frame_param & | frame ) |
◆ generate_bits()
| void generate_bits |
( |
const char * | psdu, |
|
|
char * | data_bits, |
|
|
frame_param & | frame ) |
◆ generate_mac_data_frame()
| void generate_mac_data_frame |
( |
const char * | msdu, |
|
|
int | msdu_size, |
|
|
char ** | psdu, |
|
|
int * | psdu_size, |
|
|
char | seq ) |
Given a payload, generates a MAC data frame (i.e., a PSDU) to be given to the physical layer for encoding.
- Parameters
-
| msdu | the payload for the MAC frame |
| msdu_size | the size of the msdu in bytes |
| psdu | pointer to a byte array where to store the MAC frame. Memory will be alloced by the function |
| psdu_size | pointer to an integer where the size of the psdu in bytes will be stored |
| seq | sequence number of the frame |
◆ interleave()
| void interleave |
( |
const char * | input, |
|
|
char * | out, |
|
|
frame_param & | frame, |
|
|
ofdm_param & | ofdm, |
|
|
bool | reverse = false ) |
◆ puncturing()
◆ reset_tail_bits()
| void reset_tail_bits |
( |
char * | scrambled_data, |
|
|
frame_param & | frame ) |
◆ scramble()
| void scramble |
( |
const char * | input, |
|
|
char * | out, |
|
|
frame_param & | frame, |
|
|
char | initial_state ) |
◆ split_symbols()