Package org.jnode.driver.bus.usb.spi

Examples of org.jnode.driver.bus.usb.spi.AbstractUSBRequest


        }
        if (!(request instanceof AbstractUSBRequest)) {
            throw new IllegalArgumentException("Invalid request type (AbstractUSBRequest)");
        }
        final UHCIRequest req = (UHCIRequest) request;
        final AbstractUSBRequest usbReq = (AbstractUSBRequest) request;
        usbReq.setCompleted(false);
        usbReq.setActualLength(0);
        usbReq.setStatus(0);
        if (qh.isEmpty()) {
            activateRequest(req);
        } else {
            queue.add(req);
        }
View Full Code Here


            if ((!queue.isEmpty()) && qh.isEmpty()) {
                final UHCIRequest nextReq = (UHCIRequest) queue.get();
                try {
                    activateRequest(nextReq);
                } catch (USBException ex) {
                    final AbstractUSBRequest areq = (AbstractUSBRequest) nextReq;
                    areq.setStatus(USBConstants.USBREQ_ST_BITSTUFF);
                    areq.setCompleted(true);
                    log.error("Unknown errr in activateRequest", ex);
                }
            }
        }
    }
View Full Code Here

                status |= USBREQ_ST_BITSTUFF;
            }
        } else {
            status |= USBREQ_ST_COMPLETED;
        }
        final AbstractUSBRequest usbReq = (AbstractUSBRequest) request;
        usbReq.setStatus(status);
        usbReq.setActualLength(actualLength);
        usbReq.setCompleted(true);
        firePipeEvent(request);
    }
View Full Code Here

TOP

Related Classes of org.jnode.driver.bus.usb.spi.AbstractUSBRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.