- tests for AT90USB1287 and CY7C6813A added
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@192 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
This commit is contained in:
21
java/test/ch/ntb/usb/AT90USB1287.java
Normal file
21
java/test/ch/ntb/usb/AT90USB1287.java
Normal file
@@ -0,0 +1,21 @@
|
||||
package ch.ntb.usb;
|
||||
|
||||
public class AT90USB1287 extends AbstractDeviceInfo {
|
||||
|
||||
@Override
|
||||
public void initValues() {
|
||||
setIdVendor((short) 0x8235);
|
||||
setIdProduct((short) 0x0222);
|
||||
setTimeout(2000);
|
||||
setConfiguration(1);
|
||||
setInterface(0);
|
||||
setAltinterface(-1);
|
||||
setOUT_EP_BULK(0x01);
|
||||
setIN_EP_BULK(0x82);
|
||||
setOUT_EP_INT(0x03);
|
||||
setIN_EP_INT(0x84);
|
||||
setSleepTimeout(2000);
|
||||
setMaxDataSize(USB.FULLSPEED_MAX_BULK_PACKET_SIZE);
|
||||
setMode(WriteMode.Bulk);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user