GNU Radio Manual and C++ API Reference 3.8.5.0
The Free & Open Software Radio Ecosystem
 
Loading...
Searching...
No Matches
hdlc_deframer_bp.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2014 Free Software Foundation, Inc.
4 *
5 * This file is part of GNU Radio
6 *
7 * GNU Radio is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 3, or (at your option)
10 * any later version.
11 *
12 * GNU Radio is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with GNU Radio; see the file COPYING. If not, write to
19 * the Free Software Foundation, Inc., 51 Franklin Street,
20 * Boston, MA 02110-1301, USA.
21 */
22
23#ifndef INCLUDED_DIGITAL_HDLC_DEFRAMER_BP_H
24#define INCLUDED_DIGITAL_HDLC_DEFRAMER_BP_H
25
27#include <gnuradio/sync_block.h>
28
29namespace gr {
30namespace digital {
31
32/*!
33 * \brief HDLC deframer which takes in unpacked bits, and outputs PDU
34 * binary blobs. Frames which do not pass CRC are rejected.
35 *
36 * \ingroup pkt_operators_blk
37 *
38 */
40{
41public:
42 typedef boost::shared_ptr<hdlc_deframer_bp> sptr;
43
44 /*!
45 * \brief Return a shared_ptr to a new instance of digital::hdlc_deframer.
46 *
47 * \param length_min: Minimum frame size (default: 32)
48 * \param length_max: Maximum frame size (default: 500)
49 */
50 static sptr make(int length_min, int length_max);
51};
52
53} // namespace digital
54} // namespace gr
55
56#endif /* INCLUDED_DIGITAL_HDLC_DEFRAMER_BP_H */
HDLC deframer which takes in unpacked bits, and outputs PDU binary blobs. Frames which do not pass CR...
Definition hdlc_deframer_bp.h:40
boost::shared_ptr< hdlc_deframer_bp > sptr
Definition hdlc_deframer_bp.h:42
static sptr make(int length_min, int length_max)
Return a shared_ptr to a new instance of digital::hdlc_deframer.
synchronous 1:1 input to output with history
Definition sync_block.h:38
#define DIGITAL_API
Definition gr-digital/include/gnuradio/digital/api.h:30
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition basic_block.h:46