MetaWear C++ API  0.18.0
C++ implementation of the MetaWear protocol
Functions
dataprocessor.h File Reference

Interacts with an onboard data processor. More...

#include "dataprocessor_fwd.h"
#include "metawear/core/datasignal_fwd.h"
#include "metawear/core/metawearboard_fwd.h"
#include "metawear/platform/dllmarker.h"

Go to the source code of this file.

Functions

METAWEAR_API MblMwDataSignalmbl_mw_dataprocessor_get_state_data_signal (const MblMwDataProcessor *processor)
 Get the data signal representing a processor's internal state. More...
 
METAWEAR_API void mbl_mw_dataprocessor_remove (MblMwDataProcessor *processor)
 Removes a data processor and its consumers from the board. More...
 
METAWEAR_API uint8_t mbl_mw_dataprocessor_get_id (const MblMwDataProcessor *processor)
 Retrieves the id value identifying the processor. More...
 
METAWEAR_API MblMwDataProcessormbl_mw_dataprocessor_lookup_id (const MblMwMetaWearBoard *board, uint8_t id)
 Looks up the MblMwDataProcessor object corresponding to the id. More...
 

Detailed Description

Interacts with an onboard data processor.

Function Documentation

◆ mbl_mw_dataprocessor_get_id()

METAWEAR_API uint8_t mbl_mw_dataprocessor_get_id ( const MblMwDataProcessor processor)

Retrieves the id value identifying the processor.

Parameters
processorProcessor to lookup
Returns
Numerical id of the processor

◆ mbl_mw_dataprocessor_get_state_data_signal()

METAWEAR_API MblMwDataSignal* mbl_mw_dataprocessor_get_state_data_signal ( const MblMwDataProcessor processor)

Get the data signal representing a processor's internal state.

Processors that have an internal state are: accumulator, buffer, counter, delta, and passthrough.

Parameters
processorProcessor to access
Returns
Pointer to the data signal, null if the processor does not have an internal state

◆ mbl_mw_dataprocessor_lookup_id()

METAWEAR_API MblMwDataProcessor* mbl_mw_dataprocessor_lookup_id ( const MblMwMetaWearBoard board,
uint8_t  id 
)

Looks up the MblMwDataProcessor object corresponding to the id.

Parameters
boardBoard to search on
idNumerical id to lookup
Returns
Data processor object identified by the id, null if no object is found

◆ mbl_mw_dataprocessor_remove()

METAWEAR_API void mbl_mw_dataprocessor_remove ( MblMwDataProcessor processor)

Removes a data processor and its consumers from the board.

Parameters
processorProcessor to remove