public interface GenerationRoundListener extends OutputRoundListener<PWMChannel,java.nio.IntBuffer>
GenerationRoundListener interface defines methods for getting notified of the completion of the
generation of a sequence of pulses and that more pulses (the width thereof) to generate may be specified. AsyncErrorHandler interface for getting notified of asynchronous I/O errors.
A GenerationRoundListener can be registered using one of the
PWMChannel.startGeneration methods.
PWMChannel.startGeneration| Modifier and Type | Method and Description |
|---|---|
void |
failed(java.lang.Throwable exception,
PWMChannel source)
Invoked when an I/O operation fails.
|
void |
outputRoundCompleted(RoundCompletionEvent<PWMChannel,java.nio.IntBuffer> event)
Invoked when a buffer of DAC output values has been converted and the buffer is available for copying more output
values to convert, or when an output underrun error occurred.
|
void outputRoundCompleted(RoundCompletionEvent<PWMChannel,java.nio.IntBuffer> event)
outputRoundCompleted in interface OutputRoundListener<PWMChannel,java.nio.IntBuffer>event - the event that occurred.void failed(java.lang.Throwable exception,
PWMChannel source)
failed in interface AsyncErrorHandler<PWMChannel>exception - The exception to indicate why the I/O operation failedsource - The PWMChannel instance that generated the error.Copyright © 2012, 2015, Oracle and/or its affiliates. All rights reserved.
Legal Notices