diff options
author | Eric Blossom | 2010-09-25 17:48:44 -0700 |
---|---|---|
committer | Eric Blossom | 2010-09-27 14:56:43 -0700 |
commit | deebe33e400c1404fc22f09aed65ec2c1293aacb (patch) | |
tree | 40be1156b061b40e2ecf3e6e70c138c0bb232684 /vrt/include | |
parent | 18f1ab2e746c93108add92098333b90c8a3423c5 (diff) | |
download | gnuradio-deebe33e400c1404fc22f09aed65ec2c1293aacb.tar.gz gnuradio-deebe33e400c1404fc22f09aed65ec2c1293aacb.tar.bz2 gnuradio-deebe33e400c1404fc22f09aed65ec2c1293aacb.zip |
First cut at expanded_if_context_section
Diffstat (limited to 'vrt/include')
-rw-r--r-- | vrt/include/vrt/Makefile.am | 1 | ||||
-rw-r--r-- | vrt/include/vrt/expanded_if_context_section.h | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/vrt/include/vrt/Makefile.am b/vrt/include/vrt/Makefile.am index 183eaf9ce..eec3c9b7b 100644 --- a/vrt/include/vrt/Makefile.am +++ b/vrt/include/vrt/Makefile.am @@ -25,6 +25,7 @@ vrtinclude_HEADERS = \ bits.h \ copiers.h \ expanded_header.h \ + expanded_if_context_section.h \ rx.h \ rx_packet_handler.h \ types.h diff --git a/vrt/include/vrt/expanded_if_context_section.h b/vrt/include/vrt/expanded_if_context_section.h index aaa36585a..57adb581e 100644 --- a/vrt/include/vrt/expanded_if_context_section.h +++ b/vrt/include/vrt/expanded_if_context_section.h @@ -87,6 +87,22 @@ namespace vrt { int32_t ephemeris_ref_id; //< 7.1.5.23 exp_gps_ascii gps_ascii; //< 7.1.5.24 exp_context_assocs cntx_assoc_lists;//< 7.1.5.25 + + // Reset struct, empty all containers. + void clear(); + + /*! + * \brief Unpack IF Context section into expanded_if_context_section + * + * \param[in] context_section points to the context section of the raw IF Context pkt. + * \param[in] n32_bit_words is the length of the context_section. + * \param[out] cntx holds the result of unpacking the information found in context_section. + * + * \Returns true iff context_section is successfully parsed. + */ + static bool unpack(const uint32_t *context_section, // in + size_t n32_bit_words, // in + expanded_if_context_section *cntx); // out }; }; // namespace vrt |