GNU Radio's IRIDIUM_TOOLKIT Package: burst_downmix_impl.h Source File

GNU Radio's IRIDIUM_TOOLKIT Package

burst_downmix_impl.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2016 Free Software Foundation, Inc
4 *
5 * This is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3, or (at your option)
8 * any later version.
9 *
10 * This software is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this software; see the file COPYING. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street,
18 * Boston, MA 02110-1301, USA.
19 */
20
21#ifndef INCLUDED_IRIDIUM_TOOLKIT_BURST_DOWNMIX_IMPL_H
22#define INCLUDED_IRIDIUM_TOOLKIT_BURST_DOWNMIX_IMPL_H
23
24#include <gnuradio/blocks/rotator.h>
25#include <gnuradio/filter/fir_filter.h>
26
27#include <iridium/burst_downmix.h>
28
29namespace gr {
30 namespace iridium {
31
32 class burst_downmix_impl : public burst_downmix
33 {
34 private:
35 float d_output_sample_rate;
36 int d_output_samples_per_symbol;
37 size_t d_max_burst_size;
38 int d_search_depth;
39 int d_pre_start_samples;
40 int d_cfo_est_fft_size;
41 int d_fft_over_size_facor;
42 int d_corr_fft_size;
43 int d_sync_search_len;
44 int d_hard_max_queue_len;
45 uint64_t d_n_dropped_bursts;
46 bool d_handle_multiple_frames_per_burst;
47 bool d_debug;
48
49 gr_complex * d_frame;
50 gr_complex * d_tmp_a;
51 gr_complex * d_tmp_b;
52 gr_complex * d_dl_preamble_reversed_conj_fft;
53 gr_complex * d_ul_preamble_reversed_conj_fft;
54
55 float * d_magnitude_f;
56 float * d_magnitude_filtered_f;
57 float * d_cfo_est_window_f;
58
59 gr::fft::fft_complex * d_corr_fft;
60 gr::fft::fft_complex * d_corr_dl_ifft;
61 gr::fft::fft_complex * d_corr_ul_ifft;
62
63 filter::kernel::fir_filter_ccf d_input_fir;
64 filter::kernel::fir_filter_fff d_start_finder_fir;
65 filter::kernel::fir_filter_ccf d_rrc_fir;
66
67 std::vector<gr_complex> d_dl_preamble_reversed_conj;
68 std::vector<gr_complex> d_ul_preamble_reversed_conj;
69
70 blocks::rotator d_r;
71 gr::fft::fft_complex d_cfo_est_fft;
72
73 void handler(pmt::pmt_t msg);
74 int process_next_frame(float sample_rate, float center_frequency,
75 uint64_t offset, uint64_t id, size_t burst_size, int start);
76
77 void update_buffer_sizes(size_t burst_size);
78 void initialize_cfo_est_fft(void);
79 void initialize_correlation_filter(void);
80 std::vector<gr_complex> generate_sync_word(::iridium::direction direction);
81 int fft_shift_index(int index, int fft_size);
82 int fft_unshift_index(int index, int fft_size);
83
84 public:
85 burst_downmix_impl(int sample_rate, int search_depth, size_t hard_max_queue_len,
86 const std::vector<float> &input_taps, const std::vector<float> &start_finder_taps,
87 bool handle_multiple_frames_per_burst);
88 ~burst_downmix_impl();
89
90 size_t get_input_queue_size();
91 uint64_t get_n_dropped_bursts();
92
93 int work(int noutput_items,
94 gr_vector_const_void_star &input_items,
95 gr_vector_void_star &output_items);
96 };
97
98 } // namespace iridium
99} // namespace gr
100
101#endif /* INCLUDED_IRIDIUM_TOOLKIT_BURST_DOWNMIX_IMPL_H */
102
burst_downmix.h
gr::iridium::burst_downmix_impl
Definition: burst_downmix_impl.h:33
gr::iridium::burst_downmix_impl::~burst_downmix_impl
~burst_downmix_impl()
gr::iridium::burst_downmix_impl::get_input_queue_size
size_t get_input_queue_size()
gr::iridium::burst_downmix_impl::get_n_dropped_bursts
uint64_t get_n_dropped_bursts()
gr::iridium::burst_downmix_impl::burst_downmix_impl
burst_downmix_impl(int sample_rate, int search_depth, size_t hard_max_queue_len, const std::vector< float > &input_taps, const std::vector< float > &start_finder_taps, bool handle_multiple_frames_per_burst)
gr::iridium::burst_downmix_impl::work
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
gr::iridium::burst_downmix
<+description of block+>
Definition: burst_downmix.h:37
gr
Definition: burst_downmix.h:28
iridium
Definition: iridium.h:2
iridium::direction
direction
Definition: iridium.h:4