GNU Radio's CCSDS Package
processCADU_impl.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2018 <+YOU OR YOUR COMPANY+>.
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_CCSDS_PROCESSCADU_IMPL_H
22 #define INCLUDED_CCSDS_PROCESSCADU_IMPL_H
23 
24 #include <ccsds/processCADU.h>
25 #include <gnuradio/blocks/pack_k_bits.h>
26 //#include "fec/ReedSolomon/ReedSolomon.h"
27 #include "fec/rs/reedsolomon.h"
29 
30 namespace gr {
31  namespace ccsds {
32 
34  {
35  private:
36  int d_frameLength;
37  bool d_scramble;
38  int d_rs;
39  int d_basis;
40  int d_type;
41  int d_intDepth;
42  std::vector<tag_t> d_tags;
43  std::vector<tag_t>::iterator d_tags_itr;
44  blocks::kernel::pack_k_bits *d_pack;
45  pmt::pmt_t key;
46  //ReedSolomon *RS;
47  Scrambler *S;
48  std::vector<unsigned char> frameBuffer;
49  std::vector<int> errors;
50  public:
51  processCADU_impl(int frameLength, int scramble, int rs, int intDepth, std::string tagName);
53 
54  // Where all the action really happens
55  int work(int noutput_items,
56  gr_vector_const_void_star &input_items,
57  gr_vector_void_star &output_items);
58  };
59 
60  } // namespace ccsds
61 } // namespace gr
62 
63 #endif /* INCLUDED_CCSDS_PROCESSCADU_IMPL_H */
64 
Definition: processCADU_impl.h:33
Definition: Scrambler.h:23
Definition: cc_depuncture.h:28
<+description of block+>
Definition: processCADU.h:36
processCADU_impl(int frameLength, int scramble, int rs, int intDepth, std::string tagName)
void scramble(uint8_t *data, uint32_t length)
Definition: Scrambler_CCSDS.h:44
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)