summaryrefslogtreecommitdiff
path: root/gr-digital/include/digital/packet_header_default.h
diff options
context:
space:
mode:
Diffstat (limited to 'gr-digital/include/digital/packet_header_default.h')
-rw-r--r--gr-digital/include/digital/packet_header_default.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/gr-digital/include/digital/packet_header_default.h b/gr-digital/include/digital/packet_header_default.h
index a4158e728..d69a0f30a 100644
--- a/gr-digital/include/digital/packet_header_default.h
+++ b/gr-digital/include/digital/packet_header_default.h
@@ -30,9 +30,19 @@ namespace gr {
namespace digital {
/*!
- * \brief <+description of block+>
+ * \brief Default header formatter for digital packet transmission.
* \ingroup digital
*
+ * For bursty/packetized digital transmission, packets are usually prepended
+ * with a packet header, containing the number of bytes etc.
+ * This class is not a block, but a tool to create these packet header.
+ *
+ * This is a default packet header (see header_formatter()) for a description
+ * on the header format). To create other header, derive packet header creator
+ * classes from this function.
+ *
+ * gr::digital::packet_headergenerator_bb uses header generators derived from
+ * this class to create packet headers from data streams.
*/
class DIGITAL_API packet_header_default : public boost::enable_shared_from_this<gr::digital::packet_header_default>
{
@@ -53,7 +63,8 @@ namespace gr {
long header_len() { return d_header_len; };
pmt::pmt_t len_tag_key() { return d_len_tag_key; };
- /* \brief Encodes the header information in the given tags into bits and places them into \p out
+ /*!
+ * \brief Encodes the header information in the given tags into bits and places them into \p out
*
* Uses the following header format:
* Bits 0-11: The packet length (what was stored in the tag with key \p len_tag_key)
@@ -70,7 +81,8 @@ namespace gr {
const std::vector<gr_tag_t> &tags=std::vector<gr_tag_t>()
);
- /* \brief Inverse function to header_formatter().
+ /*!
+ * \brief Inverse function to header_formatter().
*
* Reads the bit stream in \in and writes a corresponding tag into \p tags.
*