|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AEMonitorInterface
Defines interface for an AE monitor.
Field Summary |
---|
Fields inherited from interface net.sf.jaer.hardwareinterface.usb.USBInterface |
---|
PID_THESYCON_END, PID_THESYCON_START, VID_THESYCON |
Method Summary | |
---|---|
AEPacketRaw |
acquireAvailableEventsFromDriver()
Gets available events from driver. |
void |
addAEListener(AEListener listener)
add a PropertyChangeListener for new events |
int |
getAEBufferSize()
Returns the size of the host buffer. |
AEChip |
getChip()
Sets the AEChip that this interface is acquiring events for |
int |
getEstimatedEventRate()
Returns estimate of present event rate on this interface |
AEPacketRaw |
getEvents()
returns the last events acquired by acquireAvailableEventsFromDriver() |
int |
getMaxCapacity()
Returns max capacity of this interface in events/sec |
int |
getNumEventsAcquired()
Returns the number of events acquired by the last call to acquireAvailableEventsFromDriver() |
int |
getTimestampTickUs()
|
boolean |
isEventAcquisitionEnabled()
|
boolean |
overrunOccurred()
Is true if an overrun occured in the driver the last time acquireAvailableEventsFromDriver() was called. |
void |
removeAEListener(AEListener listener)
remove a PropertyChangeListener for new events |
void |
resetTimestamps()
resets the timestamps to start at zero |
void |
setAEBufferSize(int AEBufferSize)
Sets the size in events of the host buffer. |
void |
setChip(AEChip chip)
Sets the AEChip that this interface is acquiring events for |
void |
setEventAcquisitionEnabled(boolean enable)
Enables event acquisition, e.g. |
Methods inherited from interface net.sf.jaer.hardwareinterface.usb.USBInterface |
---|
getDID, getPID, getStringDescriptors, getVID, getVIDPID |
Methods inherited from interface net.sf.jaer.hardwareinterface.HardwareInterface |
---|
close, getTypeName, isOpen, open |
Method Detail |
---|
AEPacketRaw acquireAvailableEventsFromDriver() throws HardwareInterfaceException
HardwareInterfaceException
is thrown if there is an error.
HardwareInterfaceException
- .int getNumEventsAcquired()
acquireAvailableEventsFromDriver()
AEPacketRaw getEvents()
acquireAvailableEventsFromDriver()
void resetTimestamps()
boolean overrunOccurred()
acquireAvailableEventsFromDriver()
was called. This flag is cleared by the next acquireAvailableEventsFromDriver()
.
If there is an overrun, the events grabbed are the most ancient; events after the overrun are discarded. The timestamps continue on but will
probably be lagged behind what they should be.
int getAEBufferSize()
void setAEBufferSize(int AEBufferSize)
This call discards collected events.
AEBufferSize
- size of buffer in eventsvoid setEventAcquisitionEnabled(boolean enable) throws HardwareInterfaceException
enable
- true to start, false to stop
HardwareInterfaceException
boolean isEventAcquisitionEnabled()
void addAEListener(AEListener listener)
listener
- will be called after each acquireAvailableEventsFromDriver()
callvoid removeAEListener(AEListener listener)
listener
- to removeint getMaxCapacity()
int getEstimatedEventRate()
int getTimestampTickUs()
void setChip(AEChip chip)
chip
- the chipAEChip getChip()
|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |