Added CX channel hopper block
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
index 6dc30a3..2c18d6c 100644
--- a/lib/CMakeLists.txt
+++ b/lib/CMakeLists.txt
@@ -30,6 +30,7 @@
     receiver/viterbi_detector.cc 
     receiver/sch.c
     receiver/clock_offset_control_impl.cc
+    receiver/cx_channel_hopper_impl.cc
     misc_utils/bursts_printer_impl.cc
     misc_utils/extract_system_info_impl.cc
     demapping/universal_ctrl_chans_demapper_impl.cc
@@ -48,8 +49,7 @@
     misc_utils/tmsi_dumper_impl.cc
     misc_utils/burst_sink_impl.cc
     misc_utils/burst_source_impl.cc
-    decryption/decryption_impl.cc
-    )
+    decryption/decryption_impl.cc )
 
 add_library(gnuradio-gsm SHARED ${grgsm_sources})
 target_link_libraries(gnuradio-gsm ${Boost_LIBRARIES} ${GNURADIO_RUNTIME_LIBRARIES} ${VOLK_LIBRARIES}
diff --git a/lib/receiver/cx_channel_hopper_impl.cc b/lib/receiver/cx_channel_hopper_impl.cc
new file mode 100644
index 0000000..10371ab
--- /dev/null
+++ b/lib/receiver/cx_channel_hopper_impl.cc
@@ -0,0 +1,65 @@
+/* -*- c++ -*- */
+/* @file
+ * @author Piotr Krysik <ptrkrysik@gmail.com>
+ * @section LICENSE
+ * 
+ * Gr-gsm is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3, or (at your option)
+ * any later version.
+ * 
+ * Gr-gsm is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with gr-gsm; see the file COPYING.  If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street,
+ * Boston, MA 02110-1301, USA.
+ * 
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <gnuradio/io_signature.h>
+#include "cx_channel_hopper_impl.h"
+
+namespace gr {
+  namespace gsm {
+
+    cx_channel_hopper::sptr
+    cx_channel_hopper::make(int ma, int maio, int hsn)
+    {
+      return gnuradio::get_initial_sptr
+        (new cx_channel_hopper_impl(ma, maio, hsn));
+    }
+
+    /*
+     * The private constructor
+     */
+    cx_channel_hopper_impl::cx_channel_hopper_impl(int ma, int maio, int hsn)
+      : gr::block("cx_channel_hopper",
+              gr::io_signature::make(0, 0, 0),
+              gr::io_signature::make(0, 0, 0))
+    {
+      d_ma = ma;
+      d_maio = maio;
+      d_hsn = hsn;
+
+      message_port_register_in(pmt::mp("CX"));
+      message_port_register_out(pmt::mp("bursts"));
+    }
+
+    /*
+     * Our virtual destructor.
+     */
+    cx_channel_hopper_impl::~cx_channel_hopper_impl()
+    {
+    }
+
+  } /* namespace gsm */
+} /* namespace gr */
+
diff --git a/lib/receiver/cx_channel_hopper_impl.h b/lib/receiver/cx_channel_hopper_impl.h
new file mode 100644
index 0000000..439c7bd
--- /dev/null
+++ b/lib/receiver/cx_channel_hopper_impl.h
@@ -0,0 +1,47 @@
+/* -*- c++ -*- */
+/* @file
+ * @author Piotr Krysik <ptrkrysik@gmail.com>
+ * @section LICENSE
+ * 
+ * Gr-gsm is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3, or (at your option)
+ * any later version.
+ * 
+ * Gr-gsm is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with gr-gsm; see the file COPYING.  If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street,
+ * Boston, MA 02110-1301, USA.
+ * 
+ */
+
+#ifndef INCLUDED_GSM_CX_CHANNEL_HOPPER_IMPL_H
+#define INCLUDED_GSM_CX_CHANNEL_HOPPER_IMPL_H
+
+#include <grgsm/receiver/cx_channel_hopper.h>
+
+namespace gr {
+  namespace gsm {
+
+    class cx_channel_hopper_impl : public cx_channel_hopper
+    {
+     private:
+      int d_ma;
+      int d_maio;
+      int d_hsn;
+
+     public:
+      cx_channel_hopper_impl(int ma, int maio, int hsn);
+      ~cx_channel_hopper_impl();
+    };
+
+  } // namespace gsm
+} // namespace gr
+
+#endif /* INCLUDED_GSM_CX_CHANNEL_HOPPER_IMPL_H */
+