diff options
author | Josh Blum <josh@joshknows.com> | 2010-03-01 16:13:30 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-03-01 16:13:30 -0800 |
commit | 451067295399e357d73c9bfdeef5f2ad040e0243 (patch) | |
tree | 02681d419362edd334e842e30416e1d353d74643 /host/lib/usrp/usrp2/fw_common.h | |
parent | 6e8473e6eef84875e2c3babb35732f8c3b2a0247 (diff) | |
download | uhd-451067295399e357d73c9bfdeef5f2ad040e0243.tar.gz uhd-451067295399e357d73c9bfdeef5f2ad040e0243.tar.bz2 uhd-451067295399e357d73c9bfdeef5f2ad040e0243.zip |
Send the number of samples per datagram over the control.
Worked on the io impl for usrp2 (added loop unrolls and 32 bit buffers).
Added some vrt rx constants to the fw common used by host and fw.
Removed the MTU prop and added a general device prop for num samples.
Diffstat (limited to 'host/lib/usrp/usrp2/fw_common.h')
-rw-r--r-- | host/lib/usrp/usrp2/fw_common.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp2/fw_common.h b/host/lib/usrp/usrp2/fw_common.h index aca0abb28..8e4b2ba35 100644 --- a/host/lib/usrp/usrp2/fw_common.h +++ b/host/lib/usrp/usrp2/fw_common.h @@ -27,6 +27,10 @@ extern "C" { #endif +// size of the vrt header and trailer to the host +#define USRP2_HOST_RX_VRT_HEADER_WORDS32 5 +#define USRP2_HOST_RX_VRT_TRAILER_WORDS32 1 //FIXME fpga sets wrong header size when no trailer present + // udp ports for the usrp2 communication // Dynamic and/or private ports: 49152-65535 #define USRP2_UDP_CTRL_PORT 49152 @@ -175,6 +179,7 @@ typedef struct{ uint8_t _pad[3]; uint32_t secs; uint32_t ticks; + uint32_t samples; } streaming; struct { uint32_t freq_word; |