MetaWear C++ API  0.20.0
C++ implementation of the MetaWear protocol
Enumerations | Functions
conductance.h File Reference

Interacts with conductance measurement sources. More...

#include "sensor_common.h"

Go to the source code of this file.

Enumerations

enum  MblMwConductanceRange { MBL_MW_CONDUCTANCE_RANGE_50uS = 0 , MBL_MW_CONDUCTANCE_RANGE_100uS , MBL_MW_CONDUCTANCE_RANGE_150uS , MBL_MW_CONDUCTANCE_RANGE_200uS }
 Enumeration of the available conductance measurment ranges.
 

Functions

METAWEAR_API MblMwDataSignalmbl_mw_conductance_get_data_signal (const MblMwMetaWearBoard *board, uint8_t channel)
 Retrieves the data signal representing a conductance source. More...
 
METAWEAR_API uint8_t mbl_mw_conductance_get_num_channels (const MblMwMetaWearBoard *board)
 Retrieve the number of available channels. More...
 
METAWEAR_API void mbl_mw_conductance_calibrate (const MblMwMetaWearBoard *board)
 Trigger the automatic calibration routine. More...
 
METAWEAR_API void mbl_mw_conductance_set_range (MblMwMetaWearBoard *board, MblMwConductanceRange range)
 Sets the conductance measurment mode. More...
 

Detailed Description

Interacts with conductance measurement sources.

Function Documentation

◆ mbl_mw_conductance_calibrate()

METAWEAR_API void mbl_mw_conductance_calibrate ( const MblMwMetaWearBoard board)

Trigger the automatic calibration routine.

Fully self contained and requires no parameters. This should be called at least once after boot

◆ mbl_mw_conductance_get_data_signal()

METAWEAR_API MblMwDataSignal* mbl_mw_conductance_get_data_signal ( const MblMwMetaWearBoard board,
uint8_t  channel 
)

Retrieves the data signal representing a conductance source.

Parameters
boardBoard to retrieve the signal from
channelChannel ID of the conductance source

◆ mbl_mw_conductance_get_num_channels()

METAWEAR_API uint8_t mbl_mw_conductance_get_num_channels ( const MblMwMetaWearBoard board)

Retrieve the number of available channels.

Returns
Number of channel IDs

◆ mbl_mw_conductance_set_range()

METAWEAR_API void mbl_mw_conductance_set_range ( MblMwMetaWearBoard board,
MblMwConductanceRange  range 
)

Sets the conductance measurment mode.

Parameters
boardPointer to the board to modify
rangeRange of the conductance values