public interface Macro extends MetaWearController.ModuleController
Modifier and Type | Interface and Description |
---|---|
static class |
Macro.Callbacks
Callbacks for the Macro module
|
static class |
Macro.Register
Enumeration of registers under the macro module
|
Modifier and Type | Method and Description |
---|---|
void |
disableMacros()
Disable the macro module
|
void |
disableProgressNotfiy(byte macroId)
Disable the completed notification.
|
void |
enableMacros()
Enable the macro module
|
void |
enableProgressNotfiy(byte macroId)
Enables a call to the
Macro.Callbacks.macroFinished(byte) callback function which
signifies the macro has finished executing |
void |
eraseMacros()
Erase all macros from the board.
|
void |
executeMacro(byte macroId)
Execute a macro
|
void |
readMacroCommand(byte macroId,
byte commandNum)
Retrieves the byte representation of the command.
|
void |
readMacroInfo(byte macroId)
Retrieves information about the macro.
|
void |
recordMacro(boolean executeOnBoot)
Record a sequence of commands to be executed.
|
void |
stopRecord()
Stop recording the macro
|
void enableMacros()
void disableMacros()
void recordMacro(boolean executeOnBoot)
Macro.Callbacks.receivedMacroId(byte)
callback function will be executed with the unique ID of this macro.executeOnBoot
- True if the macro should be run at boot timevoid stopRecord()
void readMacroInfo(byte macroId)
Macro.Callbacks.receivedMacroInfo(byte, boolean, byte)
callback function will
be calledmacroId
- Macro ID to lookupvoid readMacroCommand(byte macroId, byte commandNum)
Macro.Callbacks.receivedMacroCommand(byte[])
callback function will be
calledmacroId
- Macro ID to lookupcommandNum
- Command number to lookupvoid executeMacro(byte macroId)
macroId
- Macro ID to executevoid enableProgressNotfiy(byte macroId)
Macro.Callbacks.macroFinished(byte)
callback function which
signifies the macro has finished executingmacroId
- Macro ID to receive a notification fromvoid disableProgressNotfiy(byte macroId)
macroId
- Macro ID to disable notifications fromvoid eraseMacros()
Debug.resetAfterGarbageCollect()
method