gr::uhd::rfnoc_replay
gr::uhd::rfnoc_block
gnuradio/uhd/rfnoc_replay.h
std::shared_ptr< rfnoc_replay > typedef std::shared_ptr<rfnoc_replay> gr::uhd::rfnoc_replay::sptr sptr gr::uhd::rfnoc_replay::sptr
sptr static sptr gr::uhd::rfnoc_replay::make (rfnoc_graph::sptr graph, const ::uhd::device_addr_t &block_args, const int device_select, const int instance) make gr::uhd::rfnoc_replay::make rfnoc_graph::sptr graph const ::uhd::device_addr_t & block_args const int device_select const int instance

graph

Reference to the underlying rfnoc_graph object

block_args

Additional block arguments

device_select

Device Selection

instance

Instance Selection

void virtual void gr::uhd::rfnoc_replay::record (const uint64_t offset, const uint64_t size, const size_t port=0)=0 record gr::uhd::rfnoc_replay::record const uint64_t offset const uint64_t size const size_t port 0

Record

Begin recording. The offset sets the starting location in memory and the size limits the length of the recording. The flow of data is controlled by upstream RFNoC blocks.

offset

Memory offset where to start recording the data. This value must be aligned to the memory word size. Use get_word_size() to get the size of the memory word.

size

Size limit, in bytes. This value must be aligned to the memory word size and the item size. Use get_word_size() to get the size of the memory word and get_item_size() to get the item size. A value of 0 means to use all available space.

port

Which input port of the replay block to use

uhd::value_error

if offset+size exceeds the available memory.

void virtual void gr::uhd::rfnoc_replay::record_restart (const size_t port=0)=0 record_restart gr::uhd::rfnoc_replay::record_restart const size_t port 0

Restarts recording from the record offset

This is a shortcut for calling record() again with the same arguments.

port

Which input port of the replay block to use

void virtual void gr::uhd::rfnoc_replay::play (const uint64_t offset, const uint64_t size, const size_t port=0, const ::uhd::time_spec_t time_spec=::uhd::time_spec_t(0.0), const bool repeat=false)=0 play gr::uhd::rfnoc_replay::play const uint64_t offset const uint64_t size const size_t port 0 const ::uhd::time_spec_t time_spec ::uhd::time_spec_t(0.0) const bool repeat false

Play back data.

The offset and size define what data is played back on an output port. It will stream out `size` bytes of data, starting at memory offset `offset`.

The data can be played once or repeated continuously until a stop command is issued. If a time_spec is supplied, it will be placed in the header of the first packet. Typically, this is used to tell a downstream Radio block when to start transmitting the data.

If the data type on the output port is not defined, this function will throw an error.

offset

Memory offset of the data to be played. This value must be aligned to the size of the word in memory. Use get_word_size() to get the memory word size.

size

Size of data to play back. This value must be aligned to the size of the memory word and item size. Use get_word_size() to get the memory word size and get_output_item_size() to get the item size. This value will be used for the num_samps component of the underlying stream command.

port

Which output port of the replay block to use

time_spec

Set the time for the first item. Any non-zero value is used to set the time in the header of the first packet. Most commonly, this is used to set the start time of a transmission. Note that this block will not wait for a time to occur, rather, it will tag the first outgoing packet with this time stamp.

repeat

Determines whether the data should be played repeatedly or just once. If set to true, stop_playback() must be called to stop the play back.

uhd::value_error

if offset+size exceeds the available memory.

uhd::op_failed

Too many play commands are queued.

void virtual void gr::uhd::rfnoc_replay::stop_playback (const size_t port=0)=0 stop_playback gr::uhd::rfnoc_replay::stop_playback const size_t port 0

Stops playback

Halts any currently executing play commands and cancels any other play commands that are waiting to be executed for that output port.

port

Which output port of the replay block to use

void virtual void gr::uhd::rfnoc_replay::set_record_type (const std::string type, const size_t port=0)=0 set_record_type gr::uhd::rfnoc_replay::set_record_type const std::string type const size_t port 0

Sets the data type for items in the current record buffer for the given input port.

