public abstract static class Timer.Callbacks extends java.lang.Object implements MetaWearController.ModuleCallbacks
Constructor and Description |
---|
Timer.Callbacks() |
Modifier and Type | Method and Description |
---|---|
Module |
getModule()
Get the module the notification represents
|
void |
receivedNotification(byte timerId)
Called when a timer notification is received from the board
|
void |
receivedTimerConfig(int period,
short repeat,
boolean delay)
Called when timer configuration has been received from the board
|
void |
receivedTimerId(byte timerId)
Called when the timer id has been received from the board
|
public final Module getModule()
MetaWearController.ModuleCallbacks
getModule
in interface MetaWearController.ModuleCallbacks
Module
public void receivedTimerId(byte timerId)
timerId
- ID for referring to the specific timer configuration passed in
via Timer.addTimer(int, short, boolean)
public void receivedNotification(byte timerId)
timerId
- Timer ID that is sending the notificationpublic void receivedTimerConfig(int period, short repeat, boolean delay)
period
- repeat
- delay
-