public class RaspiSPIManipulator extends SimpleManipulator
SimpleDataSource.NameEditorData
DataSource.Writable
cvsRev
UPDATE_DISPLAYED_VALUE, VALUE_INPUT
customTimer, EXPORT_READ_ONLY, EXPORT_READ_WRITE, NO_EXPORT, requiresSyncWrite, sharedTimer, syncWriteTimeout, timebase
autoSuspend, AUTOSUSPEND_DEFAULT, AUTOSUSPEND_NEVER, AUTOSUSPEND_NO_LISTENERS, AUTOSUSPEND_NO_LISTENERS_AND_NO_SOURCES, colorHi, colorHiHi, colorLo, colorLoLo, colorNormal, connectors, consoleLogger, currentColor, currentValue, debugLevel, DEFAULT_AUTOSUSPEND, dontConnect, gwtLog, hardSuspended, popupLogger, PRIMARYOUTPORTNAME, sendColors, stopped, suspended, timedPopupLogger, traceLogger, valueHi, valueHiHi, valueLo, valueLoLo
Constructor and Description |
---|
RaspiSPIManipulator() |
Modifier and Type | Method and Description |
---|---|
int |
getChannel() |
int |
getMode() |
int |
getSpeed() |
double |
parseMAX31856(byte[] bytes) |
double |
parseMAX31856CJT(byte[] bytes) |
byte |
rwByte(byte addr,
byte data) |
byte |
rwByte(int addr,
byte data) |
byte[] |
rwBytes(byte addr,
byte[] data) |
void |
setChannel(int channel) |
void |
setMode(int mode) |
void |
setSpeed(int speed) |
void |
start()
By default this method will call
resume . |
void |
stop()
By default this method will call
suspend . |
void |
trigger(ValueChangedEvent newEvent) |
void |
valueInput(ValueChangedEvent newEvent)
This method is called by beans and other data sources to set the value of this server.
|
getDefaultQualityForLocation
getInPortNames, getStaticLocationFor, setBooleanValue, setBoolValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue, toString, valueChanged
addConnector, addConnector, addDataSource, addPropertyChangeListener, addValueChangedListener, addVetoableChangeListener, authenticatedClientRequest, clientRequest, clientResponse, destroy, determineSuspendedStatus, getClassLicenseManager, getContainer, getCustomTimer, getDataSource, getDataSources, getDisplayName, getExportCriteria, getExposeComponentConnections, getName, getOutPortNames, getPullFromServers, getPushData, getPushName, getPushToServers, getServerListData, getTimebase, getTrace, isActive, isScreenLocal, refreshCurrentValue, removeConnector, removeDataSource, removePropertyChangeListener, removeValueChangedListener, removeVetoableChangeListener, requestSyncWrite, setAutoSuspend, setClassLicenseManager, setContainer, setCustomTimer, setDataSourceName, setExportCriteria, setExposeComponentConnections, setName, setPullFromServers, setPushData, setPushName, setPushToServers, setScreenLocal, setServerListData, setTimebase, setTrace, setValueObject, tick, VIBEvent
addVIBEventListener, checkScript, executeInScriptInternal, executeScript, executeScriptInternal, executeScriptInternal, getAutoSuspend, getBooleanValue, getBoolValue, getColorHi, getColorHiHi, getColorLo, getColorLoLo, getColorNormal, getConnectors, getConsoleLogger, getCurrentColor, getDataSourceName, getDoubleValue, getFloatValue, getGWTLogger, getIncomingValueObject, getInScript, getIntValue, getLongValue, getParent, getPopupLogger, getScript, getScriptEngine, getSendColors, getSources, getStringValue, getSyncWriteTimeout, getTimedPopupLogger, getTraceLogger, getValueHi, getValueHiHi, getValueLo, getValueLoLo, getValueObject, init, isHardSuspended, isRunning, isSendOnlyChangedValuesDefault, isSuspended, logException, logGWT, logGWT, logMessage, logTrace, n2sortConnectors, performScriptSubstitutions, popupMessage, post, removeConnector, removeVIBEventListener, replaceConnectors, scriptExtensionSubstition, setColorHi, setColorHiHi, setColorLo, setColorLoLo, setColorNormal, setConsoleLogger, setGWTLogger, setHardSuspended, setInScript, setParent, setPopupLogger, setScript, setSendColors, setSendOnlyChangedValuesDefault, setSyncWriteTimeout, setTimedPopupLogger, setTraceLogger, setValueHi, setValueHiHi, setValueLo, setValueLoLo, updateColor, updateListeners, updateListeners, updateListeners, whoAmI
public RaspiSPIManipulator() throws VIBUpdateFailedException
VIBUpdateFailedException
public int getChannel()
public int getMode()
public int getSpeed()
public double parseMAX31856(byte[] bytes)
public double parseMAX31856CJT(byte[] bytes)
public byte rwByte(byte addr, byte data) throws VIBUpdateFailedException
VIBUpdateFailedException
public byte rwByte(int addr, byte data) throws VIBUpdateFailedException
VIBUpdateFailedException
public byte[] rwBytes(byte addr, byte[] data) throws VIBUpdateFailedException
VIBUpdateFailedException
public void setChannel(int channel) throws VIBUpdateFailedException
VIBUpdateFailedException
public void setMode(int mode) throws VIBUpdateFailedException
VIBUpdateFailedException
public void setSpeed(int speed) throws VIBUpdateFailedException
VIBUpdateFailedException
public void start() throws BadParameterException, VIBUpdateFailedException
SimpleDataSource
resume
. At deployment
this method is called after all components have been instantiated, all
connections have been made and the system is ready to run.start
in class SimpleDataSource
BadParameterException
VIBUpdateFailedException
public void stop() throws BadParameterException
SimpleDataSource
suspend
.stop
in class SimpleDataSource
BadParameterException
public void trigger(ValueChangedEvent newEvent) throws VIBUpdateFailedException
VIBUpdateFailedException
public void valueInput(ValueChangedEvent newEvent) throws VIBUpdateFailedException
Manipulator
valueInput
in class Manipulator
newEvent
- The ValueChangedEvent that the bean or data source has sent.VIBUpdateFailedException
Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.