Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision |
en:software:api_changes [2016/08/23 13:05] – [General changes] stefan | en:software:api_changes [2016/08/23 13:07] – [Helpers] stefan |
---|
Certain helper methods and classes simplify usage of synchronous and asynchronous transfers: | Certain helper methods and classes simplify usage of synchronous and asynchronous transfers: |
* [[ http://www.ztex.de/firmware-kit/docs/java/ztex/Ztex1.html#bulkRead(int, java.nio.ByteBuffer, long)|Ztex1.bulkRead(..)]] and [[http://www.ztex.de/firmware-kit/docs/java/ztex/Ztex1.html#bulkWrite(int, java.nio.ByteBuffer, long)|Ztex1.bulkWrite(..)]] can be used for syncronous transfer. (Avoid the byte array variants. The will be marked as deprecated soon.) | * [[ http://www.ztex.de/firmware-kit/docs/java/ztex/Ztex1.html#bulkRead(int, java.nio.ByteBuffer, long)|Ztex1.bulkRead(..)]] and [[http://www.ztex.de/firmware-kit/docs/java/ztex/Ztex1.html#bulkWrite(int, java.nio.ByteBuffer, long)|Ztex1.bulkWrite(..)]] can be used for syncronous transfer. (Avoid the byte array variants. The will be marked as deprecated soon.) |
* [[http://www.ztex.de/firmware-kit/docs/java/ztex/Ztex1.html#allocateByteBuffer(byte[])|Ztex1.allocateByteBuffer(...)]] Creates ''ByteBuffer''s and initalizes them with content of a byte array. | * [[http://www.ztex.de/firmware-kit/docs/java/ztex/Ztex1.html#allocateByteBuffer(byte[])|Ztex1.allocateByteBuffer(...)]] Creates ''ByteBuffer'''s and initalizes them with content of a byte array. |
* Helper class for asynchronous transfers, see the ''memfifo'' example for a demonstartion of ther usage | * Helper class for asynchronous transfers, see the ''memfifo'' example for a demonstration of their usage |
* [[http://www.ztex.de/firmware-kit/docs/java/ztex/ZtexEventHandler.html|ZtexEventHandler]] implements an event handling thread | * [[http://www.ztex.de/firmware-kit/docs/java/ztex/ZtexEventHandler.html|ZtexEventHandler]] implements an event handling thread |
* [[http://www.ztex.de/firmware-kit/docs/java/ztex/ZtexUsbReader.html|ZtexBulkReader]] implements asynchronous bulk and interrupt read transfers | * [[http://www.ztex.de/firmware-kit/docs/java/ztex/ZtexUsbReader.html|ZtexBulkReader]] implements asynchronous bulk and interrupt read transfers |