com.motorola.oem.hapi
Interface GpioInterruptListener
public interface GpioInterruptListener
A listener to Gpio Interrupt events.
Implementing class will be able to register itself to events issued
by Gpio Interrupt.
Code handling interrupt should reside in onInterrupt(int, boolean)
method implementation
Method Summary |
void |
onInterrupt(int gpioNum,
boolean val)
If an implementing object has registered itself to GpioInterrupt object
this method will be called on the appropriate gpio interrupt. |
onInterrupt
void onInterrupt(int gpioNum,
boolean val)
- If an implementing object has registered itself to GpioInterrupt object
this method will be called on the appropriate gpio interrupt.
- Parameters:
gpioNum
- GPIO which issued the interrupt.val
- true if GPIO is High, false otherwise.