gr::iio::device_sink
gr::sync_block
gnuradio/iio/device_sink.h
std::shared_ptr< device_sink > typedef std::shared_ptr<device_sink> gr::iio::device_sink::sptr sptr gr::iio::device_sink::sptr
sptr static sptr gr::iio::device_sink::make (const std::string &uri, const std::string &device, const std::vector< std::string > &channels, const std::string &device_phy, const iio_param_vec_t &params, unsigned int buffer_size=DEFAULT_BUFFER_SIZE, unsigned int interpolation=0, bool cyclic=false) make gr::iio::device_sink::make const std::string & uri const std::string & device const std::vector< std::string > & channels const std::string & device_phy const iio_param_vec_t & params unsigned int buffer_size DEFAULT_BUFFER_SIZE unsigned int interpolation 0 bool cyclic false

Return a shared_ptr to a new instance of iio::device.

uri

String of the context uri

device

String of device name

channels

Vector of strings of channels names

device_phy

String of phy device name where attribute updates are applied

params

Vector of strings of attributes to set in form: "<attribute name>=<value to set>,<attribute name>=<value to set>"

buffer_size

Integer number of samples to be put into each IIO buffered passed to hardware.

interpolation

Integer number of zeros to insert into transmit transmit buffers between samples

cyclic

Boolean when True sends first buffer_size number of samples to hardware which is repeated in the hardware itself. Future samples are ignored.

DEFAULT_BUFFER_SIZE
sptr static sptr gr::iio::device_sink::make_from (iio_context *ctx, const std::string &device, const std::vector< std::string > &channels, const std::string &device_phy, const iio_param_vec_t &params, unsigned int buffer_size=DEFAULT_BUFFER_SIZE, unsigned int interpolation=0, bool cyclic=false) make_from gr::iio::device_sink::make_from iio_context * ctx const std::string & device const std::vector< std::string > & channels const std::string & device_phy const iio_param_vec_t & params unsigned int buffer_size DEFAULT_BUFFER_SIZE unsigned int interpolation 0 bool cyclic false DEFAULT_BUFFER_SIZE
void virtual void gr::iio::device_sink::set_len_tag_key (const std::string &len_tag_key)=0 set_len_tag_key gr::iio::device_sink::set_len_tag_key const std::string & len_tag_key

The key of the tag that indicates packet length. When not empty, samples are expected as "packets" and must be tagged as such, i.e. the first sample of a packet needs to be tagged with the corresponding length of that packet. Note, packet size MUST be equal to buffer_size / (1+interpolation), otherwise a runtime_error will be thrown. This is a deliberate design choice, because all other options would result in potentially unexpected behavior.

Generic sink for IIO drivers with buffered input channels.

This block allows for streaming data to any IIO driver which has input scan elements or buffered channels.

gr::basic_block
gr::block
gr::iio::device_sink
gr::messages::msg_accepter
gr::msg_accepter
gr::sync_block
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::iio::device_sink
gr::messages::msg_accepter
gr::msg_accepter
gr::sync_block
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::iio::device_sink
  _post
- gr::iio::device_sink
  active_thread_priority
- gr::iio::device_sink
  add_item_tag
- gr::iio::device_sink
  add_item_tag
- gr::iio::device_sink
  alias
- gr::iio::device_sink
  alias_pmt
- gr::iio::device_sink
  alias_set
- gr::iio::device_sink
  alignment
- gr::iio::device_sink
  allocate_buffer
- gr::iio::device_sink
  allocate_detail
- gr::iio::device_sink
  basic_block
- gr::iio::device_sink
  basic_block
- gr::iio::device_sink
  BLACK
- gr::iio::device_sink
  blkd_input_timer_value
- gr::iio::device_sink
  block
- gr::iio::device_sink
  block
- gr::iio::device_sink
  check_topology
- gr::iio::device_sink
  clear_finished
- gr::iio::device_sink
  color
- gr::iio::device_sink
  consume
- gr::iio::device_sink
  consume_each
- gr::iio::device_sink
  d_blkd_input_timer_value
- gr::iio::device_sink
  d_color
- gr::iio::device_sink
  d_debug_logger
- gr::iio::device_sink
  d_input_signature
- gr::iio::device_sink
  d_logger
- gr::iio::device_sink
  d_max_output_buffer
- gr::iio::device_sink
  d_message_subscribers
- gr::iio::device_sink
  d_min_output_buffer
- gr::iio::device_sink
  d_name
- gr::iio::device_sink
  d_output_signature
