|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ionetrics.lib.annotatorcomm.AnnotatorComm
com.ionetrics.lib.annotatorcomm.annotatorjr.AnnotatorJr
public class AnnotatorJr
Annotator Jr Communication, Command, and Control over FTD2XX USB.
Field Summary | |
---|---|
static int |
ANNOTATOR_JR_USB_PID
Annotator Jr USB Product ID |
static int |
IONETRICS_USB_VID
Ionetrics USB Vendor ID |
Fields inherited from class com.ionetrics.lib.annotatorcomm.AnnotatorComm |
---|
ETX, MAX_NAME_LEN, STX |
Constructor Summary | |
---|---|
AnnotatorJr(FTD2XXDeviceInfo deviceInfo)
Construct an AnnotatorJr from FTD2XXDeviceInfo. |
Method Summary | |
---|---|
void |
clearTimeTags()
Clear all timestamps stored in the current storage destination. |
void |
close()
Close the FTD2XX interface to the Annotator. |
int |
getRtcCalibration()
Get the RTC calibration value. |
int |
getTimestampCount()
Get the number of timestamps stored in the currently selected destination. |
TimestampDestination |
getTimeStampDestination()
Get the timestamp storage destination. |
TriggerTimestamp[] |
getTimestamps(int first,
int last)
Get the requested timestamps from the current storage destination. |
TriggerMode |
getTriggerMode()
Get the event trigger mode. |
void |
saveRtcCalibration()
Save the RTC calibration value to flash. |
static FTD2XXDeviceInfo[] |
scanForAnnotatorJrs()
Scan FTD2XX devices for the Ionetrics VID and Annotator Jr PID. |
void |
setRtcCalibration(int cal)
Set the RTC calibration value. |
void |
setRtcCalibrationMode(boolean isEnabled)
Enter and exit RTC calibration mode. |
void |
setTimeStampDestination(TimestampDestination destination)
Set the timestamp storage destination. |
void |
setTriggerMode(TriggerMode triggerMode)
Set the event trigger mode. |
protected void |
signal(ResponseMessage rspmsg)
Signal that a response message has been read and needs tending. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int IONETRICS_USB_VID
public static final int ANNOTATOR_JR_USB_PID
Constructor Detail |
---|
public AnnotatorJr(FTD2XXDeviceInfo deviceInfo) throws java.io.IOException
deviceInfo
- device infomation
java.io.IOException
- thrown on failure to openMethod Detail |
---|
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class AnnotatorComm
java.io.IOException
- failure to closeprotected void signal(ResponseMessage rspmsg)
signal
in class AnnotatorComm
rspmsg
- new response messagepublic TriggerMode getTriggerMode() throws java.io.IOException
java.io.IOException
- failure to get modepublic void setTriggerMode(TriggerMode triggerMode) throws java.io.IOException
triggerMode
- event trigger mode
java.io.IOException
- failure to set modepublic TimestampDestination getTimeStampDestination() throws java.io.IOException
java.io.IOException
- failure to get destinationpublic void setTimeStampDestination(TimestampDestination destination) throws java.io.IOException
destination
- storage destination
java.io.IOException
- failure to set destinationpublic int getTimestampCount() throws java.io.IOException
java.io.IOException
- failure to get number of timestampspublic TriggerTimestamp[] getTimestamps(int first, int last) throws java.io.IOException
first
- index of the first timestamp to getlast
- index of the last timestamp to get
java.io.IOException
- failure to retrieve timestampspublic void clearTimeTags() throws java.io.IOException
java.io.IOException
- failure to clear timestampspublic int getRtcCalibration() throws java.io.IOException
java.io.IOException
- failure to get valibration valuepublic void setRtcCalibration(int cal) throws java.io.IOException
cal
- calibration value
java.io.IOException
- failure to get calibration valuepublic void saveRtcCalibration() throws java.io.IOException
java.io.IOException
- failure to save calibration valuepublic void setRtcCalibrationMode(boolean isEnabled) throws java.io.IOException
isEnabled
- calibration enable flag
java.io.IOException
- failure to set modepublic static FTD2XXDeviceInfo[] scanForAnnotatorJrs() throws java.io.IOException
java.io.IOException
- thrown on scan failure
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |