7 #ifndef INCLUDED_LIBUHD_RFNOC_NULL_BLOCK_CTRL_HPP 8 #define INCLUDED_LIBUHD_RFNOC_NULL_BLOCK_CTRL_HPP 13 namespace uhd {
namespace rfnoc {
58 virtual
double set_line_rate(
double rate,
double clock_rate = 166.6e6) = 0;
62 virtual
double get_line_rate(
double clock_rate = 166.6e6) const = 0;
static const uint32_t SR_LINE_RATE
Set this register to number of cycles between producing a line.
Definition: null_block_ctrl.hpp:42
static const uint32_t SR_LINES_PER_PACKET
Set this register to number of lines per packet.
Definition: null_block_ctrl.hpp:40
#define UHD_RFNOC_BLOCK_OBJECT(class_name)
This macro must be put in the public section of an RFNoC.
Definition: block_ctrl_base.hpp:59
Definition: sink_block_ctrl_base.hpp:25
virtual double set_line_rate(double rate, double clock_rate=166.6e6)=0
Custom function to set the rate at which data is produced.
static const size_t DEFAULT_LINES_PER_PACKET
Definition: null_block_ctrl.hpp:46
Provide access to a 'null block'.
Definition: null_block_ctrl.hpp:33
Definition: build_info.hpp:13
Definition: source_block_ctrl_base.hpp:24
virtual double get_line_rate(double clock_rate=166.6e6) const =0
Return the current line rate. Equivalent to reading line_rate/value.
static const uint32_t SR_ENABLE_STREAM
Set this register to non-zero to start producing data.
Definition: null_block_ctrl.hpp:44
static const size_t BYTES_PER_LINE
Definition: null_block_ctrl.hpp:47