- gr::iio::device_sink
  d_pmt_done
- gr::iio::device_sink
  d_rpc_set
- gr::iio::device_sink
  d_rpc_vars
- gr::iio::device_sink
  d_setlock
- gr::iio::device_sink
  d_symbol_alias
- gr::iio::device_sink
  d_symbol_name
- gr::iio::device_sink
  d_symbolic_id
- gr::iio::device_sink
  d_system_port
- gr::iio::device_sink
  d_unique_id
- gr::iio::device_sink
  declare_sample_delay
- gr::iio::device_sink
  declare_sample_delay
- gr::iio::device_sink
  delete_head_nowait
- gr::iio::device_sink
  detail
- gr::iio::device_sink
  dispatch_msg
- gr::iio::device_sink
  empty_handled_p
- gr::iio::device_sink
  empty_handled_p
- gr::iio::device_sink
  empty_p
- gr::iio::device_sink
  empty_p
- gr::iio::device_sink
  enable_update_rate
- gr::iio::device_sink
  erase_msg
- gr::iio::device_sink
  expand_minmax_buffer
- gr::iio::device_sink
  finished
- gr::iio::device_sink
  fixed_rate
- gr::iio::device_sink
  fixed_rate_ninput_to_noutput
- gr::iio::device_sink
  fixed_rate_noutput_to_ninput
- gr::iio::device_sink
  forecast
- gr::iio::device_sink
  general_work
- gr::iio::device_sink
  get_iterator
- gr::iio::device_sink
  get_msg_map
- gr::iio::device_sink
  get_tags_in_range
- gr::iio::device_sink
  get_tags_in_range
- gr::iio::device_sink
  get_tags_in_window
- gr::iio::device_sink
  get_tags_in_window
- gr::iio::device_sink
  GREY
- gr::iio::device_sink
  has_msg_handler
- gr::iio::device_sink
  has_msg_port
- gr::iio::device_sink
  history
- gr::iio::device_sink
  identifier
- gr::iio::device_sink
  input_signature
- gr::iio::device_sink
  insert_tail
- gr::iio::device_sink
  is_pc_rpc_set
- gr::iio::device_sink
  is_rpc_set
- gr::iio::device_sink
  is_set_max_noutput_items
- gr::iio::device_sink
  is_unaligned
- gr::iio::device_sink
  log_level
- gr::iio::device_sink
  make
- gr::iio::device_sink
  make_from
- gr::iio::device_sink
  max_noutput_items
- gr::iio::device_sink
  max_output_buffer
- gr::iio::device_sink
  message_port_is_hier
- gr::iio::device_sink
  message_port_is_hier_in
- gr::iio::device_sink
  message_port_is_hier_out
- gr::iio::device_sink
  message_port_pub
- gr::iio::device_sink
  message_port_register_in
- gr::iio::device_sink
  message_port_register_out
- gr::iio::device_sink
  message_port_sub
- gr::iio::device_sink
  message_port_unsub
- gr::iio::device_sink
  message_ports_in
- gr::iio::device_sink
  message_ports_out
- gr::iio::device_sink
  message_subscribers
- gr::iio::device_sink
  min_noutput_items
- gr::iio::device_sink
  min_output_buffer
- gr::iio::device_sink
  mp_relative_rate
- gr::iio::device_sink
  msg_accepter
- gr::iio::device_sink
  msg_queue
- gr::iio::device_sink
  name
- gr::iio::device_sink
  nitems_read
- gr::iio::device_sink
  nitems_written
- gr::iio::device_sink
  nmsgs
- gr::iio::device_sink
  no_pc_rpc
- gr::iio::device_sink
  notify_msg_neighbors
- gr::iio::device_sink
  output_multiple
- gr::iio::device_sink
  output_multiple_set
- gr::iio::device_sink
  output_signature
- gr::iio::device_sink
  pc_input_buffers_full
- gr::iio::device_sink
  pc_input_buffers_full
- gr::iio::device_sink
  pc_input_buffers_full_avg
- gr::iio::device_sink
  pc_input_buffers_full_avg
- gr::iio::device_sink
  pc_input_buffers_full_var
- gr::iio::device_sink
  pc_input_buffers_full_var
- gr::iio::device_sink
  pc_noutput_items
- gr::iio::device_sink
  pc_noutput_items_avg
- gr::iio::device_sink
  pc_noutput_items_var
- gr::iio::device_sink
  pc_nproduced
- gr::iio::device_sink
  pc_nproduced_avg
