public interface GenerationListener extends DeviceEventListener, AsyncErrorHandler<PWMChannel>
GenerationListenerinterface defines methods for getting notified of pulse generation completion conditions (i.e. maximum generated pulse count value reached) as well as device errors.
GenerationListener can be registered using the
PWMChannel.startGeneration(int, int, GenerationListener)
void pulseGenerationCompleted(GenerationEvent event)
The corresponding pulse generation operation being completed another asynchronous pulse generation
operation may be started from within this method (see
PWMChannel.startGeneration(int). This may be used to
generate a subsequent pulse train with different specifications: pulse period and/or width/duty cycle.
event- the event that occurred.
void failed(java.lang.Throwable exception, PWMChannel source)
Copyright © 2012, 2015, Oracle and/or its affiliates. All rights reserved.