<?xml version="1.0" encoding="UTF-8"?>
<root>
    <doclet-version-NOT-library-version>1.07</doclet-version-NOT-library-version>
    <class>
        <name>anywheresoftware.b4a.objects.usb.felUsbSerial</name>
        <shortname>felUsbSerial</shortname>
        <objectwrapper>com.felhr.usbserial.UsbSerialDevice</objectwrapper>
        <owner>process</owner>
        <event>DataAvailable (Buffer() As Byte)</event>
        <method>
            <name>Write</name>
            <comment></comment>
            <returntype>void</returntype>
            <parameter>
                <name>Data</name>
                <type>byte[]</type>
            </parameter>
        </method>
        <method>
            <name>Initialize2</name>
            <comment>Similar to Initialize. This method lets you explicitly choose the serial class.
ClassName - One of the following strings: "CDCSerialDevice", "CH34xSerialDevice", "CP2102SerialDevice",
	"FTDISerialDevice", "PL2303SerialDevice".</comment>
            <returntype>void</returntype>
            <parameter>
                <name>EventName</name>
                <type>java.lang.String</type>
            </parameter>
            <parameter>
                <name>Device</name>
                <type>android.hardware.usb.UsbDevice</type>
            </parameter>
            <parameter>
                <name>InterfaceIndex</name>
                <type>int</type>
            </parameter>
            <parameter>
                <name>ClassName</name>
                <type>java.lang.String</type>
            </parameter>
        </method>
        <method>
            <name>StartReading</name>
            <comment>Starts listening for incoming data. The DataAvailable event will be raised whenever new data is available.</comment>
            <returntype>void</returntype>
            <parameter>
                <name>ba</name>
                <type>anywheresoftware.b4a.BA</type>
            </parameter>
        </method>
        <method>
            <name>Close</name>
            <comment></comment>
            <returntype>void</returntype>
        </method>
        <method>
            <name>IsInitialized</name>
            <comment></comment>
            <returntype>boolean</returntype>
        </method>
        <method>
            <name>Initialize</name>
            <comment>Initializes and opens the usb device.
EventName - Sets the sub that will handle the DataAvailable event.
Device - The UsbDevice previously found with UsbManager.
InterfaceIndex - The interface index. Pass -1 to choose automatically.</comment>
            <returntype>void</returntype>
            <parameter>
                <name>EventName</name>
                <type>java.lang.String</type>
            </parameter>
            <parameter>
                <name>Device</name>
                <type>android.hardware.usb.UsbDevice</type>
            </parameter>
            <parameter>
                <name>InterfaceIndex</name>
                <type>int</type>
            </parameter>
        </method>
        <property>
            <name>StopBits</name>
            <parameter>
                <name>i</name>
                <type>int</type>
            </parameter>
            <comment>One of the STOP_BITS constants.</comment>
        </property>
        <property>
            <name>FlowControl</name>
            <parameter>
                <name>i</name>
                <type>int</type>
            </parameter>
            <comment>One of the FLOW_CONTROL constants.
Note that this method is only supported with CP2102 and FTDI chips.</comment>
        </property>
        <property>
            <name>DataBits</name>
            <parameter>
                <name>i</name>
                <type>int</type>
            </parameter>
            <comment>One of the DATA_BITS constants.</comment>
        </property>
        <property>
            <name>BaudRate</name>
            <parameter>
                <name>rate</name>
                <type>int</type>
            </parameter>
            <comment></comment>
        </property>
        <property>
            <name>DebugMode</name>
            <parameter>
                <name>b</name>
                <type>boolean</type>
            </parameter>
            <comment>Whether to print debug information (default is true).</comment>
        </property>
        <property>
            <name>Parity</name>
            <parameter>
                <name>i</name>
                <type>int</type>
            </parameter>
            <comment>One of the PARITY constants.</comment>
        </property>
        <field>
            <name>STOP_BITS_2</name>
            <comment></comment>
            <returntype>int</returntype>
        </field>
        <field>
            <name>STOP_BITS_1</name>
            <comment></comment>
            <returntype>int</returntype>
        </field>
        <field>
            <name>PARITY_NONE</name>
            <comment></comment>
            <returntype>int</returntype>
        </field>
        <field>
            <name>BUFFER_READ_SIZE</name>
            <comment>Internal read buffer size. Default value is 16 * 1024. Changes should be done before calling Initialize.</comment>
            <returntype>int</returntype>
        </field>
        <field>
            <name>PARITY_EVEN</name>
            <comment></comment>
            <returntype>int</returntype>
        </field>
        <field>
            <name>FLOW_CONTROL_OFF</name>
            <comment></comment>
            <returntype>int</returntype>
        </field>
        <field>
            <name>PARITY_SPACE</name>
            <comment></comment>
            <returntype>int</returntype>
        </field>
        <field>
            <name>FLOW_CONTROL_RTS_CTS</name>
            <comment></comment>
            <returntype>int</returntype>
        </field>
        <field>
            <name>DATA_BITS_6</name>
            <comment></comment>
            <returntype>int</returntype>
        </field>
        <field>
            <name>DATA_BITS_7</name>
            <comment></comment>
            <returntype>int</returntype>
        </field>
        <field>
            <name>FLOW_CONTROL_XON_XOFF</name>
            <comment></comment>
            <returntype>int</returntype>
        </field>
        <field>
            <name>DATA_BITS_5</name>
            <comment></comment>
            <returntype>int</returntype>
        </field>
        <field>
            <name>STOP_BITS_15</name>
            <comment></comment>
            <returntype>int</returntype>
        </field>
        <field>
            <name>DATA_BITS_8</name>
            <comment></comment>
            <returntype>int</returntype>
        </field>
        <field>
            <name>BUFFER_WRITE_SIZE</name>
            <comment>Internal write buffer size. Default value is 16 * 1024. Changes should be done before calling Initialize.</comment>
            <returntype>int</returntype>
        </field>
        <field>
            <name>PARITY_MARK</name>
            <comment></comment>
            <returntype>int</returntype>
        </field>
        <field>
            <name>PARITY_ODD</name>
            <comment></comment>
            <returntype>int</returntype>
        </field>
        <field>
            <name>FLOW_CONTROL_DSR_DTR</name>
            <comment></comment>
            <returntype>int</returntype>
        </field>
    </class>
    <version>1.13</version>
</root>
