|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.lsst.ccs.drivers.ad.Cypress
public class Cypress
Routines to access Cypress EZUSB chip functions on an Analog Devices evaluation board
| Constructor Summary | |
|---|---|
Cypress(org.lsst.ccs.drivers.usb.UsbComm com)
Constructor |
|
| Method Summary | |
|---|---|
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 |
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Cypress(org.lsst.ccs.drivers.usb.UsbComm com)
| Method Detail |
|---|
public void setReset(boolean on)
throws javax.usb.UsbException
on - If true, sets RESET, otherwise clears RESET
javax.usb.UsbException
public int readMemory(int addr,
byte[] data,
int timeout)
throws javax.usb.UsbException
addr - The first address to readdata - The array of bytes to read intotimeout - The maximum time to wait (ms), or 0 for no timeout
javax.usb.UsbException
public int readMemory(int addr,
byte[] data,
int offs,
int leng,
int timeout)
throws javax.usb.UsbException
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 timeout
javax.usb.UsbException
public int writeMemory(int addr,
byte[] data)
throws javax.usb.UsbException
addr - The first address to writedata - The array of bytes to write
javax.usb.UsbException
public int writeMemory(int addr,
byte[] data,
int offs,
int leng)
throws javax.usb.UsbException
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 write
javax.usb.UsbException
public void load(String name,
boolean force)
throws javax.usb.UsbException
name - The name of the "hex" file to loadforce - If true, force the load even if memory appears to be
already loaded correctly.
javax.usb.UsbException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||