Commit Graph

29 Commits

Author SHA1 Message Date
uniederer
667906d5d4 - Bugfix: LibusbJava.cpp, Ln 1288 removed the manipulation of the return value
- Bugfix: Guaranteeing '\0'-Termination of the retrieved C-Strings for all libusb_get_string_descriptor* calls
- Change: The whole interface makes now use of exceptions to pass errors into the java environment instead encoding them into return values.
- Change: Allowing Descriptor strings to have a length of 0

git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@292 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2012-04-12 14:40:09 +00:00
uniederer
82ec219081 - The evaluation of the return value was not correct.
- There is still an issue with this kind of evaluation as there could be handles being 
  valid but have negative number. See Bug ID: 3515055 for details

git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@288 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2012-04-05 11:26:31 +00:00
uniederer
332c16dac7 - Adding Roger Millischers work on the java side making libusb 1.0 run
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@284 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2012-04-04 13:58:33 +00:00
uniederer
ce4ef62456 - Corrected wrong package name in test directory
- Moved demo classes from the test tree to the application tree

git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@279 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2012-03-16 14:56:59 +00:00
uniederer
957a4e193a - Changed package names of the test modules according to the new naming convention
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@278 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2012-03-16 13:09:13 +00:00
uniederer
5ef50110e7 - 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
2012-03-16 12:17:47 +00:00
spandi
519dac0002 busName added to be able to distinguish multiple instances of the same device on Linux
getRegisteredDevice fixed
documentation updates and other minor improvements

git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@273 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2009-05-15 19:04:59 +00:00
spandi
712b5205fe null pointer exception when calling setManufacturer with filename fixed
java doc updates
new test for many read/write operations

git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@271 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2008-12-20 09:25:05 +00:00
spandi
c9e90b2b64 new parameter added to be able to open a specific device based on the filename if there are multiple devices with the same vendor/product id
procedure added to get Usb_Bus object from USB class

git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@268 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2008-06-08 14:35:18 +00:00
spandi
23f1164d44 comment cleanup
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@265 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2008-02-06 21:31:36 +00:00
spandi
4c25d9fed0 Allow 0 size control messages
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@264 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2008-02-06 20:38:24 +00:00
spandi
b6d82b5754 support for 64 bit os (thanks to Jonas)
dummy root bus added to UsbView
tests updated

git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@259 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2007-09-03 19:09:49 +00:00
spandi
7fb6e148ed test class added which replicates the code from testlibusb.c
new test class for MX500 mouse
allow test with only read operations and interrupt and/or bulk transfers

git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@251 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2007-08-11 12:42:19 +00:00
spandi
546472fd21 - file header updated with new project page and e-mail
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@238 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2007-02-05 17:10:46 +00:00
schlaepfer
53fcb783b8 - support for control transfer
- USBException replaced by ArrayIndexOutOfBoundsException on array boundary check

git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@232 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2006-12-19 08:19:30 +00:00
schlaepfer
2d8c8fd9cc - AbstractDeviceInfo moved to ch.ntb.usb.testApp (no more references to test directory)
- initialization parameters for TestDevice added

git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@229 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2006-12-12 12:49:32 +00:00
schlaepfer
07eab220ce - release resources and clear device handle
- tests for invalid parameters

git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@227 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2006-12-06 11:20:45 +00:00
schlaepfer
db8d66c992 - TestApp ported from SWT to Swing
- Start TestApp from UsbView with selected interface
- some refactoring

git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@225 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2006-12-04 08:01:32 +00:00
schlaepfer
1211129d0e - demo files added
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@223 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2006-11-29 11:54:05 +00:00
schlaepfer
af40b52734 - use getter methods to access Usb_xxx instance variables
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@220 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2006-11-29 11:44:06 +00:00
schlaepfer
9ec7c3c53c - project name updated
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@219 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2006-11-28 10:11:36 +00:00
schlaepfer
17dcf1b09d - LibusbWin renamed to LibusbJava
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@208 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2006-11-24 13:05:08 +00:00
schlaepfer
6ab623c1fb - licese information included
- readme added

git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@202 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2006-11-22 09:11:17 +00:00
schlaepfer
c4337f3793 - associate descriptors with device
- update and get descriptors

git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@198 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2006-11-20 08:52:00 +00:00
schlaepfer
77b6d90492 - loading of .configure file fixed for eclipse
- testdevice.properties updated for new package names

git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@197 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2006-11-17 07:51:01 +00:00
schlaepfer
b370621a91 - test package renamed
- export only ch.ntb.usb in manifest file

git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@196 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2006-11-16 16:11:23 +00:00
schlaepfer
f4f7ee4c4a - use a properties file to select the test device
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@194 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2006-11-16 07:12:49 +00:00
schlaepfer
85395e2185 - tests for AT90USB1287 and CY7C6813A added
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@192 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2006-11-15 09:22:36 +00:00
schlaepfer
1ae8222412 - build file updated for .configure
- test directory added

git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@186 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
2006-10-26 13:24:55 +00:00