GNU Radio's SATELLITES Package

u482c_decode_impl.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2016 Daniel Estevez <daniel@destevez.net>
4 *
5 * This file is part of gr-satellites
6 *
7 * SPDX-License-Identifier: GPL-3.0-or-later
8 *
9 */
10
11#ifndef INCLUDED_SATELLITES_U482C_DECODE_IMPL_H
12#define INCLUDED_SATELLITES_U482C_DECODE_IMPL_H
13
14#include <pmt/pmt.h>
15#include <satellites/u482c_decode.h>
16
17#define RS_LEN 255
18#define HEADER_LEN 3
19
20#include <array>
21
22 namespace gr {
23 namespace satellites {
24
25 class u482c_decode_impl : public u482c_decode
26{
27 private:
28 constexpr static size_t d_rs_len = 255;
29 constexpr static size_t d_header_len = 3;
30 const bool d_verbose;
31 std::array<char, d_rs_len> d_ccsds_sequence;
32 std::array<uint8_t, d_header_len + d_rs_len> d_data;
33 void* d_vp;
34 const int d_viterbi;
35 const int d_scrambler;
36 const int d_rs;
37
38 public:
39 u482c_decode_impl(bool verbose, int viterbi, int scrambler, int rs);
40 ~u482c_decode_impl();
41
42 // Where all the action really happens
43 void forecast(int noutput_items, gr_vector_int& ninput_items_required);
44
45 int general_work(int noutput_items,
46 gr_vector_int& ninput_items,
47 gr_vector_const_void_star& input_items,
48 gr_vector_void_star& output_items);
49
50 void msg_handler(pmt::pmt_t pmt_msg);
51};
52
53} // namespace satellites
54} // namespace gr
55
56#endif /* INCLUDED_SATELLITES_U482C_DECODE_IMPL_H */
gr::satellites::u482c_decode_impl::~u482c_decode_impl
~u482c_decode_impl()
gr::satellites::u482c_decode_impl::general_work
int general_work(int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
gr::satellites::u482c_decode_impl::msg_handler
void msg_handler(pmt::pmt_t pmt_msg)
gr::satellites::u482c_decode_impl::u482c_decode_impl
u482c_decode_impl(bool verbose, int viterbi, int scrambler, int rs)
gr::satellites::u482c_decode_impl::forecast
void forecast(int noutput_items, gr_vector_int &ninput_items_required)
gr::satellites::u482c_decode
<+description of block+>
Definition u482c_decode.h:26
gr
Definition ax100_decode.h:17
rs
Definition rs-common.h:7
u482c_decode.h