public interface Hardware
| Modifier and Type | Method and Description |
|---|---|
ChannelType |
readChannelType(DataChannel chan)
Reads the data type registers for a data channel of the current record.
|
ChannelUnits |
readChannelUnits(DataChannel chan)
Reads the units registers for a data channel of the current record.
|
double |
readChannelValue(DataChannel chan)
Reads the value registers for a data channel of the current record.
|
Set<DeviceFlag> |
readDeviceFlags()
Reads the device status register.
|
int |
readDeviceMapVersion()
Reads the Modbus map version register.
|
String |
readDeviceModel()
Reads the model designation registers.
|
int |
readRecordCount()
Reads the record count register.
|
java.time.Duration |
readRecordDuration()
Reads the record sample time register.
|
Set<RecordFlag> |
readRecordFlags()
Reads the device status registers of the current record.
|
String |
readRecordLocation()
Reads the registers for location number and location name.
|
java.time.Instant |
readRecordStartTime()
Reads the record timestamp register.
|
void |
writeDeviceCommand(DeviceCommand cmd)
Writes to the device command register.
|
void |
writeRecordIndex(int index)
Writes to the record index register, making the data registers show the contents
of a particular record in its memory.
|
String readDeviceModel() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException - if communication problems arise.int readDeviceMapVersion()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException - if communication problems arise.Set<DeviceFlag> readDeviceFlags() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException - if communication problems arise.void writeDeviceCommand(DeviceCommand cmd) throws org.lsst.ccs.drivers.commons.DriverException
cmd - A valid device command.org.lsst.ccs.drivers.commons.DriverException - if communication problems arise.int readRecordCount()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException - if communication problems arise.void writeRecordIndex(int index)
throws org.lsst.ccs.drivers.commons.DriverException
index - The zero-based record index. 0 .. N - 1, or -1 for the latest record.org.lsst.ccs.drivers.commons.DriverException - if communication problems arise.java.time.Instant readRecordStartTime()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException - if communication problems arise.java.time.Duration readRecordDuration()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException - if communication problems arise.String readRecordLocation() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException - if communication problems arise.Set<RecordFlag> readRecordFlags() throws org.lsst.ccs.drivers.commons.DriverException
RecordFlag.flagsFromMask(int).org.lsst.ccs.drivers.commons.DriverException - if communication problems arise.ChannelType readChannelType(DataChannel chan) throws org.lsst.ccs.drivers.commons.DriverException
chan - The channel.org.lsst.ccs.drivers.commons.DriverException - if communication problems arise or
if the channel type label read from the device isn't what's specified by chan.ChannelUnits readChannelUnits(DataChannel chan) throws org.lsst.ccs.drivers.commons.DriverException
chan - The channel.org.lsst.ccs.drivers.commons.DriverException - if communication problems arise or
if the units label read from the device isn't what's specified by chan.double readChannelValue(DataChannel chan) throws org.lsst.ccs.drivers.commons.DriverException
chan - The channel.org.lsst.ccs.drivers.commons.DriverException - if communication problems arise or
if the channel isn't enabled on the device.Copyright © 2016 LSST. All rights reserved.