type

The data type

port

Which input port of the replay block to use

void virtual void gr::uhd::rfnoc_replay::set_play_type (const std::string type, const size_t port=0)=0 set_play_type gr::uhd::rfnoc_replay::set_play_type const std::string type const size_t port 0

Sets the data type for items in the current play buffer for the given output port.

type

The data type

port

Which output port of the replay block to use

void virtual void gr::uhd::rfnoc_replay::issue_stream_cmd (const ::uhd::stream_cmd_t &cmd, const size_t port=0)=0 issue_stream_cmd gr::uhd::rfnoc_replay::issue_stream_cmd const ::uhd::stream_cmd_t & cmd const size_t port 0

Issue a stream command to the replay block

Issue stream commands to start or stop playback from the configured playback buffer. Supports STREAM_MODE_START_CONTINUOUS to start continuous repeating playback, STREAM_MODE_NUM_SAMPS_AND_DONE to play the given number of samples once, and STREAM_MODE_STOP_CONTINUOUS to stop all playback immediately. If a time_spec is supplied, it is placed in the header of the first packet produced for that command. Commands are queued and executed in order. A STREAM_MODE_STOP_CONTINUOUS command will halt all playback and purge all commands in the queue for a given output port.

cmd

The command to execute

port

Which output port of the replay block to use

uhd::op_failed

Too many commands are queued.

RFNoC Replay Block

This wraps a replay block into GNU Radio.

gr::basic_block
gr::block
gr::messages::msg_accepter
gr::msg_accepter
gr::uhd::rfnoc_block
gr::uhd::rfnoc_replay
std::enable_shared_from_this< basic_block >
gr::basic_block
d_name
d_symbol_alias
d_symbol_name
d_input_signature
d_output_signature
d_debug_logger
d_logger
msg_queue
d_rpc_vars
d_message_subscribers
gr::block
d_max_output_buffer
d_min_output_buffer
d_pmt_done
d_system_port
gr::messages::msg_accepter
gr::msg_accepter
gr::uhd::rfnoc_block
gr::uhd::rfnoc_replay
std::basic_string< Char >
std::enable_shared_from_this< basic_block >
std::map< pmt::pmt_t, msg_queue_t, msg_queue_comparator >
std::shared_ptr< io_signature >
std::shared_ptr< logger >
std::shared_ptr< pmt_base >
std::shared_ptr< rpcbasic_base >
std::string
std::vector< long >
std::vector< rpcbasic_sptr >
elements
p
- gr::uhd::rfnoc_replay
  _post
- gr::uhd::rfnoc_replay
  active_thread_priority
- gr::uhd::rfnoc_replay
  add_item_tag
- gr::uhd::rfnoc_replay
  add_item_tag
- gr::uhd::rfnoc_replay
  alias
- gr::uhd::rfnoc_replay
  alias_pmt
- gr::uhd::rfnoc_replay
  alias_set
- gr::uhd::rfnoc_replay
  alignment
- gr::uhd::rfnoc_replay
  allocate_buffer
- gr::uhd::rfnoc_replay
  allocate_detail
- gr::uhd::rfnoc_replay
  basic_block
- gr::uhd::rfnoc_replay
  basic_block
- gr::uhd::rfnoc_replay
  BLACK
- gr::uhd::rfnoc_replay
  blkd_input_timer_value
- gr::uhd::rfnoc_replay
  block
- gr::uhd::rfnoc_replay
  block
- gr::uhd::rfnoc_replay
  check_topology
- gr::uhd::rfnoc_replay
  clear_finished
- gr::uhd::rfnoc_replay
  cmd_handler_t
- gr::uhd::rfnoc_replay
  color
- gr::uhd::rfnoc_replay
  consume
- gr::uhd::rfnoc_replay
  consume_each
- gr::uhd::rfnoc_replay
  d_blkd_input_timer_value
- gr::uhd::rfnoc_replay
  d_color
- gr::uhd::rfnoc_replay
  d_debug_logger
- gr::uhd::rfnoc_replay
  d_input_signature
