summaryrefslogtreecommitdiff
path: root/usrp2/host/lib/usrp2_impl.h
diff options
context:
space:
mode:
authorMatt Ettus2009-09-04 10:29:00 -0700
committerMatt Ettus2009-09-04 10:29:00 -0700
commite103e18f8b8111cd07edc2bb0294aa58a426e371 (patch)
tree429d96819fc8b04c965eda3a0c2b93f2e94f9080 /usrp2/host/lib/usrp2_impl.h
parent5965a434d0923738d49334eb5f3d74a259e7b431 (diff)
parent20006003431d7260b04964eb684b1746ffb0a85f (diff)
downloadgnuradio-e103e18f8b8111cd07edc2bb0294aa58a426e371.tar.gz
gnuradio-e103e18f8b8111cd07edc2bb0294aa58a426e371.tar.bz2
gnuradio-e103e18f8b8111cd07edc2bb0294aa58a426e371.zip
Merge branch 'master' into new_eth
Diffstat (limited to 'usrp2/host/lib/usrp2_impl.h')
-rw-r--r--usrp2/host/lib/usrp2_impl.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/usrp2/host/lib/usrp2_impl.h b/usrp2/host/lib/usrp2_impl.h
index ec96f3a70..ed71a6ba3 100644
--- a/usrp2/host/lib/usrp2_impl.h
+++ b/usrp2/host/lib/usrp2_impl.h
@@ -87,6 +87,8 @@ namespace usrp2 {
int d_tx_interp; // shadow tx interp
int d_rx_decim; // shadow rx decim
+ bool d_dont_enqueue;
+
void inc_enqueued() {
omni_mutex_lock l(d_enqueued_mutex);
d_num_enqueued++;
@@ -105,7 +107,8 @@ namespace usrp2 {
void stop_bg();
void init_config_rx_v2_cmd(op_config_rx_v2_cmd *cmd);
void init_config_tx_v2_cmd(op_config_tx_v2_cmd *cmd);
- bool transmit_cmd(void *cmd, size_t len, pending_reply *p, double secs=0.0);
+ bool transmit_cmd_and_wait(void *cmd, size_t len, pending_reply *p, double secs=0.0);
+ bool transmit_cmd(void *cmd, size_t len);
virtual data_handler::result operator()(const void *base, size_t len);
data_handler::result handle_control_packet(const void *base, size_t len);
data_handler::result handle_data_packet(const void *base, size_t len);
@@ -141,6 +144,7 @@ namespace usrp2 {
bool read_gpio(int bank, uint16_t *value);
bool start_rx_streaming(unsigned int channel, unsigned int items_per_frame);
bool rx_samples(unsigned int channel, rx_sample_handler *handler);
+ bool flush_rx_samples(unsigned int channel);
bool stop_rx_streaming(unsigned int channel);
unsigned int rx_overruns() const { return d_num_rx_overruns; }
unsigned int rx_missing() const { return d_num_rx_missing; }