little update to Makefile.am

This commit is contained in:
Piotr Krysik 2009-06-12 12:01:47 +02:00
parent 9864214838
commit 6cf10db5cd
4 changed files with 9 additions and 9 deletions

View File

@ -93,6 +93,7 @@ grinclude_HEADERS = \
gsm_receiver_config.h gsm_receiver_config.h
noinst_HEADERS = \ noinst_HEADERS = \
gsm_constants.h \
viterbi_detector.h viterbi_detector.h
# These swig headers get installed in ${prefix}/include/gnuradio/swig # These swig headers get installed in ${prefix}/include/gnuradio/swig

View File

@ -25,13 +25,13 @@
%include "exception.i" %include "exception.i"
%import "gnuradio.i" // the common stuff %import "gnuradio.i" // the common stuff
%include "gsm_constants.h" /* %include "gsm_constants.h" */
%{ %{
#include "gnuradio_swig_bug_workaround.h" // mandatory bug fix #include "gnuradio_swig_bug_workaround.h" // mandatory bug fix
#include "gsm_receiver_cf.h" #include "gsm_receiver_cf.h"
#include <stdexcept> #include <stdexcept>
#include "gsm_constants.h" /* #include "gsm_constants.h" */
%} %}
// ---------------------------------------------------------------- // ----------------------------------------------------------------

View File

@ -35,7 +35,6 @@
#include <viterbi_detector.h> #include <viterbi_detector.h>
#include <sch.h> #include <sch.h>
// #define FCCH_BUFFER_SIZE ()
#define SYNC_SEARCH_RANGE 30 #define SYNC_SEARCH_RANGE 30
#define TRAIN_SEARCH_RANGE 40 #define TRAIN_SEARCH_RANGE 40
@ -44,7 +43,7 @@
//w tym przykładzie po prostu wyrzuca zawartość pakietu na wyjście //w tym przykładzie po prostu wyrzuca zawartość pakietu na wyjście
//ps. pakiety które nie mają trzech zer na początku zazwyczaj są błędnie odebrane //ps. pakiety które nie mają trzech zer na początku zazwyczaj są błędnie odebrane
//ewentulanie innego typu (np. obierasz dummy jako normalny) //ewentulanie innego typu (np. obierasz dummy jako normalny)
void gsm_receiver_cf::przetwarzaj_normalny_pakiet(burst_counter burst_nr, unsigned char * pakiet) void gsm_receiver_cf::process_normal_burst(burst_counter burst_nr, unsigned char * pakiet)
{ {
if (burst_nr.get_timeslot_nr() == 0) { if (burst_nr.get_timeslot_nr() == 0) {
printf("burst = [ "); printf("burst = [ ");
@ -62,7 +61,7 @@ void gsm_receiver_cf::przetwarzaj_normalny_pakiet(burst_counter burst_nr, unsign
// Ja zakładam, że dla danej szczeliny do określenia jaki typ pakietu przypada // Ja zakładam, że dla danej szczeliny do określenia jaki typ pakietu przypada
// dla danej chwili może być używany tylko jeden z tych liczników. Z dokumentu // dla danej chwili może być używany tylko jeden z tych liczników. Z dokumentu
// 3gpp 04.03 wynika, że to jest prawda w warstwie fizycznej. // 3gpp 04.03 wynika, że to jest prawda w warstwie fizycznej.
void gsm_receiver_cf::konfiguruj_odbiornik() void gsm_receiver_cf::configure_receiver()
{ {
// poniżej jest przykład jak się konfiguruje odbiornik // poniżej jest przykład jak się konfiguruje odbiornik
// najpierw mówię mu, że szczelina w szczelinie nr.0 typy pakietów zmieniają się wg. // najpierw mówię mu, że szczelina w szczelinie nr.0 typy pakietów zmieniają się wg.
@ -194,7 +193,7 @@ gsm_receiver_cf::general_work(int noutput_items,
//configure the receiver - tell him where to find which burst type //configure the receiver - tell him where to find which burst type
d_channel_conf.set_multiframe_type(TIMESLOT0, multiframe_51); //in the timeslot nr.0 bursts changes according to t3 counter d_channel_conf.set_multiframe_type(TIMESLOT0, multiframe_51); //in the timeslot nr.0 bursts changes according to t3 counter
konfiguruj_odbiornik();//TODO: this shouldn't be here - remove it when gsm receiver's interface will be ready configure_receiver();//TODO: this shouldn't be here - remove it when gsm receiver's interface will be ready
d_channel_conf.set_burst_types(TIMESLOT0, FCCH_FRAMES, sizeof(FCCH_FRAMES) / sizeof(unsigned), fcch_burst); //tell where to find fcch bursts d_channel_conf.set_burst_types(TIMESLOT0, FCCH_FRAMES, sizeof(FCCH_FRAMES) / sizeof(unsigned), fcch_burst); //tell where to find fcch bursts
d_channel_conf.set_burst_types(TIMESLOT0, SCH_FRAMES, sizeof(SCH_FRAMES) / sizeof(unsigned), sch_burst); //sch bursts d_channel_conf.set_burst_types(TIMESLOT0, SCH_FRAMES, sizeof(SCH_FRAMES) / sizeof(unsigned), sch_burst); //sch bursts
d_channel_conf.set_burst_types(TIMESLOT0, BCCH_FRAMES, sizeof(BCCH_FRAMES) / sizeof(unsigned), normal_burst);//!and maybe normal bursts of the BCCH logical channel d_channel_conf.set_burst_types(TIMESLOT0, BCCH_FRAMES, sizeof(BCCH_FRAMES) / sizeof(unsigned), normal_burst);//!and maybe normal bursts of the BCCH logical channel
@ -250,7 +249,7 @@ gsm_receiver_cf::general_work(int noutput_items,
case normal_burst: //if it's normal burst case normal_burst: //if it's normal burst
burst_start = get_norm_chan_imp_resp(input, &channel_imp_resp[0], TRAIN_SEARCH_RANGE, d_bcc); //get channel impulse response for given training sequence number - d_bcc burst_start = get_norm_chan_imp_resp(input, &channel_imp_resp[0], TRAIN_SEARCH_RANGE, d_bcc); //get channel impulse response for given training sequence number - d_bcc
detect_burst(input, &channel_imp_resp[0], burst_start, output_binary); //MLSE detection of bits detect_burst(input, &channel_imp_resp[0], burst_start, output_binary); //MLSE detection of bits
przetwarzaj_normalny_pakiet(d_burst_nr, output_binary); //TODO: this shouldn't be here - remove it when gsm receiver's interface will be ready process_normal_burst(d_burst_nr, output_binary); //TODO: this shouldn't be here - remove it when gsm receiver's interface will be ready
break; break;
case rach_burst: case rach_burst:

View File

@ -206,12 +206,12 @@ class gsm_receiver_cf : public gr_block
* @param burst_nr * @param burst_nr
* @param pakiet * @param pakiet
*/ */
void przetwarzaj_normalny_pakiet(burst_counter burst_nr, unsigned char * pakiet); void process_normal_burst(burst_counter burst_nr, unsigned char * pakiet);
/** /**
* *
*/ */
void konfiguruj_odbiornik(); void configure_receiver();
public: public:
~gsm_receiver_cf(); ~gsm_receiver_cf();