<?xml version="1.0"?>
<!--
###################################################
##Constellation Receiver
###################################################
 -->
<block>
  <name>Constellation Receiver</name>
  <key>digital_constellation_receiver_cb</key>
  <import>from gnuradio import digital</import>
  <make>digital.constellation_receiver_cb($constellation, $loop_bw, $fmin, $fmax)</make>
  <param>
    <name>Constellation Object</name>
    <key>constellation</key>
    <type>raw</type>
  </param>
  <param>
    <name>Loop Bandwidth</name>
    <key>loop_bw</key>
    <type>real</type>
  </param>
  <param>
    <name>Minimum Freq Deviation</name>
    <key>fmin</key>
    <type>real</type>
  </param>
  <param>
    <name>Maximum Freq Deviation</name>
    <key>fmax</key>
    <type>real</type>
  </param>

  <param>
    <name>Show Msg Ports</name>
    <key>showports</key>
    <value>True</value>
    <type>enum</type>
    <hide>part</hide>
    <option>
      <name>Yes</name>
      <key>False</key>
    </option>
    <option>
      <name>No</name>
      <key>True</key>
    </option>
  </param>

  <sink>
    <name>in</name>
    <type>complex</type>
  </sink>

  <sink>
    <name>set_constellation</name>
    <type>message</type>
    <optional>1</optional>
    <hide>$showports</hide>
  </sink>

  <sink>
    <name>rotate_phase</name>
    <type>message</type>
    <optional>1</optional>
    <hide>$showports</hide>
  </sink>

  <source>
    <name>out</name>
    <type>byte</type>
  </source>
  <source>
    <name>error</name>
    <type>float</type>
    <optional>1</optional>
  </source>
  <source>
    <name>phase</name>
    <type>float</type>
    <optional>1</optional>
  </source>
  <source>
    <name>frequency</name>
    <type>float</type>
    <optional>1</optional>
  </source>
  <source>
    <name>symbol</name>
    <type>complex</type>
    <optional>1</optional>
  </source>
</block>
