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 finish() throws IOException
IOException
- if an I/O error occurredvoid initialize() throws IOException
initialize(int)
should be used instead.IOException
- if an I/O error occurredvoid initialize(int firmwareSize) throws IOException
initialize()
should be used instead.firmwareSize
- the size of the firmware dataIOException
- if an I/O error occurredIllegalArgumentException
- if firmwareSize is zero or a negative integervoid reset() throws IOException
IOException
- if an I/O error occurredvoid write(byte[] data, int offset, int length) throws IOException
data
- the firmware data chunkoffset
- the offset in the arraylength
- the number of bytes to writeIOException
- if an I/O error occurred