public abstract static class Macro.Callbacks extends java.lang.Object implements MetaWearController.ModuleCallbacks
Constructor and Description |
---|
Macro.Callbacks() |
Modifier and Type | Method and Description |
---|---|
Module |
getModule()
Get the module the notification represents
|
void |
macroFinished(byte id)
Called when a macro has finished execution
|
void |
receivedMacroCommand(byte[] command)
Called when the bytes of a MetaWear command have been received
|
void |
receivedMacroId(byte id)
Called when the macro ID has been received
|
void |
receivedMacroInfo(byte id,
boolean execOnBoot,
byte numCommands)
Called when information about a macro has been received
|
public final Module getModule()
MetaWearController.ModuleCallbacks
getModule
in interface MetaWearController.ModuleCallbacks
Module
public void receivedMacroId(byte id)
id
- Numerical id referring to the programmed macropublic void receivedMacroInfo(byte id, boolean execOnBoot, byte numCommands)
id
- Macro ID the info is aboutexecOnBoot
- True if the macro will be executed at boot timenumCommands
- Number of commands the macro will executepublic void receivedMacroCommand(byte[] command)
command
- Byte representation of the commandpublic void macroFinished(byte id)
id
- Numerical ID of the macro that finished executing