public interface DataProcessor extends MetaWearController.ModuleController
Modifier and Type | Interface and Description |
---|---|
static class |
DataProcessor.Callbacks
Callbacks for the data processor module
|
static interface |
DataProcessor.Filter
Wrapper object to encapsulate the attributes of a filter
|
static interface |
DataProcessor.FilterConfig
Wrapper object to encapsulate the configuration of a filter
|
static class |
DataProcessor.FilterType
Enumeration of filters
|
static class |
DataProcessor.Register |
Modifier and Type | Method and Description |
---|---|
void |
addFilter(Logging.Trigger trigger,
DataProcessor.FilterConfig config)
Adds a filter that operates on the trigger output.
|
void |
addReadFilter(Logging.Trigger trigger,
DataProcessor.FilterConfig config)
Add a filter that operates on date received from a read operation.
|
void |
chainFilters(byte srcFilterId,
byte srcSize,
DataProcessor.FilterConfig config)
Takes the output from the source filter as the input of filter being added.
|
void |
disableFilterNotify(byte filterId)
Disable notifications on a filter output
|
void |
disableModule()
Disable the data processor module
|
void |
enableFilterNotify(byte filterId)
Enable notifications on a filter output.
|
void |
enableModule()
Enable the data processor module
|
void |
filterIdToObject(byte filterId)
Reads attributes of the filter id.
|
void |
removeAllFilters()
Remove all filters
|
void |
removeFilter(byte filterId)
Remove a filter
|
void |
resetFilterState(byte filterId)
Resets the internal state of the filter
|
void |
setFilterConfiguration(byte filterId,
DataProcessor.FilterConfig config)
Set the configuration of a filter
|
void |
setFilterState(byte filterId,
byte[] state)
Modify the internal state of the filter.
|
void enableModule()
void disableModule()
void filterIdToObject(byte filterId)
DataProcessor.Callbacks.receivedFilterObject(DataProcessor.Filter)
callback function will be calledfilterId
- ID of the filter to lookupvoid chainFilters(byte srcFilterId, byte srcSize, DataProcessor.FilterConfig config)
DataProcessor.Callbacks.receivedFilterId(byte)
callback function will be called with a user id representing the new filtersrcFilterId
- ID of the filter to use an the inputsrcSize
- How many bytes the filter output is, between [1, 8] bytesconfig
- Configuration of the filter consuming the datavoid addFilter(Logging.Trigger trigger, DataProcessor.FilterConfig config)
DataProcessor.Callbacks.receivedFilterId(byte)
callback function will be called
with a user id representing the new filtertrigger
- Source trigger to filter data fromconfig
- Configuration of the filter to addvoid addReadFilter(Logging.Trigger trigger, DataProcessor.FilterConfig config)
#addFilter(Trigger, FilterConfig)
trigger
- Source trigger to filter data fromconfig
- Configuration of the filter to addvoid setFilterConfiguration(byte filterId, DataProcessor.FilterConfig config)
filterId
- ID of the filter to modifyconfig
- New configuration of the filtervoid resetFilterState(byte filterId)
filterId
- ID of the filter to resetvoid setFilterState(byte filterId, byte[] state)
filterId
- ID of the filter to modifystate
- New state for the filter to usevoid removeFilter(byte filterId)
filterId
- User id of the filtervoid removeAllFilters()
void enableFilterNotify(byte filterId)
DataProcessor.Callbacks.receivedFilterOutput(byte, byte[])
functionfilterId
- User id of the filtervoid disableFilterNotify(byte filterId)
filterId
- User id of the filter