From 3fd8a36f6671281ebc6d776f5d7f2ed5455d234f Mon Sep 17 00:00:00 2001 From: schlaepfer Date: Thu, 10 Nov 2005 07:32:28 +0000 Subject: [PATCH] - 0 replaced by NOP - TODO: insert DUMP_LEN git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@39 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c --- mcdp/src/ch/ntb/mcdp/bdi/BDI332.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/mcdp/src/ch/ntb/mcdp/bdi/BDI332.java b/mcdp/src/ch/ntb/mcdp/bdi/BDI332.java index c7ad9e3..57324b5 100644 --- a/mcdp/src/ch/ntb/mcdp/bdi/BDI332.java +++ b/mcdp/src/ch/ntb/mcdp/bdi/BDI332.java @@ -505,8 +505,8 @@ public class BDI332 { currentIndex++; } // send NOP to get result of last write - sendData[Dispatch.PACKET_DATA_OFFSET + currentIndex * 4] = 0; - sendData[Dispatch.PACKET_DATA_OFFSET + currentIndex * 4 + 1] = 0; + sendData[Dispatch.PACKET_DATA_OFFSET + currentIndex * 4] = NOP; + sendData[Dispatch.PACKET_DATA_OFFSET + currentIndex * 4 + 1] = NOP; data = transmit(STYPE_BDI_17FILL_BYTE_WORD, dataLength * 4 + 2); break; case 2: @@ -524,8 +524,8 @@ public class BDI332 { currentIndex++; } // send NOP to get result of last write - sendData[Dispatch.PACKET_DATA_OFFSET + currentIndex * 4] = 0; - sendData[Dispatch.PACKET_DATA_OFFSET + currentIndex * 4 + 1] = 0; + sendData[Dispatch.PACKET_DATA_OFFSET + currentIndex * 4] = NOP; + sendData[Dispatch.PACKET_DATA_OFFSET + currentIndex * 4 + 1] = NOP; data = transmit(STYPE_BDI_17FILL_BYTE_WORD, dataLength * 4 + 2); break; case 4: @@ -546,9 +546,10 @@ public class BDI332 { currentIndex++; } // send NOP to get result of last write - sendData[Dispatch.PACKET_DATA_OFFSET + currentIndex * 6] = 0; - sendData[Dispatch.PACKET_DATA_OFFSET + currentIndex * 6 + 1] = 0; + sendData[Dispatch.PACKET_DATA_OFFSET + currentIndex * 6] = NOP; + sendData[Dispatch.PACKET_DATA_OFFSET + currentIndex * 6 + 1] = NOP; data = transmit(STYPE_BDI_17FILL_LONG, dataLength * 6 + 2); + System.out.println("FILL: Transmit: " + (dataLength * 6 + 2)); break; default: throw new BDIException("invalid writeMemSize: " + writeMemSize); @@ -585,6 +586,7 @@ public class BDI332 { public static int[] dumpMem(int nofData) throws USBException, DispatchException, BDIException { + // TODO: adjust MAX_NOF_XX_DUMP int dataSize; switch (readMemSize) { case 1: