aboutsummaryrefslogtreecommitdiffstats
path: root/lib/receiver/receiver_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/receiver/receiver_impl.h')
-rw-r--r--lib/receiver/receiver_impl.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/lib/receiver/receiver_impl.h b/lib/receiver/receiver_impl.h
index eb406f3..23aa085 100644
--- a/lib/receiver/receiver_impl.h
+++ b/lib/receiver/receiver_impl.h
@@ -37,9 +37,6 @@ namespace gr {
unsigned int d_c0_burst_start;
float d_c0_signal_dbm;
- lv_32fc_t* d_freq_estim_vector;// = (lv_32fc_t*)volk_malloc(sizeof(lv_32fc_t)*160, alignment);
- lv_32fc_t* d_freq_estim_result;// = (lv_32fc_t*)volk_malloc(sizeof(lv_32fc_t)*1, alignment);
-
/**@name Configuration of the receiver */
//@{
const int d_OSR; ///< oversampling ratio
@@ -66,6 +63,7 @@ namespace gr {
/**@name Variables used to store result of the find_fcch_burst fuction */
//@{
+ bool d_freq_offset_tag_in_fcch; ///< frequency offset tag presence
unsigned d_fcch_start_pos; ///< position of the first sample of the fcch burst
float d_freq_offset_setting; ///< frequency offset set in frequency shifter located upstream
//@}
@@ -111,9 +109,6 @@ namespace gr {
* @return true if frequency offset was faound
*/
double compute_freq_offset(const gr_complex * input, unsigned first_sample, unsigned last_sample);
-
- double estim_freq_norm(const gr_complex * input, unsigned first_sample, unsigned last_sample); //another frequency estimator
- double estim_freq_norm2(const gr_complex * input, unsigned first_sample, unsigned last_sample); //another frequency estimator
/** Computes angle between two complex numbers
*
* @param val1 first complex number
@@ -206,9 +201,13 @@ namespace gr {
* Configures burst types in different channels
*/
void configure_receiver();
-
-
+ /* State machine handlers */
+ void fcch_search_handler(gr_complex *input, int noutput_items);
+ void sch_search_handler(gr_complex *input, int noutput_items);
+ void synchronized_handler(gr_complex *input,
+ gr_vector_const_void_star &input_items, int noutput_items);
+
public:
receiver_impl(int osr, const std::vector<int> &cell_allocation, const std::vector<int> &tseq_nums, bool process_uplink);
~receiver_impl();