Code example for UsbEndpoint

Methods: getMaxPacketSize

0
    public void close() { 
        connection.close();
    } 
 
    public int getMaxPacketInSize() { 
        return bulkIn.getMaxPacketSize();
    } 
 
    public int getMaxPacketOutSize() { 
        return bulkOut.getMaxPacketSize();
    } 
 
    public UsbRequest createInRequest() {
        UsbRequest r = new UsbRequest();
        r.initialize(connection, bulkIn);
        return r;
    } 
 
    public int bulkTransferOut(byte[] buffer, int length, int timeout) {
        return connection.bulkTransfer(bulkOut, buffer, length, timeout);
    }