[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r11526 - gnuradio/trunk/usrp2/firmware/include
From: |
jcorgan |
Subject: |
[Commit-gnuradio] r11526 - gnuradio/trunk/usrp2/firmware/include |
Date: |
Sun, 2 Aug 2009 09:45:12 -0600 (MDT) |
Author: jcorgan
Date: 2009-08-02 09:45:12 -0600 (Sun, 02 Aug 2009)
New Revision: 11526
Modified:
gnuradio/trunk/usrp2/firmware/include/usrp2_eth_packet.h
Log:
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.
Modified: gnuradio/trunk/usrp2/firmware/include/usrp2_eth_packet.h
===================================================================
--- gnuradio/trunk/usrp2/firmware/include/usrp2_eth_packet.h 2009-08-01
23:30:10 UTC (rev 11525)
+++ gnuradio/trunk/usrp2/firmware/include/usrp2_eth_packet.h 2009-08-02
15:45:12 UTC (rev 11526)
@@ -147,10 +147,11 @@
* 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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r11526 - gnuradio/trunk/usrp2/firmware/include,
jcorgan <=