
public class CanOpenDIO extends CompactIOModule implements PieceOfHardware
fcslog, hexaValue| Constructor and Description |
|---|
CanOpenDIO() |
CanOpenDIO(String nodeID,
String serial) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkMask()
This methods checks if the mask of the device is the good one.
|
String |
getNodeID() |
String |
getSerialNB() |
String |
initializeHardware()
This methods write some configuration data on the hardware CPU.
|
void |
initModule() |
boolean |
isBooted() |
boolean |
isInitialized() |
String |
readNewHexaValue()
returns the value in hexa of all the sensors connected on the inputs channels of
the device.
|
int |
readNewValue()
This method reads the current value in decimal measured by the hardware
or compute a random value for the simulated sensor, and returns this
current value.
|
void |
setBooted(boolean booted) |
void |
setNodeID(String nodeID) |
void |
setSerialNB(String serialNB) |
String |
toString() |
String |
writeDigitalOutput(int outputNB,
int value)
Write a value to the output of the DAC
|
String |
writeMask()
This methods initialize the CAN-CBX-DIO8 with the mask (value 3) to configure the
2 first channels of the device to be output channel.
|
getHexaValue, getValue, updateValuealias, getComponentDictionariesTree, getComponentTree, getContext, getEnvironment, getMainDictionary, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, percolateSignal, postStart, processUpdate, publishData, publishData, publishData, publishData, publishData, publishData, publishData, sendSignal, sendSignal, sendSignalWithTimeLimit, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownNow, signal, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNamechange, getCheckedValueFromConfiguration, getChildren, getComponentByName, getDictionary, getParent, getParentObject, injectResources, listChildren, notifyChange, notifyChangeWithoutPreliminaryChecks, proceduralWalk, publish, publish, publish, publish, publish, publish, start, treeWalkpublic 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 void setBooted(boolean booted)
setBooted in interface PieceOfHardwarepublic boolean isInitialized()
isInitialized in interface PieceOfHardwarepublic boolean isBooted()
isBooted in interface PieceOfHardwarepublic void initModule()
initModule in class CompactIOModulepublic String writeDigitalOutput(int outputNB, int value) throws SDORequestException, HardwareNotDetectedException
outputNB - in 1..8value - given in decimal format
TODO chnage this : it's not so simple !SDORequestExceptionHardwareNotDetectedExceptionpublic String readNewHexaValue()
readNewHexaValue in class CompactIOModulepublic String writeMask() throws SDORequestException
SDORequestExceptionpublic boolean checkMask()
throws SDORequestException,
ShortResponseToSDORequestException
SDORequestExceptionShortResponseToSDORequestExceptionpublic int readNewValue()
SensorreadNewValue in interface Sensorpublic String initializeHardware() throws FcsHardwareException
PieceOfHardwareinitializeHardware in interface PieceOfHardwareFcsHardwareExceptionCopyright © 2015 LSST. All rights reserved.