aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/rfnoc
diff options
context:
space:
mode:
authorWade Fife <wade.fife@ettus.com>2018-11-08 11:40:07 -0600
committerBrent Stapleton <bstapleton@g.hmc.edu>2018-11-27 16:58:50 -0800
commit84018da8b5022d75b463dd562e2ff45a6b3ae5fc (patch)
tree2830864fc071cacc61a1f83762835b24b2a766bf /host/lib/rfnoc
parent9b700550c26932ffeacdfc935c8ad92c0489d4a0 (diff)
downloaduhd-84018da8b5022d75b463dd562e2ff45a6b3ae5fc.tar.gz
uhd-84018da8b5022d75b463dd562e2ff45a6b3ae5fc.tar.bz2
uhd-84018da8b5022d75b463dd562e2ff45a6b3ae5fc.zip
rfnoc: Add halt to replay API
The HALT feature allows a command that takes a long time to run to be stopped while it is in progress.
Diffstat (limited to 'host/lib/rfnoc')
-rw-r--r--host/lib/rfnoc/replay_block_ctrl_impl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/host/lib/rfnoc/replay_block_ctrl_impl.cpp b/host/lib/rfnoc/replay_block_ctrl_impl.cpp
index 3809cebc0..e9b119085 100644
--- a/host/lib/rfnoc/replay_block_ctrl_impl.cpp
+++ b/host/lib/rfnoc/replay_block_ctrl_impl.cpp
@@ -98,6 +98,10 @@ public:
uint32_t get_words_per_packet(const size_t chan) {
return _params[chan].words_per_packet;
}
+
+ void play_halt(const size_t chan) {
+ sr_write("RX_CTRL_HALT", 1, chan);
+ }
/***************************************************************************