Examples of UsbDevice


Examples of org.jnode.driver.bus.usb.USBDevice

    public Driver findDriver(Device device) {
        if (!(device instanceof USBDevice)) {
            return null;
        }

        final USBDevice dev = (USBDevice) device;
        if (dev.getDescriptor().getDeviceClass() != USB_CLASS_HUB) {
            return null;
        }

        // We found an USB HUB
        return new USBHubDriver();
View Full Code Here

Examples of org.jnode.driver.bus.usb.USBDevice

     * @param endPoint
     * @return The new pipe.
     */
    public USBPipe createPipe(USBEndPoint endPoint) {
        final EndPointDescriptor descr = endPoint.getDescriptor();
        final USBDevice device = endPoint.getDevice();
        final QueueHead skelQH;
        switch (descr.getTransferType()) {
            case USB_ENDPOINT_XFER_CONTROL:
                if (device.isLowSpeed()) {
                    skelQH = schedule.getLowSpeedControlQH();
                } else {
                    skelQH = schedule.getHighSpeedControlQH();
                }
                return new UHCIControlPipe(this, rm, device, endPoint, skelQH);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.