- gr::uhd::rfnoc_replay
  d_logger
- gr::uhd::rfnoc_replay
  d_max_output_buffer
- gr::uhd::rfnoc_replay
  d_message_subscribers
- gr::uhd::rfnoc_replay
  d_min_output_buffer
- gr::uhd::rfnoc_replay
  d_name
- gr::uhd::rfnoc_replay
  d_output_signature
- gr::uhd::rfnoc_replay
  d_pmt_done
- gr::uhd::rfnoc_replay
  d_rpc_set
- gr::uhd::rfnoc_replay
  d_rpc_vars
- gr::uhd::rfnoc_replay
  d_setlock
- gr::uhd::rfnoc_replay
  d_symbol_alias
- gr::uhd::rfnoc_replay
  d_symbol_name
- gr::uhd::rfnoc_replay
  d_symbolic_id
- gr::uhd::rfnoc_replay
  d_system_port
- gr::uhd::rfnoc_replay
  d_unique_id
- gr::uhd::rfnoc_replay
  declare_sample_delay
- gr::uhd::rfnoc_replay
  declare_sample_delay
- gr::uhd::rfnoc_replay
  delete_head_nowait
- gr::uhd::rfnoc_replay
  detail
- gr::uhd::rfnoc_replay
  dispatch_msg
- gr::uhd::rfnoc_replay
  empty_handled_p
- gr::uhd::rfnoc_replay
  empty_handled_p
- gr::uhd::rfnoc_replay
  empty_p
- gr::uhd::rfnoc_replay
  empty_p
- gr::uhd::rfnoc_replay
  enable_update_rate
- gr::uhd::rfnoc_replay
  erase_msg
- gr::uhd::rfnoc_replay
  expand_minmax_buffer
- gr::uhd::rfnoc_replay
  finished
- gr::uhd::rfnoc_replay
  fixed_rate
- gr::uhd::rfnoc_replay
  fixed_rate_ninput_to_noutput
- gr::uhd::rfnoc_replay
  fixed_rate_noutput_to_ninput
- gr::uhd::rfnoc_replay
  forecast
- gr::uhd::rfnoc_replay
  general_work
- gr::uhd::rfnoc_replay
  get_block_ref
- gr::uhd::rfnoc_replay
  get_iterator
- gr::uhd::rfnoc_replay
  get_msg_map
- gr::uhd::rfnoc_replay
  get_property
- gr::uhd::rfnoc_replay
  get_property_ids
- gr::uhd::rfnoc_replay
  get_tags_in_range
- gr::uhd::rfnoc_replay
  get_tags_in_range
- gr::uhd::rfnoc_replay
  get_tags_in_window
- gr::uhd::rfnoc_replay
  get_tags_in_window
- gr::uhd::rfnoc_replay
  get_unique_id
- gr::uhd::rfnoc_replay
  GREY
- gr::uhd::rfnoc_replay
  has_msg_handler
- gr::uhd::rfnoc_replay
  has_msg_port
- gr::uhd::rfnoc_replay
  history
- gr::uhd::rfnoc_replay
  identifier
- gr::uhd::rfnoc_replay
  input_signature
- gr::uhd::rfnoc_replay
  insert_tail
- gr::uhd::rfnoc_replay
  is_pc_rpc_set
- gr::uhd::rfnoc_replay
  is_rpc_set
- gr::uhd::rfnoc_replay
  is_set_max_noutput_items
- gr::uhd::rfnoc_replay
  is_unaligned
- gr::uhd::rfnoc_replay
  issue_stream_cmd
- gr::uhd::rfnoc_replay
  log_level
- gr::uhd::rfnoc_replay
  make
- gr::uhd::rfnoc_replay
  make_block_ref
- gr::uhd::rfnoc_replay
  max_noutput_items
- gr::uhd::rfnoc_replay
  max_output_buffer
- gr::uhd::rfnoc_replay
  message_port_is_hier
- gr::uhd::rfnoc_replay
  message_port_is_hier_in
- gr::uhd::rfnoc_replay
  message_port_is_hier_out
