diff options
author | eb | 2008-04-30 03:52:31 +0000 |
---|---|---|
committer | eb | 2008-04-30 03:52:31 +0000 |
commit | 9d1423b9506c89a51a10b6119d01ce9a82a13b0c (patch) | |
tree | 186e1b20618bf805dd262572bd3b2778b767d201 /usrp/host/lib/inband/usrp_inband_usb_packet.h | |
parent | 7f202514385708941073930bc6d9a5237bb89826 (diff) | |
download | gnuradio-9d1423b9506c89a51a10b6119d01ce9a82a13b0c.tar.gz gnuradio-9d1423b9506c89a51a10b6119d01ce9a82a13b0c.tar.bz2 gnuradio-9d1423b9506c89a51a10b6119d01ce9a82a13b0c.zip |
Merged features/inband-usb -r6431:8293 into trunk.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@8295 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'usrp/host/lib/inband/usrp_inband_usb_packet.h')
-rw-r--r-- | usrp/host/lib/inband/usrp_inband_usb_packet.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usrp/host/lib/inband/usrp_inband_usb_packet.h b/usrp/host/lib/inband/usrp_inband_usb_packet.h index 8c19b1aeb..8f59d1b65 100644 --- a/usrp/host/lib/inband/usrp_inband_usb_packet.h +++ b/usrp/host/lib/inband/usrp_inband_usb_packet.h @@ -31,6 +31,7 @@ static const int USB_PKT_SIZE = 512; // bytes static const int MAX_PAYLOAD = USB_PKT_SIZE-2*sizeof(uint32_t); +static const int CONTROL_CHAN = 0x1f; class usrp_inband_usb_packet { // @@ -150,6 +151,10 @@ public: | ((payload_len & PAYLOAD_LEN_MASK) << PAYLOAD_LEN_SHIFT)); d_word0 = host_to_usrp_u32(word0); } + + void incr_header_len(int val) { + set_header(flags(), chan(), tag(), payload_len() + val); + } uint32_t timestamp() const { return usrp_to_host_u32(d_timestamp); |