[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 80/148: working vrt tx
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 80/148: working vrt tx |
Date: |
Mon, 15 Aug 2016 00:47:26 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
nwest pushed a commit to annotated tag old_usrp_devel_udp
in repository gnuradio.
commit 1fdc5d7f99f13feec8ec372d14b08b86f109e5b3
Author: Josh Blum <address@hidden>
Date: Tue Dec 15 11:29:16 2009 -0800
working vrt tx
adjusted end of burst logic
fixed bugs with header creation
---
usrp2/host/lib/usrp2_impl.cc | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/usrp2/host/lib/usrp2_impl.cc b/usrp2/host/lib/usrp2_impl.cc
index 07b89e5..eb3d6bc 100644
--- a/usrp2/host/lib/usrp2_impl.cc
+++ b/usrp2/host/lib/usrp2_impl.cc
@@ -707,10 +707,12 @@ namespace usrp2 {
for (size_t fn = 0; fn < nframes; fn++){
//setup the burst flags (vrt header reserved bits)
uint32_t burst_flags = 0;
+ //set start of burst on the first fragment when send-now or
start-of-burst is set
if ((metadata->send_now or metadata->start_of_burst) and fn == 0){
burst_flags |= VRTH_START_OF_BURST;
}
- if ((metadata->send_now or metadata->end_of_burst) and fn == nframes -
1){
+ //set end of burst on the last fragment when end-of-bust is set
+ if ((/*metadata->send_now or */metadata->end_of_burst) and fn == nframes
- 1){
burst_flags |= VRTH_END_OF_BURST;
}
@@ -723,14 +725,14 @@ namespace usrp2 {
vrt_if_data_pkt_hdr[0] =
VRTH_PT_IF_DATA_WITH_SID |
burst_flags |
- (i & VRTH_PKT_SIZE_MASK) |
+ ((i+dimof(vrt_if_data_pkt_hdr)) & VRTH_PKT_SIZE_MASK) |
((d_tx_pkt_cnt << VRTH_PKT_CNT_SHIFT) & VRTH_PKT_CNT_MASK);
vrt_if_data_pkt_hdr[1] = channel;
//make the header nbo
for (size_t j = 0; j < dimof(vrt_if_data_pkt_hdr); j++){
- printf("0x%.8x\n", vrt_if_data_pkt_hdr[j]);
- vrt_if_data_pkt_hdr[j] = htonx(vrt_if_data_pkt_hdr[i]);
+ //printf("0x%.8x\n", vrt_if_data_pkt_hdr[j]);
+ vrt_if_data_pkt_hdr[j] = htonx(vrt_if_data_pkt_hdr[j]);
}
//pack the iovecs with the header and data
- [Commit-gnuradio] [gnuradio] 112/148: Merge branch 'wip/usrp2' of http://vps.gnuradio.org/git/jblum into wip/usrp2, (continued)
- [Commit-gnuradio] [gnuradio] 112/148: Merge branch 'wip/usrp2' of http://vps.gnuradio.org/git/jblum into wip/usrp2, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 115/148: place udp core in the memory space, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 120/148: make it match the 36 bit wide version, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 108/148: renamed tics to ticks to be more pc, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 122/148: debug state, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 124/148: try proper reset, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 81/148: Removed stream-at changes to make this mergable into wip/usrp2. Stream-at will be re-implemented with the new vita capabilities., git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 140/148: Improved the timed samples example with RTT estimation., git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 123/148: forgot to declare wire, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 125/148: try a width that works..., git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 80/148: working vrt tx,
git <=
- [Commit-gnuradio] [gnuradio] 85/148: also release ethernet frames here, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 88/148: revered dumb change to vrt expanded header, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 84/148: Replaced rx metadata with vrt expanded header. Removed timestamp from tx metadata, changes will be made for vrt., git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 93/148: using vrt::expanded_header::unparse in usrp2 impl tx raw, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 94/148: Replaced the need for code word tables by setting the header/trailer lengths in the switch body jump table, just like in the unparser switch body., git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 72/148: Logic for the start/end of burst bits, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 82/148: Merge branch 'merge_usrp2' into wip/usrp2, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 91/148: Added time spec to the start streaming command. One can do a start streaming at by specifiying a time spec, or leave the parameter off for stream now mode., git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 97/148: removed the usrp2_bytesex header since it only imported from gruel, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 100/148: Made some gruel changes to get it compiling on this system., git, 2016/08/14