|
fun_ofdm
1.0
802.11a Physical Layer for USRP
|
Transmitter test. More...
#include "stdio.h"#include "stdlib.h"#include "time.h"#include <iostream>#include "transmitter.h"Go to the source code of this file.
Functions | |
| void | test_tx (double freq, double sample_rate, double tx_gain, double amp, Rate phy_rate) |
| Function for testing the fun_ofdm transmitter. More... | |
| int | main (int argc, char *argv[]) |
Variables | |
| double | freq = 5.72e9 |
| double | sample_rate = 5e6 |
| double | tx_gain = 30 |
| double | amp = 0.5 |
| Rate | phy_rate = RATE_1_2_BPSK |
Transmitter test.
This file is used to test transmitting OFDM PHY frames over the air.
Definition in file test_tx.cpp.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 24 of file test_tx.cpp.
References amp, freq, phy_rate, sample_rate, test_tx(), and tx_gain.
| void test_tx | ( | double | freq, |
| double | sample_rate, | ||
| double | tx_gain, | ||
| double | amp, | ||
| Rate | phy_rate | ||
| ) |
Function for testing the fun_ofdm transmitter.
| freq | Center Frequency |
| sample_rate | Sample Rate |
| tx_gain | Transmitter Gain |
| amp | Transmit Amplitude |
| phy_rate | The PHY Rate used for all packets in this tx test |
This function transmits 1000 packets. The data in the transmitted packets is mostly random except for the first, middle, and last 100 bytes which are a known string. This string is used to verify that the packet was in fact received along with the IEEE CRC-32 check.
Definition at line 45 of file test_tx.cpp.
References fun::RateParams::name, and fun::transmitter::send_packet().
Referenced by main().
| double amp = 0.5 |
Definition at line 21 of file test_tx.cpp.
| double freq = 5.72e9 |
Definition at line 17 of file test_tx.cpp.
| Rate phy_rate = RATE_1_2_BPSK |
Definition at line 22 of file test_tx.cpp.
| double sample_rate = 5e6 |
Definition at line 18 of file test_tx.cpp.
| double tx_gain = 30 |
Definition at line 19 of file test_tx.cpp.