|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.acces.aiousb.USBDevice
com.acces.aiousb.USB_DIO_Family
public class USB_DIO_Family
Class USB_DIO_Family represents a USB-DIO-family device, which performs basic digital I/O and
encompasses the following product IDs:
USB_DIO_48, USB_DIO_96,
USB_IIRO_16, USB_II_16,
USB_RO_16, USB_IIRO_8,
USB_II_8, USB_IIRO_4,
USB_IDIO_16, USB_II_16_OLD,
USB_IDO_16, USB_IDIO_8,
USB_II_8_OLD, USB_IDIO_4,
USB_IIRO4_2SM, USB_IIRO4_COM,
USB_DIO16RO8, PICO_DIO16RO8.
Instances of class USB_DIO_Family are automatically created by the USB device manager when they are
detected on the bus. You should use one of the USBDeviceManager search methods, such as
USBDeviceManager.getDeviceByProductID(),
to obtain a reference to a USB_DIO_Family instance. You can then cast the USBDevice
reference obtained from one of those methods to a USB_DIO_Family and make use of this class' methods, like so:
USBDevice[] devices = deviceManager.getDeviceByProductID( USBDeviceManager.USB_DIO_48, USBDeviceManager.USB_DIO_96 ); if( devices.length > 0 ) USB_DIO_Family device = ( USB_DIO_Family ) devices[ 0 ];
| Field Summary |
|---|
| Fields inherited from class com.acces.aiousb.USBDevice |
|---|
CLEAR_FIFO_METHOD_AUTO, CLEAR_FIFO_METHOD_IMMEDIATE, CLEAR_FIFO_METHOD_IMMEDIATE_AND_ABORT, CLEAR_FIFO_METHOD_WAIT, CUSTOM_EEPROM_SIZE |
| Method Summary | |
|---|---|
DigitalIOSubsystem |
dio()
Gets a reference to the digital I/O subsystem of this device. |
static int[] |
getSupportedProductIDs()
Gets an array of all the product IDs supported by this USB device family. |
static java.lang.String[] |
getSupportedProductNames()
Gets an array of all the product names supported by this USB device family. |
static boolean |
isSupportedProductID(int productID)
Tells if a given product ID is supported by this USB device family. |
java.io.PrintStream |
print(java.io.PrintStream stream)
Prints the properties of this device and all of its subsystems. |
| Methods inherited from class com.acces.aiousb.USBDevice |
|---|
customEEPROMRead, customEEPROMWrite, getCommTimeout, getDeviceIndex, getName, getProductID, getSerialNumber, reset, setCommTimeout |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String[] getSupportedProductNames()
open() method is called.
public static int[] getSupportedProductIDs()
public static boolean isSupportedProductID(int productID)
productID - the product ID to check.
public java.io.PrintStream print(java.io.PrintStream stream)
print in class USBDevicestream - the print stream where properties will be printed.
public DigitalIOSubsystem dio()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||