diff options
author | Josh Blum <josh@joshknows.com> | 2010-07-08 19:51:59 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-07-08 19:51:59 -0700 |
commit | 8867df0d7e0948c2091aff1a5c4adbcdd083fe4a (patch) | |
tree | 43dde1f9fe8fa68a2b5dd0c2dae363d7c29f0da0 /host/include | |
parent | da9d47011e02f2b18fccda00dbea0b9d9c0dc704 (diff) | |
download | uhd-8867df0d7e0948c2091aff1a5c4adbcdd083fe4a.tar.gz uhd-8867df0d7e0948c2091aff1a5c4adbcdd083fe4a.tar.bz2 uhd-8867df0d7e0948c2091aff1a5c4adbcdd083fe4a.zip |
uhd: added packet type to vrt if info struct, added burst flags to rx metadata, fixed vrt if packet parsing bugs
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/transport/vrt_if_packet.hpp | 7 | ||||
-rw-r--r-- | host/include/uhd/types/metadata.hpp | 5 |
2 files changed, 9 insertions, 3 deletions
diff --git a/host/include/uhd/transport/vrt_if_packet.hpp b/host/include/uhd/transport/vrt_if_packet.hpp index ccefe14ea..51bd81bb1 100644 --- a/host/include/uhd/transport/vrt_if_packet.hpp +++ b/host/include/uhd/transport/vrt_if_packet.hpp @@ -35,6 +35,13 @@ namespace vrt{ * the operation used (ie the pack or unpack function call). */ struct UHD_API if_packet_info_t{ + //packet type (pack only supports data) + enum packet_type_t { + PACKET_TYPE_DATA = 0x0, + PACKET_TYPE_EXTENSION = 0x1, + PACKET_TYPE_CONTEXT = 0x2 + } packet_type; + //size fields size_t num_payload_words32; //required in pack, derived in unpack size_t num_header_words32; //derived in pack, derived in unpack diff --git a/host/include/uhd/types/metadata.hpp b/host/include/uhd/types/metadata.hpp index f4c962ff7..6712e2594 100644 --- a/host/include/uhd/types/metadata.hpp +++ b/host/include/uhd/types/metadata.hpp @@ -52,10 +52,9 @@ namespace uhd{ * Burst flags: * Start of burst will be true for the first packet in the chain. * End of burst will be true for the last packet in the chain. - * --Not currently used in any known device implementation.-- */ - //bool start_of_burst; - //bool end_of_burst; + bool start_of_burst; + bool end_of_burst; /*! * Error conditions (TODO): |