blob: 7c57d1de6c6d322fe9931955767bdef264e407cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
/* -*- c++ -*- */
/*
* Copyright 2013 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* SPDX-License-Identifier: GPL-3.0-or-later
*
*/
#ifndef INCLUDED_BLOCKS_RANDOM_PDU_H
#define INCLUDED_BLOCKS_RANDOM_PDU_H
#include <gnuradio/block.h>
#include <gnuradio/blocks/api.h>
namespace gr {
namespace blocks {
/*!
* \brief Sends a random PDU at intervals
* \ingroup message_tools_blk
* \ingroup debug_tools_blk
*/
class BLOCKS_API random_pdu : virtual public block
{
public:
// gr::blocks::random_pdu::sptr
typedef std::shared_ptr<random_pdu> sptr;
/*!
* \brief Construct a random PDU generator
*/
static sptr
make(int mintime, int maxtime, unsigned char byte_mask = 0xFF, int length_modulo = 1);
};
} /* namespace blocks */
} /* namespace gr */
#endif /* INCLUDED_BLOCKS_RANDOM_PDU_H */
|