GNU Radio's SATELLITES Package
fixedlen_to_pdu.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2022 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_FIXEDLEN_TO_PDU_H
12#define INCLUDED_SATELLITES_FIXEDLEN_TO_PDU_H
13
14#include <gnuradio/pdu.h>
15#include <gnuradio/sync_block.h>
16#include <satellites/api.h>
17
18namespace gr {
19namespace satellites {
20
21/*!
22 * \brief Fixedlen to PDU
23 * \ingroup satellites
24 *
25 */
26class SATELLITES_API fixedlen_to_pdu : virtual public gr::sync_block
27{
28public:
29 typedef std::shared_ptr<fixedlen_to_pdu> sptr;
30
31 /*!
32 * Make a Fixedlen to PDU block.
33 */
34 static sptr make(types::vector_type type,
35 const std::string& syncword_tag,
36 size_t packet_len,
37 bool pack = false);
38};
39
40} // namespace satellites
41} // namespace gr
42
43#endif /* INCLUDED_SATELLITES_FIXEDLEN_TO_PDU_H */
#define SATELLITES_API
Definition: api.h:31
Fixedlen to PDU.
Definition: fixedlen_to_pdu.h:27
std::shared_ptr< fixedlen_to_pdu > sptr
Definition: fixedlen_to_pdu.h:29
static sptr make(types::vector_type type, const std::string &syncword_tag, size_t packet_len, bool pack=false)
Definition: ax100_decode.h:17