diff options
author | tvoid <tvoid@lesaige.com> | 2008-04-08 09:33:35 -0600 |
---|---|---|
committer | tvoid <tvoid@lesaige.com> | 2008-04-08 09:33:35 -0600 |
commit | be9f4a08449c2bff807f8987e8f58a1705ee4bcb (patch) | |
tree | 2f5064bf86e7552f46d133434ccc6efd44529890 /gsm-tvoid/src/lib/gsm_burst_cf.cc | |
parent | 4cfc3dca2b252bfa65cf1633b9f966d572493547 (diff) |
-preproc defs for tune testing
-made burst ouput connections optional
-added realtime scheduling setup
Diffstat (limited to 'gsm-tvoid/src/lib/gsm_burst_cf.cc')
-rwxr-xr-x | gsm-tvoid/src/lib/gsm_burst_cf.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gsm-tvoid/src/lib/gsm_burst_cf.cc b/gsm-tvoid/src/lib/gsm_burst_cf.cc index 821b41f..df182a6 100755 --- a/gsm-tvoid/src/lib/gsm_burst_cf.cc +++ b/gsm-tvoid/src/lib/gsm_burst_cf.cc @@ -16,7 +16,7 @@ gsm_burst_cf_sptr gsm_make_burst_cf (gr_feval_ll *t,float sample_rate) static const int MIN_IN = 1; // minimum number of input streams static const int MAX_IN = 1; // maximum number of input streams -static const int MIN_OUT = 1; // minimum number of output streams +static const int MIN_OUT = 0; // minimum number of output streams static const int MAX_OUT = 1; // maximum number of output streams gsm_burst_cf::gsm_burst_cf (gr_feval_ll *t, float sample_rate) : @@ -103,9 +103,11 @@ int gsm_burst_cf::general_work (int noutput_items, else if (b >= 2 * MAX_CORR_DIST) b = 2 * MAX_CORR_DIST - 1; - memcpy(out+rval*USEFUL_BITS, d_burst_buffer + b, USEFUL_BITS*sizeof(float)); - rval++; - + if (out) { + memcpy(out+rval*USEFUL_BITS, d_burst_buffer + b, USEFUL_BITS*sizeof(float)); + rval++; + } + switch ( d_clock_options & QB_MASK ) { case QB_QUARTER: //extra 1/4 bit each burst d_mu -= d_relative_sample_rate / 4.0; |