aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/rfnoc/ctrlport_endpoint.cpp
diff options
context:
space:
mode:
authorSamuel O'Brien <sam.obrien@ni.com>2020-06-26 08:26:25 -0500
committerAaron Rossetto <aaron.rossetto@ni.com>2020-07-13 15:21:52 -0500
commitb0cb065111dc3f40b89bdda76e9bd98f3e70b72e (patch)
tree4d08118999692767bc018d0a21758562abe1a300 /host/lib/rfnoc/ctrlport_endpoint.cpp
parent14d9452a15a6e65b01e19e0d5ce0c67afc060cc2 (diff)
downloaduhd-b0cb065111dc3f40b89bdda76e9bd98f3e70b72e.tar.gz
uhd-b0cb065111dc3f40b89bdda76e9bd98f3e70b72e.tar.bz2
uhd-b0cb065111dc3f40b89bdda76e9bd98f3e70b72e.zip
rfnoc: Rename chdr_packet to chdr_packet_writer
It would be confusing to have two classes named chdr_packet. As it makes more sense to name the new public chdr parser class chdr_packet, the internal uhd::rfnoc::chdr::chdr_packet class is being renamed to chdr_packet_writer to better represent its functionality. Signed-off-by: Samuel O'Brien <sam.obrien@ni.com>
Diffstat (limited to 'host/lib/rfnoc/ctrlport_endpoint.cpp')
-rw-r--r--host/lib/rfnoc/ctrlport_endpoint.cpp20
1 files changed, 8 insertions, 12 deletions
diff --git a/host/lib/rfnoc/ctrlport_endpoint.cpp b/host/lib/rfnoc/ctrlport_endpoint.cpp
index 5cff24443..5afb3919e 100644
--- a/host/lib/rfnoc/ctrlport_endpoint.cpp
+++ b/host/lib/rfnoc/ctrlport_endpoint.cpp
@@ -6,7 +6,7 @@
#include <uhd/exception.hpp>
#include <uhd/utils/log.hpp>
-#include <uhdlib/rfnoc/chdr_packet.hpp>
+#include <uhdlib/rfnoc/chdr_packet_writer.hpp>
#include <uhdlib/rfnoc/chdr_types.hpp>
#include <uhdlib/rfnoc/ctrlport_endpoint.hpp>
#include <condition_variable>
@@ -121,9 +121,8 @@ public:
{
// Compute transaction expiration time, use MASSIVE_TIMEOUT if a timed
// command is in the queue
- auto timeout_time = start_timeout(
- check_timed_in_queue() ? MASSIVE_TIMEOUT : _policy.timeout
- );
+ auto timeout_time =
+ start_timeout(check_timed_in_queue() ? MASSIVE_TIMEOUT : _policy.timeout);
// Send request
auto request =
@@ -174,9 +173,8 @@ public:
// Compute transaction expiration time, use MASSIVE_TIMEOUT if a timed
// command is in the queue
- auto timeout_time = start_timeout(
- check_timed_in_queue() ? MASSIVE_TIMEOUT : _policy.timeout
- );
+ auto timeout_time =
+ start_timeout(check_timed_in_queue() ? MASSIVE_TIMEOUT : _policy.timeout);
// Send request
auto request = send_request_packet(OP_POLL,
@@ -192,12 +190,10 @@ public:
virtual void sleep(uhd::time_spec_t duration, bool ack = false)
{
-
// Compute transaction expiration time, use MASSIVE_TIMEOUT if a timed
// command is in the queue
- auto timeout_time = start_timeout(
- check_timed_in_queue() ? MASSIVE_TIMEOUT : _policy.timeout
- );
+ auto timeout_time =
+ start_timeout(check_timed_in_queue() ? MASSIVE_TIMEOUT : _policy.timeout);
// Send request
auto request = send_request_packet(OP_SLEEP,
@@ -421,7 +417,7 @@ private:
// If we can fit the current request in the queue then we can proceed
return (_buff_occupied + pyld_size)
<= (_buff_capacity
- - (ASYNC_MESSAGE_SIZE * _max_outstanding_async_msgs));
+ - (ASYNC_MESSAGE_SIZE * _max_outstanding_async_msgs));
};
if (!buff_not_full()) {
// If we're sending a timed command or if we have a timed command in the