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