public interface GenerationListener extends PeripheralEventListener, AsyncErrorHandler<PWMChannel>
GenerationListenerinterface defines methods for getting notified of pulse generation completion conditions (i.e. maximum generated pulse count value reached) as well as peripheral errors. A
GenerationListenercan be registered using one of the
void pulseGenerationCompleted(GenerationEvent event)
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, 2014, Oracle and/or its affiliates. All rights reserved.