<?xml version="1.0"?>

<!--
 Copyright 2013 Free Software Foundation, Inc.

 This file is part of GNU Radio

 GNU Radio is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 3, or (at your option)
 any later version.

 GNU Radio is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with GNU Radio; see the file COPYING.  If not, write to
 the Free Software Foundation, Inc., 51 Franklin Street,
 Boston, MA 02110-1301, USA.
-->

<block>
  <name>Ctrlport Probe</name>
  <key>blocks_ctrlport_probe2_x</key>
  <import>from gnuradio import blocks</import>
  <make>blocks.ctrlport_probe2_$(type.fcn)($name, $desc, $len, $disp_mask)</make>
  <callback>set_length($len)</callback>

  <param>
    <name>Input Type</name>
    <key>type</key>
    <type>enum</type>
    <option>
      <name>Complex</name>
      <key>complex</key>
      <opt>fcn:c</opt>
    </option>
    <option>
      <name>Float</name>
      <key>float</key>
      <opt>fcn:f</opt>
    </option>
    <option>
      <name>Int</name>
      <key>int</key>
      <opt>fcn:i</opt>
    </option>
    <option>
      <name>Short</name>
      <key>short</key>
      <opt>fcn:s</opt>
    </option>
    <option>
      <name>Byte</name>
      <key>byte</key>
      <opt>fcn:b</opt>
    </option>
  </param>

  <param>
    <name>Name</name>
    <key>name</key>
    <value>samples</value>
    <type>string</type>
  </param>

  <param>
    <name>Description</name>
    <key>desc</key>
    <value>Sample Points</value>
    <type>string</type>
  </param>

  <param>
    <name>Length</name>
    <key>len</key>
    <value>1024</value>
    <type>int</type>
  </param>

  <param>
    <name>Display Mask</name>
    <key>disp_mask</key>
    <value>gr.DISPTIME</value>
    <type>int</type>
    <option>
      <name>Constellation</name>
      <key>gr.DISPXY | gr.DISPOPTSCATTER</key>
    </option>
    <option>
      <name>Time</name>
      <key>gr.DISPTIME</key>
    </option>
    <option>
      <name>PSD</name>
      <key>gr.DISPPSD</key>
    </option>
    <option>
      <name>Spectrogram</name>
      <key>gr.DISPSPEC</key>
    </option>
    <option>
      <name>Raster</name>
      <key>gr.DISPRAST</key>
    </option>
  </param>

  <sink>
    <name>in</name>
    <type>$type</type>
  </sink>

  <doc>
    Place this in a graph to export vectors of samples to a GRCP port probe.

    * Specify the number of samples to transmit at once and the type
    of default display to use.
  </doc>

</block>

