From 74bc82979ac05c12482627693c29080079eb4a67 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Tue, 8 Mar 2011 18:31:49 -0800 Subject: usrp2: comments for buffer size setting --- host/lib/usrp/usrp2/usrp2_impl.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'host/lib/usrp/usrp2') diff --git a/host/lib/usrp/usrp2/usrp2_impl.cpp b/host/lib/usrp/usrp2/usrp2_impl.cpp index f7154b0fc..14b26410d 100644 --- a/host/lib/usrp/usrp2/usrp2_impl.cpp +++ b/host/lib/usrp/usrp2/usrp2_impl.cpp @@ -164,7 +164,10 @@ static mtu_result_t determine_mtu(const std::string &addr){ ); mtu_result_t mtu; - boost::uint8_t buffer[2000]; //FIXME use real FPGA buffer maximum + //The FPGA offers 4K buffers, and the user may manually request this. + //However, multiple simultaneous receives (2DSP slave + 2DSP master), + //require that buffering to be used internally, and this is a safe setting. + boost::uint8_t buffer[2000]; usrp2_ctrl_data_t *ctrl_data = reinterpret_cast(buffer); static const double echo_timeout = 0.010; //10 ms -- cgit v1.2.3