summaryrefslogtreecommitdiff
path: root/gr-digital/include/gnuradio/digital/protocol_formatter_async.h
diff options
context:
space:
mode:
Diffstat (limited to 'gr-digital/include/gnuradio/digital/protocol_formatter_async.h')
-rw-r--r--gr-digital/include/gnuradio/digital/protocol_formatter_async.h98
1 files changed, 49 insertions, 49 deletions
diff --git a/gr-digital/include/gnuradio/digital/protocol_formatter_async.h b/gr-digital/include/gnuradio/digital/protocol_formatter_async.h
index 560a236ce7..67eaf33d20 100644
--- a/gr-digital/include/gnuradio/digital/protocol_formatter_async.h
+++ b/gr-digital/include/gnuradio/digital/protocol_formatter_async.h
@@ -29,60 +29,60 @@
#include <gnuradio/block.h>
namespace gr {
- namespace digital {
+namespace digital {
+
+/*!
+ * \brief Uses a header format object to append a header onto a
+ * PDU.
+ *
+ * \ingroup packet_operators_blk
+ *
+ * \details
+ * This block takes in PDUs and creates a header, generally for
+ * MAC-level processing. Each received PDU is assumed to be its
+ * own frame, so any fragmentation would be done upstream in or
+ * before the flowgraph.
+ *
+ * The header that is created and transmitted out of the 'header'
+ * message port as a PDU. The header is based entirely on the \p
+ * format object, which is an object derived from the
+ * header_format_base class. All of these packet header format
+ * objects operate the same: they take in the payload data as well
+ * as possible extra metadata info about the PDU; the format
+ * object then returns the output PDU as a PMT argument along
+ * with any changes to the metadata info PMT.
+ *
+ * For different packet header formatting needs, we can define new
+ * classes that inherit from the header_format_base block
+ * and which overload the header_format_base::format
+ * function.
+ *
+ * \sa header_format_base
+ * \sa header_format_default
+ * \sa header_format_counter
+ *
+ * This block only uses asynchronous message passing interfaces to
+ * receiver and emit PDUs. The message ports are:
+ *
+ * \li in: receives PDUs for the frame payload
+ * \li header: the header formatted for the given frame
+ * \li payload: the payload
+ */
+class DIGITAL_API protocol_formatter_async : virtual public block
+{
+public:
+ typedef boost::shared_ptr<protocol_formatter_async> sptr;
/*!
- * \brief Uses a header format object to append a header onto a
- * PDU.
- *
- * \ingroup packet_operators_blk
- *
- * \details
- * This block takes in PDUs and creates a header, generally for
- * MAC-level processing. Each received PDU is assumed to be its
- * own frame, so any fragmentation would be done upstream in or
- * before the flowgraph.
- *
- * The header that is created and transmitted out of the 'header'
- * message port as a PDU. The header is based entirely on the \p
- * format object, which is an object derived from the
- * header_format_base class. All of these packet header format
- * objects operate the same: they take in the payload data as well
- * as possible extra metadata info about the PDU; the format
- * object then returns the output PDU as a PMT argument along
- * with any changes to the metadata info PMT.
+ * Make a packet header block using a given \p format.
*
- * For different packet header formatting needs, we can define new
- * classes that inherit from the header_format_base block
- * and which overload the header_format_base::format
- * function.
- *
- * \sa header_format_base
- * \sa header_format_default
- * \sa header_format_counter
- *
- * This block only uses asynchronous message passing interfaces to
- * receiver and emit PDUs. The message ports are:
- *
- * \li in: receives PDUs for the frame payload
- * \li header: the header formatted for the given frame
- * \li payload: the payload
+ * \param format The format object to use when creating the
+ * header for the packet.
*/
- class DIGITAL_API protocol_formatter_async : virtual public block
- {
- public:
- typedef boost::shared_ptr<protocol_formatter_async> sptr;
-
- /*!
- * Make a packet header block using a given \p format.
- *
- * \param format The format object to use when creating the
- * header for the packet.
- */
- static sptr make(const header_format_base::sptr &format);
- };
+ static sptr make(const header_format_base::sptr& format);
+};
- } // namespace digital
+} // namespace digital
} // namespace gr
#endif /* INCLUDED_DIGITAL_PROTOCOL_FORMATTER_ASYNC_H */