- gr::iio::device_sink
  pc_nproduced_var
- gr::iio::device_sink
  pc_output_buffers_full
- gr::iio::device_sink
  pc_output_buffers_full
- gr::iio::device_sink
  pc_output_buffers_full_avg
- gr::iio::device_sink
  pc_output_buffers_full_avg
- gr::iio::device_sink
  pc_output_buffers_full_var
- gr::iio::device_sink
  pc_output_buffers_full_var
- gr::iio::device_sink
  pc_throughput_avg
- gr::iio::device_sink
  pc_work_time
- gr::iio::device_sink
  pc_work_time_avg
- gr::iio::device_sink
  pc_work_time_total
- gr::iio::device_sink
  pc_work_time_var
- gr::iio::device_sink
  post
- gr::iio::device_sink
  processor_affinity
- gr::iio::device_sink
  produce
- gr::iio::device_sink
  relative_rate
- gr::iio::device_sink
  relative_rate_d
- gr::iio::device_sink
  relative_rate_i
- gr::iio::device_sink
  remove_item_tag
- gr::iio::device_sink
  remove_item_tag
- gr::iio::device_sink
  replace_buffer
- gr::iio::device_sink
  reset_perf_counters
- gr::iio::device_sink
  rpc_set
- gr::iio::device_sink
  sample_delay
- gr::iio::device_sink
  set_alignment
- gr::iio::device_sink
  set_blkd_input_timer_value
- gr::iio::device_sink
  set_block_alias
- gr::iio::device_sink
  set_color
- gr::iio::device_sink
  set_detail
- gr::iio::device_sink
  set_fixed_rate
- gr::iio::device_sink
  set_history
- gr::iio::device_sink
  set_input_signature
- gr::iio::device_sink
  set_inverse_relative_rate
- gr::iio::device_sink
  set_is_unaligned
- gr::iio::device_sink
  set_len_tag_key
- gr::iio::device_sink
  set_log_level
- gr::iio::device_sink
  set_max_noutput_items
- gr::iio::device_sink
  set_max_output_buffer
- gr::iio::device_sink
  set_max_output_buffer
- gr::iio::device_sink
  set_min_noutput_items
- gr::iio::device_sink
  set_min_output_buffer
- gr::iio::device_sink
  set_min_output_buffer
- gr::iio::device_sink
  set_msg_handler
- gr::iio::device_sink
  set_output_multiple
- gr::iio::device_sink
  set_output_signature
- gr::iio::device_sink
  set_processor_affinity
- gr::iio::device_sink
  set_relative_rate
- gr::iio::device_sink
  set_relative_rate
- gr::iio::device_sink
  set_tag_propagation_policy
- gr::iio::device_sink
  set_thread_priority
- gr::iio::device_sink
  set_unaligned
- gr::iio::device_sink
  setup_pc_rpc
- gr::iio::device_sink
  setup_rpc
- gr::iio::device_sink
  shared_from_base
- gr::iio::device_sink
  sptr
- gr::iio::device_sink
  start
- gr::iio::device_sink
  stop
- gr::iio::device_sink
  symbol_name
- gr::iio::device_sink
  symbolic_id
- gr::iio::device_sink
  sync_block
- gr::iio::device_sink
  sync_block
- gr::iio::device_sink
  system_handler
- gr::iio::device_sink
  tag_propagation_policy
- gr::iio::device_sink
  tag_propagation_policy_t
- gr::iio::device_sink
  thread_priority
- gr::iio::device_sink
  to_basic_block
- gr::iio::device_sink
  TPP_ALL_TO_ALL
- gr::iio::device_sink
  TPP_CUSTOM
- gr::iio::device_sink
  TPP_DONT
- gr::iio::device_sink
  TPP_ONE_TO_ONE
- gr::iio::device_sink
  unaligned
- gr::iio::device_sink
  unique_id
- gr::iio::device_sink
  unset_max_noutput_items
- gr::iio::device_sink
  unset_processor_affinity
- gr::iio::device_sink
  update_rate
- gr::iio::device_sink
  vcolor
- gr::iio::device_sink
  WHITE
- gr::iio::device_sink
  work
- gr::iio::device_sink
  WORK_CALLED_PRODUCE
- gr::iio::device_sink
  WORK_DONE
- gr::iio::device_sink
  work_return_t
- gr::iio::device_sink
  ~basic_block
- gr::iio::device_sink
  ~block
- gr::iio::device_sink
  ~msg_accepter