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 ch.ntb.usb.*;
by
import java.nio.*; import org.usb4java.*;
LibusbJava.usb_init()
. Now new USB contexts are usually created automatically by ZtexScanBus1.Ztex1
is the superclass of Ztex1v1
.)byte[]
should 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.memfifo
example for a demonstration of their usageThis is the first release with FX3 support. There are a few minor API changes: