Examples of EndPointDescriptor


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

     *
     * @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);
            case USB_ENDPOINT_XFER_INT:
                skelQH = schedule.getInterruptQH(descr.getInterval());
                return new UHCIDataPipe(this, rm, device, endPoint, skelQH);
            case USB_ENDPOINT_XFER_BULK:
                skelQH = schedule.getBulkQH();
                return new UHCIDataPipe(this, rm, device, endPoint, skelQH);
            default:
View Full Code Here

Examples of org.usb4java.EndpointDescriptor

    public void setUp()
    {
        if (isUsbTestsEnabled())
        {
            LibUsb.init(null);
            this.descriptor = new EndpointDescriptor();
        }
    }
View Full Code Here

Examples of org.usb4java.EndpointDescriptor

     */
    @Test(expected = IllegalStateException.class)
    public void testGetSsEndpointCompanionDescriptorWithUninitializedEndpoint()
    {
        assumeUsbTestsEnabled();
        LibUsb.getSsEndpointCompanionDescriptor(null, new EndpointDescriptor(),
            new SsEndpointCompanionDescriptor());
    }
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.