public interface Logging extends MetaWearController.ModuleController
Modifier and Type | Interface and Description |
---|---|
static class |
Logging.Callbacks
Callbacks for the logging module
|
static class |
Logging.LogEntry
Wrapper class encapsulating the bytes of a log entry
|
static interface |
Logging.ReferenceTick
Wrapper class pairing a tick count to a timestamp
|
static class |
Logging.Register
Enumeration of registers under the Logging module
|
static interface |
Logging.Trigger
Wrapper class encapsulating trigger attributes
|
Modifier and Type | Method and Description |
---|---|
void |
addReadTrigger(Logging.Trigger triggerObj)
Add a trigger to the logging module that records data from a read operation.
|
void |
addTrigger(Logging.Trigger triggerObj)
Add a trigger to the MetaWear logging module.
|
void |
downloadLog(int nEntries,
int notifyIncrement)
Download the entries from the logging module.
|
void |
readReferenceTick()
Retrieve a tick reference from the MetaWear board.
|
void |
readTotalEntryCount()
Retrieve the total number of log entries available.
|
void |
removeAllTriggers()
Removes all triggers from the logging module
|
void |
removeLogEntries(short nEntries)
Remove entries from the logger.
|
void |
removeTrigger(byte triggerId)
Removes the trigger from the logging module
|
void |
startLogging()
Start logging trigger events.
|
void |
startLogging(boolean overwriteEntries)
Start logging trigger events
|
void |
stopLogging()
Stop logging trigger events
|
void |
triggerIdToObject(byte triggerId)
Converts a trigger id to its corresponding trigger attributes.
|
void startLogging()
void startLogging(boolean overwriteEntries)
overwriteEntries
- True if the logger should overwrite previous entries if fullvoid stopLogging()
void addTrigger(Logging.Trigger triggerObj)
triggerObj
- Trigger to logLogging.Callbacks.receivedTriggerId(byte)
void addReadTrigger(Logging.Trigger triggerObj)
addTrigger(Trigger)
triggerObj
- Trigger to logvoid triggerIdToObject(byte triggerId)
triggerId
- Trigger id to lookupLogging.Callbacks.receivedTriggerObject(Logging.Trigger)
void removeTrigger(byte triggerId)
triggerId
- Unique id of the trigger to removevoid removeAllTriggers()
void readReferenceTick()
void readTotalEntryCount()
void downloadLog(int nEntries, int notifyIncrement)
nEntries
- Number of entries to downloadnotifyIncrement
- How often to send a progress updateLogging.Callbacks.receivedLogEntry(Logging.LogEntry)
,
Logging.Callbacks.receivedDownloadProgress(int)
void removeLogEntries(short nEntries)
Debug.resetAfterGarbageCollect()
method.nEntries
- Number of entries to remove, between [0, 65535]