| Constructor and Description |
|---|
Cypress() |
| Modifier and Type | Method and Description |
|---|---|
void |
load(String name,
boolean force)
Loads memory from a file
|
int |
readMemory(int addr,
byte[] data,
int timeout)
Reads byte array from memory
|
int |
readMemory(int addr,
byte[] data,
int offs,
int leng,
int timeout)
Reads byte array from memory
|
void |
setReset(boolean on)
Sets or clears the RESET state
|
void |
setUsbDevice(org.lsst.ccs.drivers.usb.UsbDevice usb)
Sets the USB device for subsequent operations.
|
int |
writeMemory(int addr,
byte[] data)
Writes byte array to memory
|
int |
writeMemory(int addr,
byte[] data,
int offs,
int leng)
Writes byte array to memory
|
public void setUsbDevice(org.lsst.ccs.drivers.usb.UsbDevice usb)
usb - The USB device to setpublic void setReset(boolean on)
throws org.lsst.ccs.drivers.commons.DriverException
on - If true, sets RESET, otherwise clears RESETorg.lsst.ccs.drivers.commons.DriverExceptionpublic int readMemory(int addr,
byte[] data,
int timeout)
throws org.lsst.ccs.drivers.commons.DriverException
addr - The first address to readdata - The array of bytes to read intotimeout - The maximum time to wait (ms), or 0 for no timeoutorg.lsst.ccs.drivers.commons.DriverExceptionpublic int readMemory(int addr,
byte[] data,
int offs,
int leng,
int timeout)
throws org.lsst.ccs.drivers.commons.DriverException
addr - The first address to readdata - The array of bytes to read intooffs - The offset in data to the first byte to read intoleng - The number of bytes to readtimeout - The maximum time to wait (ms), or 0 for no timeoutorg.lsst.ccs.drivers.commons.DriverExceptionpublic int writeMemory(int addr,
byte[] data)
throws org.lsst.ccs.drivers.commons.DriverException
addr - The first address to writedata - The array of bytes to writeorg.lsst.ccs.drivers.commons.DriverExceptionpublic int writeMemory(int addr,
byte[] data,
int offs,
int leng)
throws org.lsst.ccs.drivers.commons.DriverException
addr - The first address to writedata - The array of bytes to writeoffs - The offset in data to the first byte to write fromleng - The number of bytes to writeorg.lsst.ccs.drivers.commons.DriverExceptionpublic void load(String name, boolean force) throws org.lsst.ccs.drivers.commons.DriverException
name - The name of the "hex" file to loadforce - If true, force the load even if memory appears to be
already loaded correctly.org.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2019 LSST. All rights reserved.