<?xml version="1.0"?>
<block>
  <name>BER</name>
  <key>fec_ber_bf</key>
  <import>from gnuradio import fec</import>
  <make>fec.ber_bf($test_mode, $berminerrors, $berlimit)</make>

  <param>
    <name>Test Mode</name>
    <key>test_mode</key>
    <value>False</value>
    <type>enum</type>
    <option>
      <name>False</name>
      <key>False</key>
    </option>
    <option>
      <name>True</name>
      <key>True</key>
    </option>
  </param>

  <param>
    <name>BER Min. Errors</name>
    <key>berminerrors</key>
    <value>100</value>
    <type>int</type>
    <hide>#if $test_mode() then 'part' else 'all'#</hide>
  </param>

  <param>
    <name>BER Limit</name>
    <key>berlimit</key>
    <value>-7.0</value>
    <type>float</type>
    <hide>#if $test_mode() then 'part' else 'all'#</hide>
  </param>

  <sink>
    <name>in0</name>
    <type>byte</type>
  </sink>

  <sink>
    <name>in1</name>
    <type>byte</type>
  </sink>

  <source>
    <name>out</name>
    <type>float</type>
  </source>

</block>