|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.lsst.ccs.drivers.ad.Cypress
org.lsst.ccs.drivers.ad.SpiBus
public abstract class SpiBus
Routines to access a SPI device on an Analog Devices evaluation board
| Constructor Summary | |
|---|---|
SpiBus(org.lsst.ccs.drivers.usb.UsbComm com)
Constructor |
|
| Method Summary | |
|---|---|
abstract int |
commReg(int regnum,
boolean read)
Generates communications register value |
int |
getRdyTimeout(int period)
Gets the RDY timeout period |
void |
load(boolean force)
Loads memory from standard file |
int |
readRegister(int regnum,
int size)
Reads a register |
void |
setRdyTimeout(int period)
Sets the RDY timeout period |
void |
updateRegister(int regnum,
int size,
int mask,
int value)
Updates a register |
void |
writeRegister(int regnum,
int size,
int value)
Writes a register |
| Methods inherited from class org.lsst.ccs.drivers.ad.Cypress |
|---|
load, readMemory, readMemory, setReset, writeMemory, writeMemory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpiBus(org.lsst.ccs.drivers.usb.UsbComm com)
throws javax.usb.UsbException
javax.usb.UsbException| Method Detail |
|---|
public abstract int commReg(int regnum,
boolean read)
regnum - The register number.read - True for a read operation, false for a write.
public void setRdyTimeout(int period)
period - The timeout period in units of ~82 microseconds, up
to a maximum of 65535.public int getRdyTimeout(int period)
public int readRegister(int regnum,
int size)
throws javax.usb.UsbException
regnum - The register to readsize - The register size (bytes)
javax.usb.UsbException
public void writeRegister(int regnum,
int size,
int value)
throws javax.usb.UsbException
regnum - The register to writesize - The register size (bytes)value - The value to write
javax.usb.UsbException
public void updateRegister(int regnum,
int size,
int mask,
int value)
throws javax.usb.UsbException
regnum - The register to updatesize - The register size (bytes)mask - The mask of bits to updatevalue - The value to write, under the mask
javax.usb.UsbException
public void load(boolean force)
throws javax.usb.UsbException
force - 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 | ||||||||