public class I2cBus extends Cypress
| Constructor and Description |
|---|
I2cBus() |
| Modifier and Type | Method and Description |
|---|---|
void |
load(boolean force)
Loads memory from standard file
|
int |
readRegister(int regnum)
Reads a register
|
int |
readRegister(int regnum,
byte[] data)
Reads byte array from consecutive registers
|
int |
readRegister2(int regnum)
Reads 16-bit value from a pair of registers
|
int |
readRegister3(int regnum)
Reads 24-bit value from a triplet of registers
|
void |
updateRegister(int regnum,
int mask,
int value)
Updates a register
|
int |
writeRegister(int regnum,
byte[] data)
Writes byte array to consecutive registers
|
void |
writeRegister(int regnum,
int value)
Writes a register
|
load, readMemory, readMemory, setReset, setUsbDevice, writeMemory, writeMemorypublic int readRegister2(int regnum)
throws org.lsst.ccs.drivers.commons.DriverException
regnum - The number of the first (high-order) register to readorg.lsst.ccs.drivers.commons.DriverExceptionpublic int readRegister3(int regnum)
throws org.lsst.ccs.drivers.commons.DriverException
regnum - The number of the first (high-order) register to readorg.lsst.ccs.drivers.commons.DriverExceptionpublic int readRegister(int regnum,
byte[] data)
throws org.lsst.ccs.drivers.commons.DriverException
regnum - The first register to readdata - The array of bytes to read intoorg.lsst.ccs.drivers.commons.DriverExceptionpublic int readRegister(int regnum)
throws org.lsst.ccs.drivers.commons.DriverException
regnum - The register to readorg.lsst.ccs.drivers.commons.DriverExceptionpublic int writeRegister(int regnum,
byte[] data)
throws org.lsst.ccs.drivers.commons.DriverException
regnum - The first register to writedata - The array of bytes to writeorg.lsst.ccs.drivers.commons.DriverExceptionpublic void writeRegister(int regnum,
int value)
throws org.lsst.ccs.drivers.commons.DriverException
regnum - The register to writevalue - The value to writeorg.lsst.ccs.drivers.commons.DriverExceptionpublic void updateRegister(int regnum,
int mask,
int value)
throws org.lsst.ccs.drivers.commons.DriverException
regnum - The register to updatemask - 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.