<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.17.0" xml:lang="en-US">
  <compounddef id="classgr_1_1blocks_1_1kernel_1_1pack__k__bits" kind="class" language="C++" prot="public">
    <compoundname>gr::blocks::kernel::pack_k_bits</compoundname>
    <includes refid="pack__k__bits_8h" local="no">gnuradio/blocks/pack_k_bits.h</includes>
    <sectiondef kind="private-attrib">
      <memberdef kind="variable" id="classgr_1_1blocks_1_1kernel_1_1pack__k__bits_1a0b2a5b9ca606e130c505a2544dd903d0" prot="private" static="no" mutable="no">
        <type>unsigned</type>
        <definition>unsigned gr::blocks::kernel::pack_k_bits::d_k</definition>
        <argsstring></argsstring>
        <name>d_k</name>
        <qualifiedname>gr::blocks::kernel::pack_k_bits::d_k</qualifiedname>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/pbulk/work/ham/gnuradio-doxygen/work/gnuradio-3.10.12.0/gr-blocks/include/gnuradio/blocks/pack_k_bits.h" line="66" column="14" bodyfile="/pbulk/work/ham/gnuradio-doxygen/work/gnuradio-3.10.12.0/gr-blocks/include/gnuradio/blocks/pack_k_bits.h" bodystart="66" bodyend="-1"/>
      </memberdef>
    </sectiondef>
    <sectiondef kind="public-func">
      <memberdef kind="function" id="classgr_1_1blocks_1_1kernel_1_1pack__k__bits_1a1629bc1ba1e316b8df21c18780cec30d" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>gr::blocks::kernel::pack_k_bits::pack_k_bits</definition>
        <argsstring>(unsigned k)</argsstring>
        <name>pack_k_bits</name>
        <qualifiedname>gr::blocks::kernel::pack_k_bits::pack_k_bits</qualifiedname>
        <param>
          <type>unsigned</type>
          <declname>k</declname>
        </param>
        <briefdescription>
<para>Make a <ref refid="classgr_1_1blocks_1_1kernel_1_1pack__k__bits" kindref="compound">pack_k_bits</ref> object. </para>
        </briefdescription>
        <detaileddescription>
<para><parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername>k</parametername>
</parameternamelist>
<parameterdescription>
<para>number of bits to be packed. </para>
</parameterdescription>
</parameteritem>
</parameterlist>
</para>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/pbulk/work/ham/gnuradio-doxygen/work/gnuradio-3.10.12.0/gr-blocks/include/gnuradio/blocks/pack_k_bits.h" line="42" column="5"/>
        <references refid="classgr_1_1blocks_1_1kernel_1_1pack__k__bits_1abad1f7cb2b2c4e10e784416f7c50e5eb">k</references>
      </memberdef>
      <memberdef kind="function" id="classgr_1_1blocks_1_1kernel_1_1pack__k__bits_1ac3df3c0d660d73ff3aac69c8b509f909" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>gr::blocks::kernel::pack_k_bits::~pack_k_bits</definition>
        <argsstring>()</argsstring>
        <name>~pack_k_bits</name>
        <qualifiedname>gr::blocks::kernel::pack_k_bits::~pack_k_bits</qualifiedname>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/pbulk/work/ham/gnuradio-doxygen/work/gnuradio-3.10.12.0/gr-blocks/include/gnuradio/blocks/pack_k_bits.h" line="43" column="5"/>
      </memberdef>
      <memberdef kind="function" id="classgr_1_1blocks_1_1kernel_1_1pack__k__bits_1af8e70e2efee8057ed5275ae73d3ab2cc" prot="public" static="no" const="yes" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>void gr::blocks::kernel::pack_k_bits::pack</definition>
        <argsstring>(unsigned char *bytes, const unsigned char *bits, int nbytes) const</argsstring>
        <name>pack</name>
        <qualifiedname>gr::blocks::kernel::pack_k_bits::pack</qualifiedname>
        <param>
          <type>unsigned char *</type>
          <declname>bytes</declname>
        </param>
        <param>
          <type>const unsigned char *</type>
          <declname>bits</declname>
        </param>
        <param>
          <type>int</type>
          <declname>nbytes</declname>
        </param>
        <briefdescription>
<para>Perform the packing. </para>
        </briefdescription>
        <detaileddescription>
