mirror of https://github.com/rusefi/dfu_java.git
17 lines
365 B
Java
17 lines
365 B
Java
package com.rusefi.dfu;
|
|
|
|
import java.nio.ByteBuffer;
|
|
|
|
public interface DfuConnection {
|
|
int SECOND = 1000;
|
|
int DFU_TIMEOUT = 10 * DfuConnection.SECOND;
|
|
|
|
FlashRange getFlashRange();
|
|
|
|
int getTransferSize();
|
|
|
|
int receiveData(DfuCommmand command, short value, ByteBuffer data);
|
|
|
|
int sendData(DfuCommmand command, short value, ByteBuffer data);
|
|
}
|