mirror of
https://github.com/eclipse/upm.git
synced 2025-07-05 19:31:15 +03:00
java: added callback functionality
Signed-off-by: Stefan Andritoiu <stefan.andritoiu@intel.com> Signed-off-by: Andrei Vasiliu <andrei.vasiliu@intel.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:

committed by
Mihai Tudor Panu

parent
3e59323abb
commit
323905a215
@ -699,6 +699,15 @@ uint8_t LSM9DS0::getInterruptGen2Src()
|
||||
return readReg(DEV_XM, REG_INT_GEN_2_SRC);
|
||||
}
|
||||
|
||||
#ifdef SWIGJAVA
|
||||
void LSM9DS0::installISR(INTERRUPT_PINS_T intr, int gpio, mraa::Edge level,
|
||||
IsrCallback *cb)
|
||||
{
|
||||
installISR(intr, gpio, level, generic_callback_isr, cb);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
void LSM9DS0::installISR(INTERRUPT_PINS_T intr, int gpio, mraa::Edge level,
|
||||
void (*isr)(void *), void *arg)
|
||||
{
|
||||
|
Reference in New Issue
Block a user