public interface FirmwareProgrammer
Modifier and Type | Method and Description |
---|---|
void |
finish()
Finishes the firmware update procedure.
|
void |
initialize()
Initializes a firmware update procedure.
|
void |
initialize(int firmwareSize)
Initializes a firmware update procedure.
|
void |
reset()
Resets the device.
|
void |
write(byte[] data,
int offset,
int length)
Writes a chunk of firmware data as part of the firmware update.
|
void initialize() throws java.io.IOException
initialize(int)
should be used instead.java.io.IOException
- if an I/O error occurredvoid initialize(int firmwareSize) throws java.io.IOException
initialize()
should be used instead.firmwareSize
- the size of the firmware datajava.io.IOException
- if an I/O error occurredjava.lang.IllegalArgumentException
- if firmwareSize is zero or a negative integervoid write(byte[] data, int offset, int length) throws java.io.IOException
data
- the firmware data chunkoffset
- the offset in the arraylength
- the number of bytes to writejava.io.IOException
- if an I/O error occurredvoid finish() throws java.io.IOException
java.io.IOException
- if an I/O error occurredvoid reset() throws java.io.IOException
java.io.IOException
- if an I/O error occurred