public interface CCOBInterface
| Modifier and Type | Interface and Description |
|---|---|
static class |
CCOBInterface.LED |
| Modifier and Type | Method and Description |
|---|---|
String |
date()
The date of compilation of the firmware
|
String |
device()
Identify the device type
|
double |
getAdcPhotoDiode()
Return photodiode ADC values
|
CCOBDataRead |
getAdcValues()
Return housekeeping ADC values.
|
void |
init()
Initializes the interface, should be called before anything else
|
void |
ledOn(int led,
int on)
Turn one of the 4 onboard LED on or off
|
String |
manu()
Manufacturer/developer info from the firmware
|
String |
misc()
Additional firmware details
|
boolean |
pollEnd()
Check to see if the exposure has finished
|
void |
pulse()
Set the mode to pulsed, timed by setExposureTime
|
boolean |
readButton(int button)
Reads the state of one of the 5 buttons
|
void |
selectLed(CCOBInterface.LED led)
Select which LED will be turned on (by startExposure, pulseLED etc)
|
default void |
selectLED(CCOBInterface.LED led)
Deprecated.
|
void |
setExposureTime(double time)
Duration for use in pulsed mode
|
void |
setLedCurrent(double current)
Sets the current (for all LEDs)
|
default void |
setLEDCurrent(double current)
Deprecated.
|
void |
shutter()
Set the mode to shutter (unlimited time, remember to stop it)
|
void |
startExposure()
Turn on the LED based on exposure time and LED current
|
void |
stop()
Closes the interface, should be called at end or before you restart a cycle
|
String |
version()
The version of the firmware
|
void init() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException - If the
initialization failsvoid stop() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionString version() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionString date() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionString misc() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionString manu() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionString device() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionvoid selectLed(CCOBInterface.LED led) throws org.lsst.ccs.drivers.commons.DriverException
led - org.lsst.ccs.drivers.commons.DriverExceptionvoid setLedCurrent(double current)
throws org.lsst.ccs.drivers.commons.DriverException
current - Current, in range 0-0.273 (Amps)org.lsst.ccs.drivers.commons.DriverExceptionvoid setExposureTime(double time)
throws org.lsst.ccs.drivers.commons.DriverException
time - Exposure time (undefined units) (0-65535)org.lsst.ccs.drivers.commons.DriverExceptionvoid pulse()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionvoid shutter()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionvoid startExposure()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionboolean pollEnd()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionCCOBDataRead getAdcValues() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptiondouble getAdcPhotoDiode()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionvoid ledOn(int led,
int on)
throws org.lsst.ccs.drivers.commons.DriverException
led - LED numberon - On stateorg.lsst.ccs.drivers.commons.DriverExceptionboolean readButton(int button)
throws org.lsst.ccs.drivers.commons.DriverException
button - Button numberorg.lsst.ccs.drivers.commons.DriverException@Deprecated default void selectLED(CCOBInterface.LED led) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Deprecated default void setLEDCurrent(double current) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2018 LSST. All rights reserved.