aboutsummaryrefslogtreecommitdiff
path: root/octave/ofdm_load_const.m
blob: 95c1c4de8f0852c32e9dd075fa232a390080f43d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
% make like C #define for ofdm modem

Fs = states.Fs;
bps = states.bps;
Rs = states.Rs;
Tcp = states.Tcp;
Ns = states.Ns;
Np = states.Np;
Nc = states.Nc;
M = states.M;
Ncp = states.Ncp;
bps = states.bps;
Nbitsperframe = states.Nbitsperframe;
Nbitsperpacket = states.Nbitsperpacket;
Nsampersymbol = states.Nsampersymbol;
Nsamperframe = states.Nsamperframe;
timing_mx_thresh = states.timing_mx_thresh;
Nuwbits = states.Nuwbits;
Ntxtbits = states.Ntxtbits;
tx_uw =  states.tx_uw;
uw_ind = states.uw_ind;
uw_ind_sym = states.uw_ind_sym;
Nuwframes=states.Nuwframes;

W = states.W;
w = states.w;

timing_est = states.timing_est;
sample_point = states.sample_point;
ftwindow_width = states.ftwindow_width;

Nrxbuf = states.Nrxbuf;
rxbuf = states.rxbuf;
rxbufst = states.rxbufst;
Nrxbufmin = states.Nrxbufmin;

pilots = states.pilots;
rate_fs_pilot_samples = states.rate_fs_pilot_samples;

foff_est_gain = states.foff_est_gain;
foff_est_hz = states.foff_est_hz;

timing_en = states.timing_en;
foff_est_en = states.foff_est_en;
phase_est_en = states.phase_est_en;

rate = states.rate;
ldpc_en = states.ldpc_en;
if ldpc_en
  code_param = states.code_param;
  max_iterations = states.ldpc_max_iterations;
  demod_type = states.ldpc_demod_type;
  decoder_type = states.ldpc_decoder_type;
end

verbose = states.verbose;
ofdm_peak = states.ofdm_peak;