- gr::uhd::rfnoc_replay
  message_port_pub
- gr::uhd::rfnoc_replay
  message_port_register_in
- gr::uhd::rfnoc_replay
  message_port_register_out
- gr::uhd::rfnoc_replay
  message_port_sub
- gr::uhd::rfnoc_replay
  message_port_unsub
- gr::uhd::rfnoc_replay
  message_ports_in
- gr::uhd::rfnoc_replay
  message_ports_out
- gr::uhd::rfnoc_replay
  message_subscribers
- gr::uhd::rfnoc_replay
  min_noutput_items
- gr::uhd::rfnoc_replay
  min_output_buffer
- gr::uhd::rfnoc_replay
  mp_relative_rate
- gr::uhd::rfnoc_replay
  msg_accepter
- gr::uhd::rfnoc_replay
  msg_queue
- gr::uhd::rfnoc_replay
  name
- gr::uhd::rfnoc_replay
  nitems_read
- gr::uhd::rfnoc_replay
  nitems_written
- gr::uhd::rfnoc_replay
  nmsgs
- gr::uhd::rfnoc_replay
  no_pc_rpc
- gr::uhd::rfnoc_replay
  notify_msg_neighbors
- gr::uhd::rfnoc_replay
  output_multiple
- gr::uhd::rfnoc_replay
  output_multiple_set
- gr::uhd::rfnoc_replay
  output_signature
- gr::uhd::rfnoc_replay
  pc_input_buffers_full
- gr::uhd::rfnoc_replay
  pc_input_buffers_full
- gr::uhd::rfnoc_replay
  pc_input_buffers_full_avg
- gr::uhd::rfnoc_replay
  pc_input_buffers_full_avg
- gr::uhd::rfnoc_replay
  pc_input_buffers_full_var
- gr::uhd::rfnoc_replay
  pc_input_buffers_full_var
- gr::uhd::rfnoc_replay
  pc_noutput_items
- gr::uhd::rfnoc_replay
  pc_noutput_items_avg
- gr::uhd::rfnoc_replay
  pc_noutput_items_var
- gr::uhd::rfnoc_replay
  pc_nproduced
- gr::uhd::rfnoc_replay
  pc_nproduced_avg
- gr::uhd::rfnoc_replay
  pc_nproduced_var
- gr::uhd::rfnoc_replay
  pc_output_buffers_full
- gr::uhd::rfnoc_replay
  pc_output_buffers_full
- gr::uhd::rfnoc_replay
  pc_output_buffers_full_avg
- gr::uhd::rfnoc_replay
  pc_output_buffers_full_avg
- gr::uhd::rfnoc_replay
  pc_output_buffers_full_var
- gr::uhd::rfnoc_replay
  pc_output_buffers_full_var
- gr::uhd::rfnoc_replay
  pc_throughput_avg
- gr::uhd::rfnoc_replay
  pc_work_time
- gr::uhd::rfnoc_replay
  pc_work_time_avg
- gr::uhd::rfnoc_replay
  pc_work_time_total
- gr::uhd::rfnoc_replay
  pc_work_time_var
- gr::uhd::rfnoc_replay
  play
- gr::uhd::rfnoc_replay
  post
- gr::uhd::rfnoc_replay
  processor_affinity
- gr::uhd::rfnoc_replay
  produce
- gr::uhd::rfnoc_replay
  record
- gr::uhd::rfnoc_replay
  record_restart
- gr::uhd::rfnoc_replay
  register_msg_cmd_handler
- gr::uhd::rfnoc_replay
  relative_rate
- gr::uhd::rfnoc_replay
  relative_rate_d
- gr::uhd::rfnoc_replay
  relative_rate_i
- gr::uhd::rfnoc_replay
  remove_item_tag
- gr::uhd::rfnoc_replay
  remove_item_tag
- gr::uhd::rfnoc_replay
  replace_buffer
- gr::uhd::rfnoc_replay
  reset_perf_counters
- gr::uhd::rfnoc_replay
  rfnoc_block
- gr::uhd::rfnoc_replay
  rfnoc_block
