Loading...
Searching...
No Matches
stream_cmd.hpp
Go to the documentation of this file.
/*
* Copyright 2010-2012,2015 Ettus Research LLC
* Copyright 2018 Ettus Research, a National Instruments Company
*
* SPDX-License-Identifier: GPL-3.0-or-later
*/
#pragma once
#include <uhd/config.hpp>
#include <uhd/types/time_spec.hpp>
namespace uhd {
struct UHD_API stream_cmd_t
{
enum stream_mode_t {
STREAM_MODE_START_CONTINUOUS = int('a'),
STREAM_MODE_STOP_CONTINUOUS = int('o'),
STREAM_MODE_NUM_SAMPS_AND_DONE = int('d'),
STREAM_MODE_NUM_SAMPS_AND_MORE = int('m')
} stream_mode;
uint64_t num_samps;
bool stream_now;
time_spec_t time_spec;
stream_cmd_t(const stream_mode_t& stream_mode);
};
} /* namespace uhd */
uhd::time_spec_t
Definition time_spec.hpp:31
UHD_API
#define UHD_API
Definition config.h:87
config.hpp
uhd
Definition build_info.hpp:12
uhd::stream_cmd_t::stream_now
bool stream_now
Definition stream_cmd.hpp:49
uhd::stream_cmd_t::stream_mode_t
stream_mode_t
Definition stream_cmd.hpp:41
uhd::stream_cmd_t::STREAM_MODE_NUM_SAMPS_AND_DONE
@ STREAM_MODE_NUM_SAMPS_AND_DONE
Definition stream_cmd.hpp:44
uhd::stream_cmd_t::STREAM_MODE_NUM_SAMPS_AND_MORE
@ STREAM_MODE_NUM_SAMPS_AND_MORE
Definition stream_cmd.hpp:45
uhd::stream_cmd_t::STREAM_MODE_STOP_CONTINUOUS
@ STREAM_MODE_STOP_CONTINUOUS
Definition stream_cmd.hpp:43
uhd::stream_cmd_t::STREAM_MODE_START_CONTINUOUS
@ STREAM_MODE_START_CONTINUOUS
Definition stream_cmd.hpp:42
uhd::stream_cmd_t::num_samps
uint64_t num_samps
Definition stream_cmd.hpp:47
uhd::stream_cmd_t::time_spec
time_spec_t time_spec
Definition stream_cmd.hpp:50
uhd::stream_cmd_t::stream_mode
enum uhd::stream_cmd_t::stream_mode_t stream_mode
uhd::stream_cmd_t::stream_cmd_t
stream_cmd_t(const stream_mode_t &stream_mode)
time_spec.hpp