diff options
author | jcorgan | 2009-08-02 15:45:12 +0000 |
---|---|---|
committer | jcorgan | 2009-08-02 15:45:12 +0000 |
commit | f6a400a8192ebee931ee45d712ffa889ba321234 (patch) | |
tree | 67af2dc68a172512dbbdd9aa5a7d1f9bf03ee415 /usrp2/firmware/include/usrp2_eth_packet.h | |
parent | 3556ef4080be8b0fe569d28cae6568b761edbd7b (diff) | |
download | gnuradio-f6a400a8192ebee931ee45d712ffa889ba321234.tar.gz gnuradio-f6a400a8192ebee931ee45d712ffa889ba321234.tar.bz2 gnuradio-f6a400a8192ebee931ee45d712ffa889ba321234.zip |
Made libusrp2 min and max samples even number.
This forces an even number of samples in the min or max case,
preserving the alignment of interleaved samples in the face
of RX overruns or TX underruns.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11526 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'usrp2/firmware/include/usrp2_eth_packet.h')
-rw-r--r-- | usrp2/firmware/include/usrp2_eth_packet.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usrp2/firmware/include/usrp2_eth_packet.h b/usrp2/firmware/include/usrp2_eth_packet.h index b0123c584..63d4b3af4 100644 --- a/usrp2/firmware/include/usrp2_eth_packet.h +++ b/usrp2/firmware/include/usrp2_eth_packet.h @@ -147,10 +147,11 @@ typedef struct { * ethernet header + transport header + fixed header + maximum number of samples. * sizeof(u2_eth_samples_t) == 1512 * (payload is 1498 bytes, two bytes shorter than 1500 byte MTU) + * (sample numbers are made even to force pairwise alignment in the interleaved case) */ -#define U2_MAX_SAMPLES 371 -#define U2_MIN_SAMPLES 9 +#define U2_MAX_SAMPLES 370 +#define U2_MIN_SAMPLES 10 typedef struct { u2_eth_packet_t hdrs; |