- gr::uhd::rfnoc_replay
  rpc_set
- gr::uhd::rfnoc_replay
  sample_delay
- gr::uhd::rfnoc_replay
  set_alignment
- gr::uhd::rfnoc_replay
  set_blkd_input_timer_value
- gr::uhd::rfnoc_replay
  set_block_alias
- gr::uhd::rfnoc_replay
  set_color
- gr::uhd::rfnoc_replay
  set_detail
- gr::uhd::rfnoc_replay
  set_fixed_rate
- gr::uhd::rfnoc_replay
  set_history
- gr::uhd::rfnoc_replay
  set_input_signature
- gr::uhd::rfnoc_replay
  set_inverse_relative_rate
- gr::uhd::rfnoc_replay
  set_is_unaligned
- gr::uhd::rfnoc_replay
  set_log_level
- gr::uhd::rfnoc_replay
  set_max_noutput_items
- gr::uhd::rfnoc_replay
  set_max_output_buffer
- gr::uhd::rfnoc_replay
  set_max_output_buffer
- gr::uhd::rfnoc_replay
  set_min_noutput_items
- gr::uhd::rfnoc_replay
  set_min_output_buffer
- gr::uhd::rfnoc_replay
  set_min_output_buffer
- gr::uhd::rfnoc_replay
  set_msg_handler
- gr::uhd::rfnoc_replay
  set_output_multiple
- gr::uhd::rfnoc_replay
  set_output_signature
- gr::uhd::rfnoc_replay
  set_play_type
- gr::uhd::rfnoc_replay
  set_processor_affinity
- gr::uhd::rfnoc_replay
  set_properties
- gr::uhd::rfnoc_replay
  set_property
- gr::uhd::rfnoc_replay
  set_record_type
- gr::uhd::rfnoc_replay
  set_relative_rate
- gr::uhd::rfnoc_replay
  set_relative_rate
- gr::uhd::rfnoc_replay
  set_tag_propagation_policy
- gr::uhd::rfnoc_replay
  set_thread_priority
- gr::uhd::rfnoc_replay
  set_unaligned
- gr::uhd::rfnoc_replay
  setup_pc_rpc
- gr::uhd::rfnoc_replay
  setup_rpc
- gr::uhd::rfnoc_replay
  shared_from_base
- gr::uhd::rfnoc_replay
  sptr
- gr::uhd::rfnoc_replay
  start
- gr::uhd::rfnoc_replay
  stop
- gr::uhd::rfnoc_replay
  stop_playback
- gr::uhd::rfnoc_replay
  symbol_name
- gr::uhd::rfnoc_replay
  symbolic_id
- gr::uhd::rfnoc_replay
  system_handler
- gr::uhd::rfnoc_replay
  tag_propagation_policy
- gr::uhd::rfnoc_replay
  tag_propagation_policy_t
- gr::uhd::rfnoc_replay
  thread_priority
- gr::uhd::rfnoc_replay
  to_basic_block
- gr::uhd::rfnoc_replay
  TPP_ALL_TO_ALL
- gr::uhd::rfnoc_replay
  TPP_CUSTOM
- gr::uhd::rfnoc_replay
  TPP_DONT
- gr::uhd::rfnoc_replay
  TPP_ONE_TO_ONE
- gr::uhd::rfnoc_replay
  unaligned
- gr::uhd::rfnoc_replay
  unique_id
- gr::uhd::rfnoc_replay
  unset_max_noutput_items
- gr::uhd::rfnoc_replay
  unset_processor_affinity
- gr::uhd::rfnoc_replay
  update_rate
- gr::uhd::rfnoc_replay
  vcolor
- gr::uhd::rfnoc_replay
  WHITE
- gr::uhd::rfnoc_replay
  WORK_CALLED_PRODUCE
- gr::uhd::rfnoc_replay
  WORK_DONE
- gr::uhd::rfnoc_replay
  work_return_t
- gr::uhd::rfnoc_replay
  ~basic_block
- gr::uhd::rfnoc_replay
  ~block
- gr::uhd::rfnoc_replay
  ~msg_accepter