In this release old LibusbJava/libusb-0.1 was replaced by usb4java/libusb-1.0. This required major changes in the source code of the API. The interface changes are kept small but host software has to be ported to usb4java too, see USB Access.
Parameter set changes of methods are not described here. See the API documentation if the compiler produces errors.
A few changes are required in the source code of the host software
import java.nio.*; import org.usb4java.*;
LibusbJava.usb_init(). Now new USB contexts are usually created automatically by ZtexScanBus1.
Ztex1is the superclass of
byteshould be replaced by
ByteBuffer's in order to benefit from improved Java NIO performance.
Certain helper methods and classes simplify usage of synchronous and asynchronous transfers:
ByteBuffer's and initalizes them with content of a byte array.
memfifoexample for a demonstration of their usage
This is the first release with FX3 support. There are a few minor API changes: