GNU Radio Manual and C++ API Reference
3.10.5.1
The Free & Open Software Radio Ecosystem
random_pdu.h
Go to the documentation of this file.
1
/* -*- c++ -*- */
2
/*
3
* Copyright 2013 Free Software Foundation, Inc.
4
*
5
* This file is part of GNU Radio
6
*
7
* SPDX-License-Identifier: GPL-3.0-or-later
8
*
9
*/
10
11
#ifndef INCLUDED_PDU_RANDOM_PDU_H
12
#define INCLUDED_PDU_RANDOM_PDU_H
13
14
#include <
gnuradio/block.h
>
15
#include <
gnuradio/pdu/api.h
>
16
17
namespace
gr
{
18
namespace
pdu
{
19
20
/*!
21
* \brief Sends a random PDU at intervals
22
* \ingroup message_tools_blk
23
* \ingroup debug_tools_blk
24
*/
25
class
PDU_API
random_pdu
:
virtual
public
block
26
{
27
public
:
28
// gr::pdu::random_pdu::sptr
29
typedef
std::shared_ptr<random_pdu>
sptr
;
30
31
/*!
32
* \brief Construct a random PDU generator
33
*/
34
static
sptr
35
make(
int
mintime,
int
maxtime,
unsigned
char
byte_mask = 0xFF,
int
length_modulo = 1);
36
};
37
38
}
/* namespace pdu */
39
}
/* namespace gr */
40
41
#endif
/* INCLUDED_PDU_RANDOM_PDU_H */
gr::pdu::random_pdu
Sends a random PDU at intervals.
Definition:
random_pdu.h:25
PDU_API
#define PDU_API
Definition:
gr-pdu/include/gnuradio/pdu/api.h:18
gr::block
The abstract base class for all 'terminal' processing blocks.
Definition:
gnuradio-runtime/include/gnuradio/block.h:62
gr::msgport_names::pdu
const GR_RUNTIME_API pmt::pmt_t pdu()
gr::pdu::random_pdu::sptr
std::shared_ptr< random_pdu > sptr
Definition:
random_pdu.h:29
gr
GNU Radio logging wrapper.
Definition:
basic_block.h:29
api.h
block.h
gr-pdu
include
gnuradio
pdu
random_pdu.h
Generated by
1.8.17