Loading...
Searching...
No Matches
random_pdu.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2013 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* SPDX-License-Identifier: GPL-3.0-or-later
*
*/
#ifndef INCLUDED_PDU_RANDOM_PDU_H
#define INCLUDED_PDU_RANDOM_PDU_H
#include <gnuradio/block.h>
#include <gnuradio/pdu/api.h>
namespace gr {
namespace pdu {
/*!
* \brief Sends a random PDU at intervals
* \ingroup message_tools_blk
* \ingroup debug_tools_blk
*/
class PDU_API random_pdu : virtual public block
{
public:
// gr::pdu::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 pdu */
} /* namespace gr */
#endif /* INCLUDED_PDU_RANDOM_PDU_H */
gr::block::block
block(void)
Definition gnuradio-runtime/include/gnuradio/block.h:806
gr::pdu::random_pdu
Sends a random PDU at intervals.
Definition random_pdu.h:26
gr::pdu::random_pdu::sptr
std::shared_ptr< random_pdu > sptr
Definition random_pdu.h:29
gr::pdu::random_pdu::make
static sptr make(int mintime, int maxtime, unsigned char byte_mask=0xFF, int length_modulo=1)
Construct a random PDU generator.
block.h
api.h
PDU_API
#define PDU_API
Definition gr-pdu/include/gnuradio/pdu/api.h:18
gr::pdu
Definition pdu.h:47
gr
GNU Radio logging wrapper.
Definition basic_block.h:29