- Changed the project name according to the new naming convention

- Changed package names according to the new naming convention


git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@277 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
This commit is contained in:
uniederer
2012-03-16 12:17:47 +00:00
parent 8b297fd01e
commit 5ef50110e7
43 changed files with 362 additions and 362 deletions

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>ch.ntb.usb</name>
<name>ch.ntb.inf.libusbJava</name>
<comment></comment>
<projects>
</projects>

View File

@@ -5,5 +5,5 @@ Bundle-SymbolicName: ch.ntb.usb
Bundle-Version: 1.0.2
Bundle-Vendor: libusbjava.sourceforge.net
Require-Bundle: org.junit4
Export-Package: ch.ntb.usb
Export-Package: ch.ntb.inf.libusbJava
Bundle-RequiredExecutionEnvironment: J2SE-1.5

View File

@@ -1,12 +1,12 @@
<?xml version="1.0"?>
<!-- ======================================================================
ch.ntb.usb
Ant tasks for ch.ntb.usb
ch.ntb.inf.libusbJava
Ant tasks for ch.ntb.inf.libusbJava
====================================================================== -->
<project name="ch.ntb.usb" basedir="." default="javadoc">
<project name="ch.ntb.inf.libusbJava" basedir="." default="javadoc">
<description>
Ant tasks for ch.ntb.usb
Ant tasks for ch.ntb.inf.libusbJava
</description>
<tstamp />

View File

@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<!-- ======================================================================
ch.ntb.usb
Ant deployment tasks for ch.ntb.usb
ch.ntb.inf.libusbJava
Ant deployment tasks for ch.ntb.inf.libusbJava
NOTE: for deployment the properties
project.server.username
@@ -10,9 +10,9 @@
(e.g. -Dproject.server.username=X as jvm command line argument).
====================================================================== -->
<project name="ch.ntb.usb.deployment" basedir=".">
<project name="ch.ntb.inf.libusbJava.deployment" basedir=".">
<description>
Ant deployment tasks for ch.ntb.usb
Ant deployment tasks for ch.ntb.inf.libusbJava
</description>
<import file="build.xml" />

View File

@@ -1,5 +1,5 @@
#Thu Aug 24 14:28:28 CEST 2006
project.name=ch.ntb.usb
project.name=ch.ntb.inf.libusbJava
project.vendor=inf.ntb.ch
project.dir.src=src
project.dir.bin=bin
@@ -7,4 +7,4 @@ project.dir.lib=lib
project.dir.doc=doc
project.dir.demos=demos
project.jarfile=${project.name}
project.manifest.mainclass=ch.ntb.usb.usbView.UsbView
project.manifest.mainclass=ch.ntb.inf.libusbJava.usbView.UsbView

View File

@@ -1,6 +1,6 @@
# enable or disable logging
ch.ntb.usb/debug = true
ch.ntb.inf.libusbJava/debug = true
# set and configure individual loggers here
# the format is: projectName/debug/<loggerX> = <logger name>/<log level>
ch.ntb.usb/debug/logger0 = ch.ntb.usb/OFF
ch.ntb.usb/debug/logger1 = ch.ntb.usb.test/INFO
ch.ntb.inf.libusbJava/debug/logger0 = ch.ntb.inf.libusbJava/OFF
ch.ntb.inf.libusbJava/debug/logger1 = ch.ntb.inf.libusbJava.test/INFO

View File