<para>This block performs no bounds checking. It assumes that the input, <computeroutput>in</computeroutput>, has of length k*nbytes and that the output vector, <computeroutput>out</computeroutput>, has <computeroutput>nbytes</computeroutput> available for writing.</para>
<para><parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername>bytes</parametername>
</parameternamelist>
<parameterdescription>
<para>output vector (k-bits per byte) of the unpacked data </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername>bits</parametername>
</parameternamelist>
<parameterdescription>
<para>The input vector of bits to pack </para>
</parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername>nbytes</parametername>
</parameternamelist>
<parameterdescription>
<para>The number of output bytes </para>
</parameterdescription>
</parameteritem>
</parameterlist>
</para>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/pbulk/work/ham/gnuradio-doxygen/work/gnuradio-3.10.12.0/gr-blocks/include/gnuradio/blocks/pack_k_bits.h" line="56" column="10"/>
      </memberdef>
      <memberdef kind="function" id="classgr_1_1blocks_1_1kernel_1_1pack__k__bits_1a1ed19f3e8757f003d22d7d7921895c8b" prot="public" static="no" const="yes" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>void gr::blocks::kernel::pack_k_bits::pack_rev</definition>
        <argsstring>(unsigned char *bytes, const unsigned char *bits, int nbytes) const</argsstring>
        <name>pack_rev</name>
        <qualifiedname>gr::blocks::kernel::pack_k_bits::pack_rev</qualifiedname>
        <param>
          <type>unsigned char *</type>
          <declname>bytes</declname>
        </param>
        <param>
          <type>const unsigned char *</type>
          <declname>bits</declname>
        </param>
        <param>
          <type>int</type>
          <declname>nbytes</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
<para>Same as <ref refid="classgr_1_1blocks_1_1kernel_1_1pack__k__bits_1af8e70e2efee8057ed5275ae73d3ab2cc" kindref="member">pack()</ref> but reverses the bits. </para>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/pbulk/work/ham/gnuradio-doxygen/work/gnuradio-3.10.12.0/gr-blocks/include/gnuradio/blocks/pack_k_bits.h" line="61" column="10"/>
      </memberdef>
      <memberdef kind="function" id="classgr_1_1blocks_1_1kernel_1_1pack__k__bits_1abad1f7cb2b2c4e10e784416f7c50e5eb" prot="public" static="no" const="yes" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int gr::blocks::kernel::pack_k_bits::k</definition>
        <argsstring>() const</argsstring>
        <name>k</name>
        <qualifiedname>gr::blocks::kernel::pack_k_bits::k</qualifiedname>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/pbulk/work/ham/gnuradio-doxygen/work/gnuradio-3.10.12.0/gr-blocks/include/gnuradio/blocks/pack_k_bits.h" line="63" column="9"/>
        <referencedby refid="classgr_1_1blocks_1_1kernel_1_1pack__k__bits_1a1629bc1ba1e316b8df21c18780cec30d">pack_k_bits</referencedby>
      </memberdef>
    </sectiondef>
    <briefdescription>
<para>Converts a vector of bytes with 1 bit in the LSB to a byte with k relevant bits. </para>
    </briefdescription>
    <detaileddescription>
<para>Example: k = 4 in = [0,1,0,1, 0x81,0x00,0x00,0x00] out = [0x05, 0x08]</para>
<para>k = 8 in = [1,1,1,1, 0,1,0,1, 0,0,0,0, 1,0,0,0] out = [0xf5, 0x08] </para>
    </detaileddescription>
    <location file="/pbulk/work/ham/gnuradio-doxygen/work/gnuradio-3.10.12.0/gr-blocks/include/gnuradio/blocks/pack_k_bits.h" line="35" column="1" bodyfile="/pbulk/work/ham/gnuradio-doxygen/work/gnuradio-3.10.12.0/gr-blocks/include/gnuradio/blocks/pack_k_bits.h" bodystart="36" bodyend="67"/>
    <listofallmembers>
      <member refid="classgr_1_1blocks_1_1kernel_1_1pack__k__bits_1a0b2a5b9ca606e130c505a2544dd903d0" prot="private" virt="non-virtual"><scope>gr::blocks::kernel::pack_k_bits</scope><name>d_k</name></member>
      <member refid="classgr_1_1blocks_1_1kernel_1_1pack__k__bits_1abad1f7cb2b2c4e10e784416f7c50e5eb" prot="public" virt="non-virtual"><scope>gr::blocks::kernel::pack_k_bits</scope><name>k</name></member>
      <member refid="classgr_1_1blocks_1_1kernel_1_1pack__k__bits_1af8e70e2efee8057ed5275ae73d3ab2cc" prot="public" virt="non-virtual"><scope>gr::blocks::kernel::pack_k_bits</scope><name>pack</name></member>
      <member refid="classgr_1_1blocks_1_1kernel_1_1pack__k__bits_1a1629bc1ba1e316b8df21c18780cec30d" prot="public" virt="non-virtual"><scope>gr::blocks::kernel::pack_k_bits</scope><name>pack_k_bits</name></member>
      <member refid="classgr_1_1blocks_1_1kernel_1_1pack__k__bits_1a1ed19f3e8757f003d22d7d7921895c8b" prot="public" virt="non-virtual"><scope>gr::blocks::kernel::pack_k_bits</scope><name>pack_rev</name></member>
      <member refid="classgr_1_1blocks_1_1kernel_1_1pack__k__bits_1ac3df3c0d660d73ff3aac69c8b509f909" prot="public" virt="non-virtual"><scope>gr::blocks::kernel::pack_k_bits</scope><name>~pack_k_bits</name></member>
    </listofallmembers>
  </compounddef>
</doxygen>
