public class LTC2945 extends Object
| Constructor and Description |
|---|
LTC2945(Srp srp,
int adcBase)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
readCurrent(int chan)
Reads a channel's current
|
double |
readVoltage(int chan)
Reads a channel's voltage
|
void |
simSetCurrent(int chan,
double value)
Sets a channel's simulated current
|
void |
simSetVoltage(int chan,
double value)
Sets a channel's simulated voltage
|
public LTC2945(Srp srp, int adcBase)
srp - The srp object to useadcBase - The LTC2945 base addresspublic double readVoltage(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The channel numberorg.lsst.ccs.drivers.commons.DriverException - if the channel number is invalidpublic double readCurrent(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The channel numberorg.lsst.ccs.drivers.commons.DriverException - if the channel number is invalidpublic void simSetVoltage(int chan,
double value)
chan - The channel numbervalue - The voltage to setpublic void simSetCurrent(int chan,
double value)
chan - The channel numbervalue - The current to setCopyright © 2021 LSST. All rights reserved.