|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
org.lsst.ccs.framework.Module
org.lsst.ccs.subsystems.fcs.drivers.CanOpenADC
public class CanOpenADC
This is the driver class for the ADC we use in the FCS test bench and in SINGLE FILTER TEST CAN-CBX-AI814
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.lsst.ccs.framework.Module |
|---|
org.lsst.ccs.framework.Module.ValueUpdate |
| Field Summary | |
|---|---|
static double |
adcVoltsPerBit
One bit read on the input of the ADC represents 0.3125 mV |
static double |
waterFreezeTemp
|
| Fields inherited from class org.lsst.ccs.framework.Module |
|---|
configMethods, log, name, nObserverThreads, registry, tickMillis |
| Constructor Summary | |
|---|---|
CanOpenADC()
|
|
CanOpenADC(String nodeID,
String serial)
|
|
| Method Summary | |
|---|---|
String |
getNodeID()
|
String |
getSerialNB()
|
void |
initialize()
|
void |
initModule()
|
boolean |
isConfigOK()
|
String |
readAnalogInput(int inputNB)
Read the analog input whom number is given as a parameter |
String |
readInputs()
|
void |
setNodeID(String nodeID)
|
void |
setSerialNB(String serialNB)
|
String |
toString()
|
| Methods inherited from class org.lsst.ccs.framework.Module |
|---|
change, checkHardware, dropConfigurationContext, getCheckedValueFromConfiguration, getContext, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, newConfigurationContext, notifyChange, notifyChangeWithoutPreliminaryChecks, processUpdate, publishData, publishData, publishData, publishData, register, register, sendToReply, sendToStatus, setBeanName, setContext, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownCommand, shutdownNow, start, startTicking, tick, update |
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.lsst.ccs.subsystems.fcs.common.PieceOfHardware |
|---|
getName |
| Field Detail |
|---|
public static final double adcVoltsPerBit
public static final double waterFreezeTemp
| Constructor Detail |
|---|
public CanOpenADC()
public CanOpenADC(String nodeID,
String serial)
| Method Detail |
|---|
public String getSerialNB()
getSerialNB in interface PieceOfHardwarepublic String getNodeID()
getNodeID in interface PieceOfHardwarepublic void setSerialNB(String serialNB)
serialNB - the serialNB to setpublic void setNodeID(String nodeID)
nodeID - the nodeID to setpublic boolean isConfigOK()
isConfigOK in interface PieceOfHardwarepublic void initModule()
initModule in class org.lsst.ccs.framework.Module
public String readAnalogInput(int inputNB)
throws SDORequestError,
HardwareNotDetectedException
input - : integer from 1 to 8
SDORequestError
HardwareNotDetectedException
public String readInputs()
throws TimeoutException
TimeoutExceptionpublic void initialize()
initialize in interface PieceOfHardwarepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||