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

GNU Radio's IRIDIUM_TOOLKIT Package

iridium_qpsk_demod_cpp_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_IRIDIUM_QPSK_DEMOD_CPP_IMPL_H
22#define INCLUDED_IRIDIUM_TOOLKIT_IRIDIUM_QPSK_DEMOD_CPP_IMPL_H
23
24#include <iridium/iridium_qpsk_demod_cpp.h>
25
26namespace gr {
27 namespace iridium {
28
29 class iridium_qpsk_demod_cpp_impl : public iridium_qpsk_demod_cpp
30 {
31 private:
32 size_t d_max_burst_size;
33 float d_alpha;
34
35 float * d_magnitude_f;
36 gr_complex * d_burst_after_pll;
37 gr_complex * d_decimated_burst;
38 int * d_demodulated_burst;
39 int d_symbol_mapping[4];
40 uint64_t d_n_handled_bursts;
41 uint64_t d_n_access_ok_bursts;
42
43 std::vector<uint8_t> d_bits;
44
45 void handler(pmt::pmt_t msg);
46 void update_buffer_sizes(size_t burst_size);
47 int decimate(const gr_complex * in, int size, int sps, gr_complex * out);
48 void qpskFirstOrderPLL(const gr_complex* x, int size, float alpha, gr_complex* y);
49 size_t demod_qpsk(const gr_complex *burst, size_t n_symbols, int * out, float * level, int * confidence);
50 bool check_sync_word(int * d_demodulated_burst, size_t n_symbols, ::iridium::direction direction);
51 void decode_deqpsk(int * demodulated_burst, size_t n_symbols);
52 void map_symbols_to_bits(const int * demodulated_burst, size_t n_symbols, std::vector<uint8_t> &bits);
53 public:
54 iridium_qpsk_demod_cpp_impl();
55 ~iridium_qpsk_demod_cpp_impl();
56
57 uint64_t get_n_handled_bursts();
58 uint64_t get_n_access_ok_bursts();
59
60 int work(int noutput_items,
61 gr_vector_const_void_star &input_items,
62 gr_vector_void_star &output_items);
63 };
64
65 } // namespace iridium
66} // namespace gr
67
68#endif /* INCLUDED_IRIDIUM_TOOLKIT_IRIDIUM_QPSK_DEMOD_CPP_IMPL_H */
69
gr::iridium::iridium_qpsk_demod_cpp_impl
Definition: iridium_qpsk_demod_cpp_impl.h:30
gr::iridium::iridium_qpsk_demod_cpp_impl::~iridium_qpsk_demod_cpp_impl
~iridium_qpsk_demod_cpp_impl()
gr::iridium::iridium_qpsk_demod_cpp_impl::get_n_handled_bursts
uint64_t get_n_handled_bursts()
gr::iridium::iridium_qpsk_demod_cpp_impl::get_n_access_ok_bursts
uint64_t get_n_access_ok_bursts()
gr::iridium::iridium_qpsk_demod_cpp_impl::iridium_qpsk_demod_cpp_impl
iridium_qpsk_demod_cpp_impl()
gr::iridium::iridium_qpsk_demod_cpp_impl::work
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
gr::iridium::iridium_qpsk_demod_cpp
<+description of block+>
Definition: iridium_qpsk_demod_cpp.h:37
iridium_qpsk_demod_cpp.h
gr
Definition: burst_downmix.h:28
iridium
Definition: iridium.h:2
iridium::direction
direction
Definition: iridium.h:4
gr::iridium::burst
Definition: fft_burst_tagger_impl.h:30