<block>
  <name>Bit Slicer</name>
  <key>jay_bit_slicer</key>
  <category>[JAY]</category>
  <import>import jay</import>
  <make>jay.bit_slicer($sampleRate, $samplesPerSym, $kLoopFilter, $kThreshold, $numGapBits, $doPrintPackets)</make>
  <param>
    <name>Samplerate</name>
    <key>sampleRate</key>
    <type>int</type>
  </param>
  <param>
    <name>SamplesPerSym</name>
    <key>samplesPerSym</key>
    <type>int</type>
  </param>
  <param>
    <name>Loop filter gain</name>
    <key>kLoopFilter</key>
    <value>1.0</value>
    <type>float</type>
  </param>
  <param>
    <name>Threshold</name>
    <key>kThreshold</key>
    <value>0.1</value>
    <type>float</type>
  </param>
  <param>
    <name>Gap time</name>
    <key>numGapBits</key>
    <type>int</type>
  </param>
  <param>
    <name>Print packets</name>
    <key>doPrintPackets</key>
    <type>int</type>
  </param>
  <sink>
    <name>in</name>
    <type>float</type>
  </sink>
  <source>
    <name>out</name>
    <type>float</type>
  </source>
  <doc>
      Samplerate       : Number of sample per second
      SamplesPerSym    : Number of samples per symbol
      Loop filter gain : Overall loopfilter gain (scales k_lead and k_lag)
      Threshold        : Processing threshold. Signal mean needs to be above threshold in order to be processed
  </doc>
</block>
