nusat_decoder_impl.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2017 Daniel Estevez <daniel@destevez.net>.
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
* Boston, MA 02110-1301, USA.
*/
#ifndef INCLUDED_SATELLITES_NUSAT_DECODER_IMPL_H
#define INCLUDED_SATELLITES_NUSAT_DECODERR_IMPL_H
#include <satellites/nusat_decoder.h>
#include <pmt/pmt.h>
#include <stdint.h>
#define MSG_LEN 64
#define HEADER_LEN 2
#define LEN_BYTE 0
#define CRC_BYTE 1
namespace gr {
namespace satellites {
class nusat_decoder_impl : public nusat_decoder
{
private:
static const uint8_t d_scrambler_sequence[];
static const uint_fast8_t crc8_table[];
uint_fast8_t crc8(const uint8_t *data, size_t data_len);
public:
nusat_decoder_impl();
~nusat_decoder_impl();
// Where all the action really happens
void forecast (int noutput_items, gr_vector_int &ninput_items_required);
int general_work(int noutput_items,
gr_vector_int &ninput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items);
void msg_handler (pmt::pmt_t pmt_msg);
};
} // namespace satellites
} // namespace gr
#endif /* INCLUDED_SATELLITES_NUSAT_DECODER_IMPL_H */
gr::satellites::nusat_decoder_impl
Definition: nusat_decoder_impl.h:38
gr::satellites::nusat_decoder_impl::nusat_decoder_impl
nusat_decoder_impl()
gr::satellites::nusat_decoder_impl::msg_handler
void msg_handler(pmt::pmt_t pmt_msg)
gr::satellites::nusat_decoder_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::nusat_decoder_impl::~nusat_decoder_impl
~nusat_decoder_impl()
gr::satellites::nusat_decoder_impl::forecast
void forecast(int noutput_items, gr_vector_int &ninput_items_required)
gr::satellites::nusat_decoder
<+description of block+>
Definition: nusat_decoder.h:37
gr
Definition: ao40_deinterleaver.h:25
nusat_decoder.h