@@ -5,12 +5,12 @@
* http://libusbjava.sourceforge.net
* This library is covered by the LGPL, read LGPL.txt for details.
*/
package ch.ntb.usb;
package ch.ntb.inf.libusbJava;
import java.util.logging.Level;
import java.util.logging.Logger;
import ch.ntb.usb.logger.LogUtil;
import ch.ntb.inf.libusbJava.logger.LogUtil;
/**
* This class represents an USB device.<br>
@@ -19,7 +19,7 @@ import ch.ntb.usb.logger.LogUtil;
*/
public class Device {
private static final Logger logger = LogUtil.getLogger("ch.ntb.usb");
private static final Logger logger = LogUtil.getLogger("ch.ntb.inf.libusbJava");
private int maxPacketSize;
@@ -545,11 +545,11 @@ public class Device {
*
* @param requestType
* USB device request type (USB specification 9.3,
* bmRequestType). Use constants from {@link ch.ntb.usb.USB}
* bmRequestType). Use constants from {@link ch.ntb.inf.libusbJava.USB}
* (REQ_TYPE_xxx).
* @param request
* specific request (USB specification 9.4, bRequest). Use
* constants from {@link ch.ntb.usb.USB} (REQ_xxx).
* constants from {@link ch.ntb.inf.libusbJava.USB} (REQ_xxx).
* @param value
* field that varies according to request (USB specification 9.4,
* wValue)

View File

@@ -5,7 +5,7 @@
* http://libusbjava.sourceforge.net
* This library is covered by the LGPL, read LGPL.txt for details.
*/
package ch.ntb.usb;
package ch.ntb.inf.libusbJava;
/**
* This class represents the Java Native Interface to the shared library which

View File

@@ -5,13 +5,13 @@
* http://libusbjava.sourceforge.net
* This library is covered by the LGPL, read LGPL.txt for details.
*/
package ch.ntb.usb;
package ch.ntb.inf.libusbJava;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.logging.Logger;
import ch.ntb.usb.logger.LogUtil;
import ch.ntb.inf.libusbJava.logger.LogUtil;
/**
* This class manages all USB devices and defines some USB specific constants.<br>
@@ -23,7 +23,7 @@ public class USB {
/**
* This request returns status for the specified recipient (USB spec 9.4.5).
*
* @see ch.ntb.usb.Device#controlMsg(int, int, int, int, byte[], int, int,
* @see ch.ntb.inf.libusbJava.Device#controlMsg(int, int, int, int, byte[], int, int,
* boolean)
*/
public static final int REQ_GET_STATUS = 0x00;
@@ -31,7 +31,7 @@ public class USB {
* This request is used to clear or disable a specific feature (USB spec
* 9.4.1).
*
* @see ch.ntb.usb.Device#controlMsg(int, int, int, int, byte[], int, int,
* @see ch.ntb.inf.libusbJava.Device#controlMsg(int, int, int, int, byte[], int, int,
* boolean)
*/
public static final int REQ_CLEAR_FEATURE = 0x01;
@@ -40,7 +40,7 @@ public class USB {
* This request is used to set or enable a specific feature (USB spec
* 9.4.9).
*
* @see ch.ntb.usb.Device#controlMsg(int, int, int, int, byte[], int, int,
* @see ch.ntb.inf.libusbJava.Device#controlMsg(int, int, int, int, byte[], int, int,
* boolean)
*/
public static final int REQ_SET_FEATURE = 0x03;
@@ -49,7 +49,7 @@ public class USB {
* This request sets the device address for all future device accesses (USB
* spec 9.4.6).
*
* @see ch.ntb.usb.Device#controlMsg(int, int, int, int, byte[], int, int,
* @see ch.ntb.inf.libusbJava.Device#controlMsg(int, int, int, int, byte[], int, int,
* boolean)
*/
public static final int REQ_SET_ADDRESS = 0x05;
@@ -57,7 +57,7 @@ public class USB {
* This request returns the specified descriptor if the descriptor exists
* (USB spec 9.4.3).
*
* @see ch.ntb.usb.Device#controlMsg(int, int, int, int, byte[], int, int,
* @see ch.ntb.inf.libusbJava.Device#controlMsg(int, int, int, int, byte[], int, int,
* boolean)
*/
public static final int REQ_GET_DESCRIPTOR = 0x06;
@@ -65,7 +65,7 @@ public class USB {
* This request is optional and may be used to update existing descriptors
* or new descriptors may be added (USB spec 9.4.8).
*
* @see ch.ntb.usb.Device#controlMsg(int, int, int, int, byte[], int, int,
* @see ch.ntb.inf.libusbJava.Device#controlMsg(int, int, int, int, byte[], int, int,
* boolean)
*/
public static final int REQ_SET_DESCRIPTOR = 0x07;
@@ -73,14 +73,14 @@ public class USB {
* This request returns the current device configuration value (USB spec
* 9.4.2).
*
* @see ch.ntb.usb.Device#controlMsg(int, int, int, int, byte[], int, int,
* @see ch.ntb.inf.libusbJava.Device#controlMsg(int, int, int, int, byte[], int, int,
* boolean)
*/
public static final int REQ_GET_CONFIGURATION = 0x08;
/**
* This request sets the device configuration (USB spec 9.4.7).
*
* @see ch.ntb.usb.Device#controlMsg(int, int, int, int, byte[], int, int,
* @see ch.ntb.inf.libusbJava.Device#controlMsg(int, int, int, int, byte[], int, int,
* boolean)
*/
public static final int REQ_SET_CONFIGURATION = 0x09;
@@ -88,7 +88,7 @@ public class USB {
* This request returns the selected alternate setting for the specified
* interface (USB spec 9.4.4).
*
* @see ch.ntb.usb.Device#controlMsg(int, int, int, int, byte[], int, int,
* @see ch.ntb.inf.libusbJava.Device#controlMsg(int, int, int, int, byte[], int, int,
* boolean)
*/
public static final int REQ_GET_INTERFACE = 0x0A;
@@ -96,7 +96,7 @@ public class USB {
* This request allows the host to select an alternate setting for the
* specified interface (USB spec 9.4.10).
*
* @see ch.ntb.usb.Device#controlMsg(int, int, int, int, byte[], int, int,
* @see ch.ntb.inf.libusbJava.Device#controlMsg(int, int, int, int, byte[], int, int,
* boolean)
*/
public static final int REQ_SET_INTERFACE = 0x0B;
@@ -104,7 +104,7 @@ public class USB {
* This request is used to set and then report an endpoints synchronization
* frame (USB spec 9.4.11).
*
* @see ch.ntb.usb.Device#controlMsg(int, int, int, int, byte[], int, int,
* @see ch.ntb.inf.libusbJava.Device#controlMsg(int, int, int, int, byte[], int, int,
* boolean)
*/
public static final int REQ_SYNCH_FRAME = 0x0C;
@@ -117,7 +117,7 @@ public class USB {
* signifying there is no Data stage.<br>
* Specifies bit 7 of bmRequestType.
*
* @see ch.ntb.usb.Device#controlMsg(int, int, int, int, byte[], int, int,
* @see ch.ntb.inf.libusbJava.Device#controlMsg(int, int, int, int, byte[], int, int,
* boolean)
*/
public static final int REQ_TYPE_DIR_HOST_TO_DEVICE = (0x00 << 7),
@@ -128,7 +128,7 @@ public class USB {
* Specifies the type of the request.<br>
* Specifies bits 6..5 of bmRequestType.
*
* @see ch.ntb.usb.Device#controlMsg(int, int, int, int, byte[], int, int,
* @see ch.ntb.inf.libusbJava.Device#controlMsg(int, int, int, int, byte[], int, int,
* boolean)
*/
public static final int REQ_TYPE_TYPE_STANDARD = (0x00 << 5),
@@ -144,7 +144,7 @@ public class USB {
* specified, the wIndex field identifies the interface or endpoint.<br>
* Specifies bits 4..0 of bmRequestType.
*
* @see ch.ntb.usb.Device#controlMsg(int, int, int, int, byte[], int, int,
* @see ch.ntb.inf.libusbJava.Device#controlMsg(int, int, int, int, byte[], int, int,
* boolean)
*/
public static final int REQ_TYPE_RECIP_DEVICE = 0x00,
@@ -163,7 +163,7 @@ public class USB {
*/
public static int FULLSPEED_MAX_BULK_PACKET_SIZE = 64;
private static final Logger logger = LogUtil.getLogger("ch.ntb.usb");
private static final Logger logger = LogUtil.getLogger("ch.ntb.inf.libusbJava");
private static LinkedList<Device> devices = new LinkedList<Device>();

View File

@@ -5,7 +5,7 @@
* http://libusbjava.sourceforge.net
* This library is covered by the LGPL, read LGPL.txt for details.
*/
package ch.ntb.usb;
package ch.ntb.inf.libusbJava;
import java.io.IOException;

View File

@@ -5,7 +5,7 @@
* http://libusbjava.sourceforge.net
* This library is covered by the LGPL, read LGPL.txt for details.
*/
package ch.ntb.usb;
package ch.ntb.inf.libusbJava;
public class USBTimeoutException extends USBException {

View File

@@ -5,7 +5,7 @@
* http://libusbjava.sourceforge.net
* This library is covered by the LGPL, read LGPL.txt for details.
*/
package ch.ntb.usb;
package ch.ntb.inf.libusbJava;
/**
* Represents an USB bus.<br>

View File

@@ -5,15 +5,15 @@
* http://libusbjava.sourceforge.net
* This library is covered by the LGPL, read LGPL.txt for details.
*/
package ch.ntb.usb;
package ch.ntb.inf.libusbJava;
/**
* Represents the descriptor of a USB configuration.<br>
* A USB device can have several different configuration.<br>
* <br>
* The length of the configuration descriptor is
* {@link ch.ntb.usb.Usb_Descriptor#USB_DT_CONFIG_SIZE} and the type is
* {@link ch.ntb.usb.Usb_Descriptor#USB_DT_CONFIG}.
* {@link ch.ntb.inf.libusbJava.Usb_Descriptor#USB_DT_CONFIG_SIZE} and the type is
* {@link ch.ntb.inf.libusbJava.Usb_Descriptor#USB_DT_CONFIG}.
*
*/
public class Usb_Config_Descriptor extends Usb_Descriptor {

View File

@@ -5,7 +5,7 @@
* http://libusbjava.sourceforge.net
* This library is covered by the LGPL, read LGPL.txt for details.
*/
package ch.ntb.usb;
package ch.ntb.inf.libusbJava;
/**
* Common USB descriptor values.<br>

View File

@@ -5,7 +5,7 @@
* http://libusbjava.sourceforge.net
* This library is covered by the LGPL, read LGPL.txt for details.
*/
package ch.ntb.usb;
package ch.ntb.inf.libusbJava;
/**
* Represents an USB device.<br>

View File

@@ -5,7 +5,7 @@
* http://libusbjava.sourceforge.net
* This library is covered by the LGPL, read LGPL.txt for details.
*/
package ch.ntb.usb;
package ch.ntb.inf.libusbJava;
/**
* Represents the descriptor of a USB device.<br>
@@ -13,8 +13,8 @@ package ch.ntb.usb;
* yet important information about the device.<br>
* <br>
* The length of the device descriptor is
* {@link ch.ntb.usb.Usb_Descriptor#USB_DT_DEVICE_SIZE} and the type is
* {@link ch.ntb.usb.Usb_Descriptor#USB_DT_DEVICE}.
* {@link ch.ntb.inf.libusbJava.Usb_Descriptor#USB_DT_DEVICE_SIZE} and the type is
* {@link ch.ntb.inf.libusbJava.Usb_Descriptor#USB_DT_DEVICE}.
*
*/
public class Usb_Device_Descriptor extends Usb_Descriptor {

View File

@@ -5,7 +5,7 @@
* http://libusbjava.sourceforge.net
* This library is covered by the LGPL, read LGPL.txt for details.
*/
package ch.ntb.usb;
package ch.ntb.inf.libusbJava;
/**
* Represents the descriptor of an USB endpoint.<br>
@@ -16,8 +16,8 @@ package ch.ntb.usb;
* the bus.<br>
* <br>
* The length of the configuration descriptor is
* {@link ch.ntb.usb.Usb_Descriptor#USB_DT_ENDPOINT_SIZE} and the type is
* {@link ch.ntb.usb.Usb_Descriptor#USB_DT_ENDPOINT}.
* {@link ch.ntb.inf.libusbJava.Usb_Descriptor#USB_DT_ENDPOINT_SIZE} and the type is
* {@link ch.ntb.inf.libusbJava.Usb_Descriptor#USB_DT_ENDPOINT}.
*
*/
public class Usb_Endpoint_Descriptor extends Usb_Descriptor {

View File

@@ -5,7 +5,7 @@
* http://libusbjava.sourceforge.net
* This library is covered by the LGPL, read LGPL.txt for details.
*/
package ch.ntb.usb;
package ch.ntb.inf.libusbJava;
/**
* Represents an USB interface.<br>

View File

@@ -5,7 +5,7 @@
* http://libusbjava.sourceforge.net
* This library is covered by the LGPL, read LGPL.txt for details.
*/
package ch.ntb.usb;
package ch.ntb.inf.libusbJava;
/**
* Represents the descriptor of a USB interface.<br>
@@ -13,8 +13,8 @@ package ch.ntb.usb;
* endpoints into a functional group performing a single feature of the device.<br>
* <br>
* The length of the interface descriptor is
* {@link ch.ntb.usb.Usb_Descriptor#USB_DT_INTERFACE_SIZE} and the type is
* {@link ch.ntb.usb.Usb_Descriptor#USB_DT_INTERFACE}.
* {@link ch.ntb.inf.libusbJava.Usb_Descriptor#USB_DT_INTERFACE_SIZE} and the type is
* {@link ch.ntb.inf.libusbJava.Usb_Descriptor#USB_DT_INTERFACE}.
*
*/
public class Usb_Interface_Descriptor extends Usb_Descriptor {

View File

@@ -5,7 +5,7 @@
* http://libusbjava.sourceforge.net
* This library is covered by the LGPL, read LGPL.txt for details.
*/
package ch.ntb.usb;
package ch.ntb.inf.libusbJava;
import java.io.PrintStream;

View File

@@ -5,7 +5,7 @@
* http://libusbjava.sourceforge.net
* This library is covered by the LGPL, read LGPL.txt for details.
*/
package ch.ntb.usb.logger;
package ch.ntb.inf.libusbJava.logger;
import java.io.InputStream;
import java.util.Properties;
@@ -20,7 +20,7 @@ public class LogUtil {
// debug this class
private static final boolean debugLogUtil = false;
private static final String PLUGIN_ID = "ch.ntb.usb";
private static final String PLUGIN_ID = "ch.ntb.inf.libusbJava";
private static final String PROPERTIES_FILE = ".configure";
private static final String LOGGER_WARNING = "Warning in class "
+ LogUtil.class.getName()

View File

@@ -5,7 +5,7 @@
* http://libusbjava.sourceforge.net
* This library is covered by the LGPL, read LGPL.txt for details.
*/
package ch.ntb.usb.testApp;
package ch.ntb.inf.libusbJava.testApp;
public abstract class AbstractDeviceInfo {

View File

@@ -5,7 +5,7 @@
* http://libusbjava.sourceforge.net
* This library is covered by the LGPL, read LGPL.txt for details.
*/
package ch.ntb.usb.testApp;
package ch.ntb.inf.libusbJava.testApp;
import java.awt.BorderLayout;
import java.awt.Color;

View File

@@ -5,20 +5,20 @@
* http://libusbjava.sourceforge.net
* This library is covered by the LGPL, read LGPL.txt for details.
*/
package ch.ntb.usb.testApp;
package ch.ntb.inf.libusbJava.testApp;
import java.util.Vector;
import java.util.logging.Level;
import java.util.logging.Logger;
import ch.ntb.usb.Device;
import ch.ntb.usb.USB;
import ch.ntb.usb.USBException;
import ch.ntb.usb.logger.LogUtil;
import ch.ntb.inf.libusbJava.Device;
import ch.ntb.inf.libusbJava.USB;
import ch.ntb.inf.libusbJava.USBException;
import ch.ntb.inf.libusbJava.logger.LogUtil;
public class TestDevice extends AbstractDeviceInfo {
private static final Logger logger = LogUtil.getLogger("ch.ntb.usb.test");
private static final Logger logger = LogUtil.getLogger("ch.ntb.inf.libusbJava.test");
private String sendData = "0x5b 0x02 0x01 0x00 0x03 0x03 0xf0 0xf0 0x1f";

View File

@@ -5,7 +5,7 @@
* http://libusbjava.sourceforge.net
* This library is covered by the LGPL, read LGPL.txt for details.
*/
package ch.ntb.usb.usbView;
package ch.ntb.inf.libusbJava.usbView;
import java.util.Vector;
@@ -18,14 +18,14 @@ import javax.swing.event.TreeSelectionListener;
import javax.swing.tree.TreeModel;
import javax.swing.tree.TreePath;
import ch.ntb.usb.LibusbJava;
import ch.ntb.usb.Usb_Bus;
import ch.ntb.usb.Usb_Config_Descriptor;
import ch.ntb.usb.Usb_Device;
import ch.ntb.usb.Usb_Device_Descriptor;
import ch.ntb.usb.Usb_Endpoint_Descriptor;
import ch.ntb.usb.Usb_Interface;
import ch.ntb.usb.Usb_Interface_Descriptor;
import ch.ntb.inf.libusbJava.LibusbJava;
import ch.ntb.inf.libusbJava.Usb_Bus;
import ch.ntb.inf.libusbJava.Usb_Config_Descriptor;
import ch.ntb.inf.libusbJava.Usb_Device;
import ch.ntb.inf.libusbJava.Usb_Device_Descriptor;
import ch.ntb.inf.libusbJava.Usb_Endpoint_Descriptor;
import ch.ntb.inf.libusbJava.Usb_Interface;
import ch.ntb.inf.libusbJava.Usb_Interface_Descriptor;
public class UsbTreeModel implements TreeModel, TreeSelectionListener {

View File

@@ -5,7 +5,7 @@
* http://libusbjava.sourceforge.net
* This library is covered by the LGPL, read LGPL.txt for details.
*/
package ch.ntb.usb.usbView;
package ch.ntb.inf.libusbJava.usbView;
import java.awt.BorderLayout;
import java.awt.Component;
@@ -28,16 +28,16 @@ import javax.swing.JTree;
import javax.swing.KeyStroke;
import javax.swing.tree.TreePath;
import ch.ntb.usb.LibusbJava;
import ch.ntb.usb.Usb_Bus;
import ch.ntb.usb.Usb_Config_Descriptor;
import ch.ntb.usb.Usb_Device;
import ch.ntb.usb.Usb_Device_Descriptor;
import ch.ntb.usb.Usb_Endpoint_Descriptor;
import ch.ntb.usb.Usb_Interface_Descriptor;
import ch.ntb.usb.testApp.TestApp;
import ch.ntb.usb.testApp.TestDevice;
import ch.ntb.usb.testApp.AbstractDeviceInfo.TransferMode;
import ch.ntb.inf.libusbJava.LibusbJava;
import ch.ntb.inf.libusbJava.Usb_Bus;
import ch.ntb.inf.libusbJava.Usb_Config_Descriptor;
import ch.ntb.inf.libusbJava.Usb_Device;
import ch.ntb.inf.libusbJava.Usb_Device_Descriptor;
import ch.ntb.inf.libusbJava.Usb_Endpoint_Descriptor;
import ch.ntb.inf.libusbJava.Usb_Interface_Descriptor;
import ch.ntb.inf.libusbJava.testApp.TestApp;
import ch.ntb.inf.libusbJava.testApp.TestDevice;
import ch.ntb.inf.libusbJava.testApp.AbstractDeviceInfo.TransferMode;
public class UsbView extends JFrame {

View File

@@ -7,9 +7,9 @@
*/
package ch.ntb.usb.demo;
import ch.ntb.usb.LibusbJava;
import ch.ntb.usb.Usb_Bus;
import ch.ntb.usb.Utils;
import ch.ntb.inf.libusbJava.LibusbJava;
import ch.ntb.inf.libusbJava.Usb_Bus;
import ch.ntb.inf.libusbJava.Utils;
/**
* Initalises Libusb and prints the bus(ses) with attached devices to the
@@ -20,7 +20,7 @@ import ch.ntb.usb.Utils;
public class LogBus {
private static void logBus() {
// if you don't use the ch.ntb.usb.Device class you must initialise
// if you don't use the ch.ntb.inf.libusbJava.Device class you must initialise
// Libusb before use
LibusbJava.usb_init();
LibusbJava.usb_find_busses();

View File

@@ -7,9 +7,9 @@
*/
package ch.ntb.usb.demo;
import ch.ntb.usb.Device;
import ch.ntb.usb.USB;
import ch.ntb.usb.USBException;
import ch.ntb.inf.libusbJava.Device;
import ch.ntb.inf.libusbJava.USB;
import ch.ntb.inf.libusbJava.USBException;
/**
* Demo class to demonstrate simple read and write operations to an USB device.<br>

View File

@@ -26,16 +26,16 @@ import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import ch.ntb.usb.Device;
import ch.ntb.usb.LibusbJava;
import ch.ntb.usb.USB;
import ch.ntb.usb.USBException;
import ch.ntb.usb.Usb_Bus;
import ch.ntb.usb.Usb_Config_Descriptor;
import ch.ntb.usb.Usb_Device_Descriptor;
import ch.ntb.usb.Utils;
import ch.ntb.usb.testApp.AbstractDeviceInfo;
import ch.ntb.usb.testApp.AbstractDeviceInfo.TransferMode;
import ch.ntb.inf.libusbJava.Device;
import ch.ntb.inf.libusbJava.LibusbJava;
import ch.ntb.inf.libusbJava.USB;
import ch.ntb.inf.libusbJava.USBException;
import ch.ntb.inf.libusbJava.Usb_Bus;
import ch.ntb.inf.libusbJava.Usb_Config_Descriptor;
import ch.ntb.inf.libusbJava.Usb_Device_Descriptor;
import ch.ntb.inf.libusbJava.Utils;
import ch.ntb.inf.libusbJava.testApp.AbstractDeviceInfo;
import ch.ntb.inf.libusbJava.testApp.AbstractDeviceInfo.TransferMode;
public class DeviceTest {

View File

@@ -21,14 +21,14 @@ import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import ch.ntb.usb.Device;
import ch.ntb.usb.LibusbJava;
import ch.ntb.usb.USB;
import ch.ntb.usb.USBException;
import ch.ntb.usb.Usb_Bus;
import ch.ntb.usb.Utils;
import ch.ntb.usb.testApp.AbstractDeviceInfo;
import ch.ntb.usb.testApp.AbstractDeviceInfo.TransferMode;
import ch.ntb.inf.libusbJava.Device;
import ch.ntb.inf.libusbJava.LibusbJava;
import ch.ntb.inf.libusbJava.USB;
import ch.ntb.inf.libusbJava.USBException;
import ch.ntb.inf.libusbJava.Usb_Bus;
import ch.ntb.inf.libusbJava.Utils;
import ch.ntb.inf.libusbJava.testApp.AbstractDeviceInfo;
import ch.ntb.inf.libusbJava.testApp.AbstractDeviceInfo.TransferMode;
public class MemoryLeakTest {

View File

@@ -7,13 +7,13 @@
*/
package ch.ntb.usb.test;
import ch.ntb.usb.LibusbJava;
import ch.ntb.usb.Usb_Bus;
import ch.ntb.usb.Usb_Config_Descriptor;
import ch.ntb.usb.Usb_Device;
import ch.ntb.usb.Usb_Endpoint_Descriptor;
import ch.ntb.usb.Usb_Interface;
import ch.ntb.usb.Usb_Interface_Descriptor;
import ch.ntb.inf.libusbJava.LibusbJava;
import ch.ntb.inf.libusbJava.Usb_Bus;
import ch.ntb.inf.libusbJava.Usb_Config_Descriptor;
import ch.ntb.inf.libusbJava.Usb_Device;
import ch.ntb.inf.libusbJava.Usb_Endpoint_Descriptor;
import ch.ntb.inf.libusbJava.Usb_Interface;
import ch.ntb.inf.libusbJava.Usb_Interface_Descriptor;
/**
* This class replicates the code from testlibusb.c supplied in the

View File

@@ -7,8 +7,8 @@
*/
package ch.ntb.usb.test.devices;
import ch.ntb.usb.USB;
import ch.ntb.usb.testApp.AbstractDeviceInfo;
import ch.ntb.inf.libusbJava.USB;
import ch.ntb.inf.libusbJava.testApp.AbstractDeviceInfo;
public class AT90USB1287 extends AbstractDeviceInfo {

View File

@@ -7,8 +7,8 @@
*/
package ch.ntb.usb.test.devices;
import ch.ntb.usb.USB;
import ch.ntb.usb.testApp.AbstractDeviceInfo;
import ch.ntb.inf.libusbJava.USB;
import ch.ntb.inf.libusbJava.testApp.AbstractDeviceInfo;
public class CY7C68013A extends AbstractDeviceInfo {

View File

@@ -7,7 +7,7 @@
*/
package ch.ntb.usb.test.devices;
import ch.ntb.usb.testApp.AbstractDeviceInfo;
import ch.ntb.inf.libusbJava.testApp.AbstractDeviceInfo;
public class MX500 extends AbstractDeviceInfo {

View File

@@ -7,7 +7,7 @@
*/
package ch.ntb.usb.test.devices;
import ch.ntb.usb.testApp.AbstractDeviceInfo;
import ch.ntb.inf.libusbJava.testApp.AbstractDeviceInfo;
public class MousePlus extends AbstractDeviceInfo {

View File

@@ -1,13 +1,13 @@
################################################################
# define the usb test class for test/ch.ntb.usb.DeviceTest here
# it must implement ch.ntb.usb.AbstractDeviceInfo
# define the usb test class for test/ch.ntb.inf.libusbJava.DeviceTest here
# it must implement ch.ntb.inf.libusbJava.AbstractDeviceInfo
################################################################
# Atmel AVR AT90USB1287
testdeviceInfo=ch.ntb.usb.test.devices.AT90USB1287
testdeviceInfo=ch.ntb.inf.libusbJava.test.devices.AT90USB1287
# Cypress FX2 CY7C68013A
#testdeviceInfo=ch.ntb.usb.test.devices.CY7C68013A
#testdeviceInfo=ch.ntb.inf.libusbJava.test.devices.CY7C68013A
# MX500 Mouse
#testdeviceInfo=ch.ntb.usb.test.devices.MX500
#testdeviceInfo=ch.ntb.inf.libusbJava.test.devices.MX500
# Logitech Notebook Mouse Plus
#testdeviceInfo=ch.ntb.usb.test.devices.MousePlus
#testdeviceInfo=ch.ntb.inf.libusbJava.test.devices.MousePlus

View File

@@ -64,7 +64,7 @@
<XPD:REF name="Model">BWFMxN62oEGNP+kKcODiEgAA</XPD:REF>
<XPD:OBJ name="NameCompartment" type="UMLNameCompartmentView" guid="esczXY/2mk6uGBG2OciBTgAA">
<XPD:OBJ name="NameLabel" type="LabelView" guid="w8ATpis9z0qGD3X44EmcUgAA">
<XPD:ATTR name="Text" type="string">ch.ntb.usb</XPD:ATTR>
<XPD:ATTR name="Text" type="string">ch.ntb.inf.libusbJava</XPD:ATTR>
</XPD:OBJ>
<XPD:OBJ name="StereotypeLabel" type="LabelView" guid="KtLxztNaak+48vZTNB7UNwAA">
<XPD:ATTR name="Visible" type="boolean">False</XPD:ATTR>
@@ -1441,7 +1441,7 @@ type Usb_Device
</XPD:OBJ>
<XPD:ATTR name="#OwnedElements" type="integer">16</XPD:ATTR>
<XPD:OBJ name="OwnedElements[0]" type="UMLPackage" guid="BWFMxN62oEGNP+kKcODiEgAA">
<XPD:ATTR name="Name" type="string">ch.ntb.usb</XPD:ATTR>
<XPD:ATTR name="Name" type="string">ch.ntb.inf.libusbJava</XPD:ATTR>
<XPD:REF name="Namespace">+VhQCvPWpkq9N+U+GjchOQAA</XPD:REF>
<XPD:ATTR name="#Views" type="integer">1</XPD:ATTR>
<XPD:REF name="Views[0]">3aqcGmdQBU2yR8XWwbH6wgAA</XPD:REF>