public abstract class SpiBus extends Cypress
| Constructor and Description |
|---|
SpiBus() |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
commReg(int regnum,
boolean read)
Generates communications register value
|
int |
getRdyTimeout()
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
|
load, readMemory, readMemory, setReset, setUsbDevice, writeMemory, writeMemorypublic 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()
public int readRegister(int regnum,
int size)
throws org.lsst.ccs.drivers.commons.DriverException
regnum - The register to readsize - The register size (bytes)org.lsst.ccs.drivers.commons.DriverExceptionpublic void writeRegister(int regnum,
int size,
int value)
throws org.lsst.ccs.drivers.commons.DriverException
regnum - The register to writesize - The register size (bytes)value - The value to writeorg.lsst.ccs.drivers.commons.DriverExceptionpublic void updateRegister(int regnum,
int size,
int mask,
int value)
throws org.lsst.ccs.drivers.commons.DriverException
regnum - The register to updatesize - The register size (bytes)mask - The mask of bits to updatevalue - The value to write, under the maskorg.lsst.ccs.drivers.commons.DriverExceptionpublic void load(boolean force)
throws org.lsst.ccs.drivers.commons.DriverException
force - 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.