public class CcobJNI extends Object implements CCOBInterface
CCOBInterface.LED| Constructor and Description |
|---|
CcobJNI() |
| 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
|
static void |
main(String[] args) |
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
|
String |
sayHello() |
void |
selectLed(CCOBInterface.LED led)
Select which LED will be turned on (by startExposure, pulseLED etc)
|
void |
setExposureTime(double time)
Duration for use in pulsed mode
|
void |
setLedCurrent(double current)
Sets the current (for all LEDs)
|
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitselectLED, setLEDCurrent@Command(name="sayHello",
description="Says Hello over JNI Bridge")
public String sayHello()
public static void main(String[] args)
@Command(name="init",
description="init")
public void init()
CCOBInterfaceinit in interface CCOBInterface@Command(name="stop",
description="stop")
public void stop()
CCOBInterfacestop in interface CCOBInterfacepublic String version() throws org.lsst.ccs.drivers.commons.DriverException
CCOBInterfaceversion in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic String misc() throws org.lsst.ccs.drivers.commons.DriverException
CCOBInterfacemisc in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic String manu() throws org.lsst.ccs.drivers.commons.DriverException
CCOBInterfacemanu in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic String date() throws org.lsst.ccs.drivers.commons.DriverException
CCOBInterfacedate in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic String device() throws org.lsst.ccs.drivers.commons.DriverException
CCOBInterfacedevice in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic void selectLed(CCOBInterface.LED led) throws org.lsst.ccs.drivers.commons.DriverException
CCOBInterfaceselectLed in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setLedCurrent(double current)
throws org.lsst.ccs.drivers.commons.DriverException
CCOBInterfacesetLedCurrent in interface CCOBInterfacecurrent - Current, in range 0-0.273 (Amps)org.lsst.ccs.drivers.commons.DriverExceptionpublic void setExposureTime(double time)
throws org.lsst.ccs.drivers.commons.DriverException
CCOBInterfacesetExposureTime in interface CCOBInterfacetime - Exposure time (undefined units) (0-65535)org.lsst.ccs.drivers.commons.DriverExceptionpublic void pulse()
throws org.lsst.ccs.drivers.commons.DriverException
CCOBInterfacepulse in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic void shutter()
throws org.lsst.ccs.drivers.commons.DriverException
CCOBInterfaceshutter in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic void startExposure()
throws org.lsst.ccs.drivers.commons.DriverException
CCOBInterfacestartExposure in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic boolean pollEnd()
throws org.lsst.ccs.drivers.commons.DriverException
CCOBInterfacepollEnd in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic CCOBDataRead getAdcValues() throws org.lsst.ccs.drivers.commons.DriverException
CCOBInterfacegetAdcValues in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getAdcPhotoDiode()
throws org.lsst.ccs.drivers.commons.DriverException
CCOBInterfacegetAdcPhotoDiode in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic void ledOn(int Led,
int On)
throws org.lsst.ccs.drivers.commons.DriverException
CCOBInterfaceledOn in interface CCOBInterfaceLed - LED numberOn - On stateorg.lsst.ccs.drivers.commons.DriverExceptionpublic boolean readButton(int Button)
throws org.lsst.ccs.drivers.commons.DriverException
CCOBInterfacereadButton in interface CCOBInterfaceButton - Button numberorg.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2018 LSST. All rights reserved.