public class EzUsb
extends java.lang.Object
| Constructor and Description |
|---|
EzUsb() |
| Modifier and Type | Method and Description |
|---|---|
static void |
resetFx2(org.usb4java.DeviceHandle handle,
boolean r)
Controls the reset state of a Cypress EZ-USB device.
|
static long |
uploadFirmware(org.usb4java.DeviceHandle handle,
ImgFile imgFile)
Uploads the Firmware to a Cypress EZ-USB device.
|
public static void resetFx2(org.usb4java.DeviceHandle handle,
boolean r)
throws FirmwareUploadException
handle - The handle of the device.r - The reset state (true means reset).FirmwareUploadException - if an error occurred while attempting to control the reset state.public static long uploadFirmware(org.usb4java.DeviceHandle handle,
ImgFile imgFile)
throws FirmwareUploadException
handle - The handle of the device.imgFile - The firmware image.FirmwareUploadException - if an error occurred while attempting to upload the firmware.