/* -*- c++ -*- */
/* 
 * Copyright (c) 2021 Satlab A/S <satlab@satlab.com>
 * 
 * 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_SATLAB_SRS3_DEFRAME_H
#define INCLUDED_SATLAB_SRS3_DEFRAME_H

#include <gnuradio/satlab/api.h>
#include <gnuradio/block.h>

namespace gr {
  namespace satlab {

    /*!
     * \brief <+description of block+>
     * \ingroup satlab
     *
     */
    class SATLAB_API srs3_deframe : virtual public gr::block
    {
     public:
      typedef std::shared_ptr<srs3_deframe> sptr;

      /*!
       * \brief Return a shared_ptr to a new instance of satlab::srs3_deframe.
       *
       * To avoid accidental use of raw pointers, satlab::srs3_deframe's
       * constructor is in a private implementation
       * class. satlab::srs3_deframe::make is the public interface for
       * creating new instances.
       */
      static sptr make(unsigned int size, uint16_t id);

      virtual void set_size(unsigned int bytes) = 0;
      virtual void set_id(uint16_t id) = 0;
      virtual unsigned int get_frames(void) = 0;
    };

  } // namespace satlab
} // namespace gr

#endif /* INCLUDED_SATLAB_SRS3_DEFRAME_H */

