|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--usb.core.Device
|
+--usb.windows.DeviceImpl
|
+--usb.windows.NonJUSB
Provides all functionality from the DeviceImpl class. A device in that class is not using the jUSB driver and is therefore not suited for the jUSB API
| Field Summary |
| Fields inherited from class usb.windows.DeviceImpl |
configuration, descriptor, EXTERNAL_HUB, NO_DEVICE_CONNECTED, USB_DEVICE |
| Fields inherited from class usb.core.Device |
DEVICE_REMOTE_WAKEUP, DEVICE_SELFPOWERED |
| Constructor Summary | |
NonJUSB(USB bus,
DeviceImpl hub,
java.lang.String devicePath,
int address,
java.lang.String driverKeyName,
java.lang.String friendlyDevName,
java.lang.String uniqueID,
int portIndex)
Creates a new instance of NonJUSB devices, such as an external hub or an usb device |
|
| Method Summary | |
void |
claimInterface(int ifnum)
Never available, because this device does not use the jUSB driver. |
int |
clearHalt(byte ep)
Never available, because this device does not use the jUSB driver. |
java.lang.String |
getClaimer(int ifnum)
Never available, because this device does not use the jUSB driver. |
byte[] |
getConfigBuf(int n)
Never available, because this device does not use the jUSB driver. |
java.lang.String |
getSpeed()
Never available, because this device does not use the jUSB driver. |
byte[] |
readBulk(int ep,
int length)
Never available, because this device does not use the jUSB driver. |
byte[] |
readControl(byte type,
byte request,
short value,
short index,
short length)
Never available, because this device does not use the jUSB driver. |
byte[] |
readIntr(int ep,
int len)
Never available, because this device does not use the jUSB driver. |
void |
releaseInterface(int ifnum)
Never available, because this device does not use the jUSB driver. |
void |
setInterface(int ifnum,
int alt)
Never available, because this device does not use the jUSB driver. |
void |
writeBulk(int ep,
byte[] buf)
Never available, because this device does not use the jUSB driver. |
void |
writeControl(byte type,
byte request,
short value,
short index,
byte[] buf)
Never available, because this device does not use the jUSB driver. |
void |
writeIntr(int ep,
byte[] buf)
Never available, because this device does not use the jUSB driver. |
| Methods inherited from class usb.windows.DeviceImpl |
closeHandle, getChild, getConfiguration, getConfiguration, getConfigurationDescriptor, getDeviceDescriptor, getDeviceDescriptor, getDeviceFriendlyName, getDevicePath, getDriverKeyName, getFriendlyDeviceName, getHub, getHubPortNum, getNumPorts, getUniqueDeviceID, openHandle, printByteArray |
| Methods inherited from class usb.core.Device |
control, getAddress, getBus, getPortIdentifier, getSPI, getString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface usb.core.DeviceSPI |
getChild |
| Constructor Detail |
public NonJUSB(USB bus,
DeviceImpl hub,
java.lang.String devicePath,
int address,
java.lang.String driverKeyName,
java.lang.String friendlyDevName,
java.lang.String uniqueID,
int portIndex)
throws java.io.IOException
| Method Detail |
public void claimInterface(int ifnum)
throws java.io.IOException
claimInterface in interface DeviceSPIifnum - Number from the descriptor, returned by
Interface.getNumber().
java.io.IOExceptionDeviceSPI.releaseInterface(int)
public int clearHalt(byte ep)
throws java.io.IOException
clearHalt in interface DeviceSPIep - Endpoint address and direction, as returned by
Endpoint.getEndpoint().
java.io.IOException
public java.lang.String getClaimer(int ifnum)
throws java.io.IOException
getClaimer in interface DeviceSPIifnum - Number from the descriptor, returned by
Interface.getNumber().
java.io.IOException
public byte[] getConfigBuf(int n)
throws java.io.IOException
getConfigBuf in interface DeviceSPIn - Number of the configuration, from zero to the limit
specified by DeviceDescriptor.getNumConfigurations()
java.io.IOException
public byte[] readBulk(int ep,
int length)
throws java.io.IOException
readBulk in interface DeviceSPIep - Endpoint direction and address, as specified in an
endpoint descriptor by Endpoint.getEndpoint().length - How many bytes to read.
java.io.IOException
public byte[] readControl(byte type,
byte request,
short value,
short index,
short length)
throws java.io.IOException
readControl in interface DeviceSPItype - Masked together using three constants from
ControlMessage: DIR_TO_HOST, a TYPE_*, and a RECIP_*.request - bRequest field, either standard (from table 9-3 in
the USB 2.0 specification) for TYPE_STANDARD, or else as specified
in the class or vendor device type specification.value - sixteen bit field associated with requestindex - sixteen bit field associated with requestlength - How much data should be read; may be zero to indicate
that no READ phase follows the SETUP packet.
java.io.IOException
public byte[] readIntr(int ep,
int len)
throws java.io.IOException
readIntr in interface DeviceSPIep - Endpoint direction and address, as specified in an
endpoint descriptor by Endpoint.getEndpoint().
java.io.IOException
public void releaseInterface(int ifnum)
throws java.io.IOException
releaseInterface in interface DeviceSPIifnum - Number from the descriptor, returned by
Interface.getNumber().
java.io.IOExceptionDeviceSPI.claimInterface(int)
public void setInterface(int ifnum,
int alt)
throws java.io.IOException
setInterface in interface DeviceSPIifnum - Number from the descriptor, returned by
Interface.getNumber().alt - Number from the descriptor, returned by
Interface.getAlternateSetting().
java.io.IOException
public void writeBulk(int ep,
byte[] buf)
throws java.io.IOException
writeBulk in interface DeviceSPIep - Endpoint direction and address, as specified in an
endpoint descriptor by Endpoint.getEndpoint().buf - The bytes to write.
java.io.IOException
public void writeControl(byte type,
byte request,
short value,
short index,
byte[] buf)
throws java.io.IOException
writeControl in interface DeviceSPItype - Masked together using three constants from
ControlMessage: DIR_TO_DEVICE, a TYPE_*, and a RECIP_*.request - bRequest field, either standard (from table 9-3 in
the USB 2.0 specification) for TYPE_STANDARD, or else as specified
in the class or vendor device type specification.value - sixteen bit field associated with requestindex - sixteen bit field associated with requestbuf - The data to be written. Length may be zero to indicate
that no WRITe phase follows the SETUP packet.
java.io.IOException
public void writeIntr(int ep,
byte[] buf)
throws java.io.IOException
writeIntr in interface DeviceSPIep - Endpoint direction and address, as specified in an
endpoint descriptor by Endpoint.getEndpoint().buf - The bytes to write.
java.io.IOExceptionpublic java.lang.String getSpeed()
getSpeed in class DeviceImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||