MetaWear C++ API  0.18.0
C++ implementation of the MetaWear protocol
Classes | Enumerations | Functions | Variables
accelerometer_bosch.h File Reference

Interacts with the supported Bosch accelerometers, currenly BMI160 and BMA255. More...

#include "sensor_common.h"

Go to the source code of this file.

Classes

struct  MblMwBoschAnyMotion
 Wrapper class encapsulating responses from any motion detection. More...
 

Enumerations

enum  MblMwAccBoschRange { MBL_MW_ACC_BOSCH_RANGE_2G = 0, MBL_MW_ACC_BOSCH_RANGE_4G, MBL_MW_ACC_BOSCH_RANGE_8G, MBL_MW_ACC_BOSCH_RANGE_16G }
 Available g-ranges on the Bosch accelerometers. More...
 
enum  MblMwAccBmi160Odr {
  MBL_MW_ACC_BMI160_ODR_0_78125Hz = 0, MBL_MW_ACC_BMI160_ODR_1_5625Hz, MBL_MW_ACC_BMI160_ODR_3_125Hz, MBL_MW_ACC_BMI160_ODR_6_25Hz,
  MBL_MW_ACC_BMI160_ODR_12_5Hz, MBL_MW_ACC_BMI160_ODR_25Hz, MBL_MW_ACC_BMI160_ODR_50Hz, MBL_MW_ACC_BMI160_ODR_100Hz,
  MBL_MW_ACC_BMI160_ODR_200Hz, MBL_MW_ACC_BMI160_ODR_400Hz, MBL_MW_ACC_BMI160_ODR_800Hz, MBL_MW_ACC_BMI160_ODR_1600Hz
}
 Available ouput data rates on the BMI160 accelerometer.
 
enum  MblMwAccBma255Odr {
  MBL_MW_ACC_BMA255_ODR_15_62Hz = 0, MBL_MW_ACC_BMA255_ODR_31_26Hz, MBL_MW_ACC_BMA255_ODR_62_5Hz, MBL_MW_ACC_BMA255_ODR_125Hz,
  MBL_MW_ACC_BMA255_ODR_250Hz, MBL_MW_ACC_BMA255_ODR_500Hz, MBL_MW_ACC_BMA255_ODR_1000Hz, MBL_MW_ACC_BMA255_ODR_2000Hz
}
 Available ouput data rates on the BMA255 accelerometer.
 
enum  MblMwAccBmi160StepCounterMode { MBL_MW_ACC_BMI160_STEP_COUNTER_MODE_NORMAL = 0, MBL_MW_ACC_BMI160_STEP_COUNTER_MODE_SENSITIVE, MBL_MW_ACC_BMI160_STEP_COUNTER_MODE_ROBUST }
 Operation modes for the step counter algorithm. More...
 
enum  MblMwAccBoschOrientationMode { MBL_MW_ACC_BOSCH_ORIENTATION_MODE_SYMMETRICAL, MBL_MW_ACC_BOSCH_ORIENTATION_MODE_HIGH_ASYMMETRICAL, MBL_MW_ACC_BOSCH_ORIENTATION_MODE_LOW_ASYMMETRICAL }
 Calculation modes controlling the conditions that determine the sensor's orientation. More...
 
enum  MblMwAccBoschTapQuietTime { MBL_MW_ACC_BOSCH_TAP_QUIET_TIME_30ms = 0, MBL_MW_ACC_BOSCH_TAP_QUIET_TIME_20ms }
 Available quiet times for tap detection. More...
 
enum  MblMwAccBoschTapShockTime { MBL_MW_ACC_BOSCH_TAP_SHOCK_TIME_50ms = 0, MBL_MW_ACC_BOSCH_TAP_SHOCK_TIME_75ms }
 Available shock times for tap detection. More...
 
enum  MblMwAccBoschDoubleTapWindow {
  MBL_MW_ACC_BOSCH_DOUBLE_TAP_WINDOW_50ms = 0, MBL_MW_ACC_BOSCH_DOUBLE_TAP_WINDOW_100ms, MBL_MW_ACC_BOSCH_DOUBLE_TAP_WINDOW_150ms, MBL_MW_ACC_BOSCH_DOUBLE_TAP_WINDOW_200ms,
  MBL_MW_ACC_BOSCH_DOUBLE_TAP_WINDOW_250ms, MBL_MW_ACC_BOSCH_DOUBLE_TAP_WINDOW_375ms, MBL_MW_ACC_BOSCH_DOUBLE_TAP_WINDOW_500ms, MBL_MW_ACC_BOSCH_DOUBLE_TAP_WINDOW_700ms
}
 Available windows for double tap detection. More...
 

Functions

METAWEAR_API MblMwDataSignalmbl_mw_acc_bosch_get_acceleration_data_signal (const MblMwMetaWearBoard *board)
 Retrieves the data signal representing acceleration data from a Bosch accelerometer. More...
 
METAWEAR_API MblMwDataSignalmbl_mw_acc_bosch_get_high_freq_acceleration_data_signal (const MblMwMetaWearBoard *board)
 
METAWEAR_API MblMwDataSignalmbl_mw_acc_bosch_get_packed_acceleration_data_signal (const MblMwMetaWearBoard *board)
 Variant of acceleration data that packs multiple data samples into 1 BLE packet to increase the data throughput. More...
 
METAWEAR_API MblMwDataSignalmbl_mw_acc_bmi160_get_step_counter_data_signal (const MblMwMetaWearBoard *board)
 Retrieves the data signal representing data from the BMI160 step counter. More...
 
METAWEAR_API MblMwDataSignalmbl_mw_acc_bmi160_get_step_detector_data_signal (const MblMwMetaWearBoard *board)
 Retrieves the data signal representing data from the BMI160 step detector. More...
 
METAWEAR_API MblMwDataSignalmbl_mw_acc_bosch_get_orientation_detection_data_signal (const MblMwMetaWearBoard *board)
 Retrieves the data signal representing data from the orientation detection algorithm. More...
 
METAWEAR_API MblMwDataSignalmbl_mw_acc_bosch_get_motion_data_signal (const MblMwMetaWearBoard *board)
 Retrieves the data signal representing data from the motion detection algorithm. More...
 
METAWEAR_API MblMwDataSignalmbl_mw_acc_bosch_get_tap_data_signal (const MblMwMetaWearBoard *board)
 Retrieves the data signal representing data from the tap detection algorithm. More...
 
METAWEAR_API void mbl_mw_acc_bmi160_set_odr (MblMwMetaWearBoard *board, MblMwAccBmi160Odr odr)
 Sets the output data rate for the BMI160 accelerometer. More...
 
METAWEAR_API void mbl_mw_acc_bma255_set_odr (MblMwMetaWearBoard *board, MblMwAccBma255Odr odr)
 Sets the output data rate for the BMA255 accelerometer. More...
 
METAWEAR_API void mbl_mw_acc_bosch_set_range (MblMwMetaWearBoard *board, MblMwAccBoschRange range)
 Sets the acceleration range. More...
 
METAWEAR_API void mbl_mw_acc_bosch_write_acceleration_config (const MblMwMetaWearBoard *board)
 Writes the acceleration settings to the sensor. More...
 
METAWEAR_API void mbl_mw_acc_bmi160_set_step_counter_mode (MblMwMetaWearBoard *board, MblMwAccBmi160StepCounterMode mode)
 Sets the operational mode of the step counter. More...
 
METAWEAR_API void mbl_mw_acc_bmi160_enable_step_counter (MblMwMetaWearBoard *board)
 Enables the BMI160 step counter. More...
 
METAWEAR_API void mbl_mw_acc_bmi160_disable_step_counter (MblMwMetaWearBoard *board)
 Disables the BMI160 step counter. More...
 
METAWEAR_API void mbl_mw_acc_bmi160_write_step_counter_config (const MblMwMetaWearBoard *board)
 Writes the step counter configuration to the sensor. More...
 
METAWEAR_API void mbl_mw_acc_bmi160_reset_step_counter (const MblMwMetaWearBoard *board)
 Resets the BMI160 step counter. More...
 
METAWEAR_API void mbl_mw_acc_bmi160_enable_step_detector (const MblMwMetaWearBoard *board)
 Enables the BMI160 step detector. More...
 
METAWEAR_API void mbl_mw_acc_bmi160_disable_step_detector (const MblMwMetaWearBoard *board)
 Disables the BMI160 step detector. More...
 
METAWEAR_API void mbl_mw_acc_bosch_set_orientation_hysteresis (MblMwMetaWearBoard *board, float hysteresis)
 Set the hysteresis offset for portrait/landscape detection. More...
 
METAWEAR_API void mbl_mw_acc_bosch_set_orientation_mode (MblMwMetaWearBoard *board, MblMwAccBoschOrientationMode mode)
 Set the orientation calculation mode. More...
 
METAWEAR_API void mbl_mw_acc_bosch_write_orientation_config (const MblMwMetaWearBoard *board)
 Writes the orientation detection settings to the board. More...
 
METAWEAR_API void mbl_mw_acc_bosch_enable_orientation_detection (const MblMwMetaWearBoard *board)
 Enables orientation detection. More...
 
METAWEAR_API void mbl_mw_acc_bosch_disable_orientation_detection (const MblMwMetaWearBoard *board)
 Disables orientation detection. More...
 
METAWEAR_API void mbl_mw_acc_bosch_set_quiet_time (MblMwMetaWearBoard *board, MblMwAccBoschTapQuietTime time)
 Sets the tap detector's quiet time parameter. More...
 
METAWEAR_API void mbl_mw_acc_bosch_set_shock_time (MblMwMetaWearBoard *board, MblMwAccBoschTapShockTime time)
 Sets the tap detector's shock time parameter. More...
 
METAWEAR_API void mbl_mw_acc_bosch_set_double_tap_window (MblMwMetaWearBoard *board, MblMwAccBoschDoubleTapWindow window)
 Sets the tap detector's double tap window. More...
 
METAWEAR_API void mbl_mw_acc_bosch_set_threshold (MblMwMetaWearBoard *board, float threshold)
 Sets the tap detector's threshold. More...
 
METAWEAR_API void mbl_mw_acc_bosch_write_tap_config (const MblMwMetaWearBoard *board)
 Sets the tap detector's double tap window. More...
 
METAWEAR_API void mbl_mw_acc_bosch_enable_tap_detection (const MblMwMetaWearBoard *board, uint8_t enable_single, uint8_t enable_double)
 Enables the tap detector. More...
 
METAWEAR_API void mbl_mw_acc_bosch_disable_tap_detection (const MblMwMetaWearBoard *board)
 Disable the tap detector. More...
 
METAWEAR_API void mbl_mw_acc_bosch_set_any_motion_count (MblMwMetaWearBoard *board, uint8_t count)
 Sets the any motion detector's count parameter. More...
 
METAWEAR_API void mbl_mw_acc_bosch_set_any_motion_threshold (MblMwMetaWearBoard *board, float threshold)
 Sets the any motion detector's threshold parameter. More...
 
METAWEAR_API void mbl_mw_acc_bosch_write_motion_config (const MblMwMetaWearBoard *board)
 Writes the motion configuration to the remote device. More...
 
METAWEAR_API void mbl_mw_acc_bosch_enable_motion_detection (const MblMwMetaWearBoard *board)
 Enables motion detection. More...
 
METAWEAR_API void mbl_mw_acc_bosch_disable_motion_detection (const MblMwMetaWearBoard *board)
 Disables motion detection. More...
 
METAWEAR_API void mbl_mw_acc_bosch_start (const MblMwMetaWearBoard *board)
 Switches the accelerometer to active mode. More...
 
METAWEAR_API void mbl_mw_acc_bosch_stop (const MblMwMetaWearBoard *board)
 Switches the accelerometer to standby mode. More...
 
METAWEAR_API void mbl_mw_acc_bosch_enable_acceleration_sampling (const MblMwMetaWearBoard *board)
 Enables acceleration sampling. More...
 
METAWEAR_API void mbl_mw_acc_bosch_disable_acceleration_sampling (const MblMwMetaWearBoard *board)
 Disables acceleration sampling. More...
 

Variables

const uint8_t MBL_MW_MODULE_ACC_TYPE_BMI160 = 1
 Constant identifying the BMI160 accelerometer module type.
 
const uint8_t MBL_MW_MODULE_ACC_TYPE_BMA255 = 3
 Constant identifying the BMA255 accelerometer module type.
 

Detailed Description

Interacts with the supported Bosch accelerometers, currenly BMI160 and BMA255.

The BMI160 and BMA255 sensors are identical except for the output data rates. Functions that are generic for both accelerometers have "bosch" in the name whereas functions specific to either accelerometer are contain their model i.e. "bmi160" or "bma255".

Enumeration Type Documentation

◆ MblMwAccBmi160StepCounterMode

Operation modes for the step counter algorithm.

Enumerator
MBL_MW_ACC_BMI160_STEP_COUNTER_MODE_NORMAL 

Recommended for most applications, well balanced between false positives and false negatives.

MBL_MW_ACC_BMI160_STEP_COUNTER_MODE_SENSITIVE 

Recommended for light weighted persons, gives few false negatives but eventually more false positives.

MBL_MW_ACC_BMI160_STEP_COUNTER_MODE_ROBUST 

Gives few false positives but eventually more false negatives.

◆ MblMwAccBoschDoubleTapWindow

Available windows for double tap detection.

Author
Eric Tsai

◆ MblMwAccBoschOrientationMode

Calculation modes controlling the conditions that determine the sensor's orientation.

Author
Eric Tsai
Enumerator
MBL_MW_ACC_BOSCH_ORIENTATION_MODE_SYMMETRICAL 

Default mode.

◆ MblMwAccBoschRange

Available g-ranges on the Bosch accelerometers.

Enumerator
MBL_MW_ACC_BOSCH_RANGE_2G 

+/- 2g

MBL_MW_ACC_BOSCH_RANGE_4G 

+/- 4g

MBL_MW_ACC_BOSCH_RANGE_8G 

+/- 8g

MBL_MW_ACC_BOSCH_RANGE_16G 

+/- 16g

◆ MblMwAccBoschTapQuietTime

Available quiet times for tap detection.

Author
Eric Tsai

◆ MblMwAccBoschTapShockTime

Available shock times for tap detection.

Author
Eric Tsai

Function Documentation

◆ mbl_mw_acc_bma255_set_odr()

METAWEAR_API void mbl_mw_acc_bma255_set_odr ( MblMwMetaWearBoard board,
MblMwAccBma255Odr  odr 
)

Sets the output data rate for the BMA255 accelerometer.

Parameters
boardPointer to the board to modify
odrOutput data rate value to assign

◆ mbl_mw_acc_bmi160_disable_step_counter()

METAWEAR_API void mbl_mw_acc_bmi160_disable_step_counter ( MblMwMetaWearBoard board)

Disables the BMI160 step counter.

Parameters
boardBoard to modify

◆ mbl_mw_acc_bmi160_disable_step_detector()

METAWEAR_API void mbl_mw_acc_bmi160_disable_step_detector ( const MblMwMetaWearBoard board)

Disables the BMI160 step detector.

Parameters
boardPointer to the board to send the command to

◆ mbl_mw_acc_bmi160_enable_step_counter()

METAWEAR_API void mbl_mw_acc_bmi160_enable_step_counter ( MblMwMetaWearBoard board)

Enables the BMI160 step counter.

Parameters
boardBoard to modify

◆ mbl_mw_acc_bmi160_enable_step_detector()

METAWEAR_API void mbl_mw_acc_bmi160_enable_step_detector ( const MblMwMetaWearBoard board)

Enables the BMI160 step detector.

Parameters
boardPointer to the board to send the command to

◆ mbl_mw_acc_bmi160_get_step_counter_data_signal()

METAWEAR_API MblMwDataSignal* mbl_mw_acc_bmi160_get_step_counter_data_signal ( const MblMwMetaWearBoard board)

Retrieves the data signal representing data from the BMI160 step counter.

Parameters
boardPointer to the board to retrieve the signal from
Returns
Pointer to the board's BMI160 step counter data signal

◆ mbl_mw_acc_bmi160_get_step_detector_data_signal()

METAWEAR_API MblMwDataSignal* mbl_mw_acc_bmi160_get_step_detector_data_signal ( const MblMwMetaWearBoard board)

Retrieves the data signal representing data from the BMI160 step detector.

Parameters
boardPointer to the board to retrieve the signal from
Returns
Pointer to the board's BMI160 step detector data signal

◆ mbl_mw_acc_bmi160_reset_step_counter()

METAWEAR_API void mbl_mw_acc_bmi160_reset_step_counter ( const MblMwMetaWearBoard board)

Resets the BMI160 step counter.

Parameters
boardBoard to reset

◆ mbl_mw_acc_bmi160_set_odr()

METAWEAR_API void mbl_mw_acc_bmi160_set_odr ( MblMwMetaWearBoard board,
MblMwAccBmi160Odr  odr 
)

Sets the output data rate for the BMI160 accelerometer.

Parameters
boardPointer to the board to modify
odrOutput data rate value to assign

◆ mbl_mw_acc_bmi160_set_step_counter_mode()

METAWEAR_API void mbl_mw_acc_bmi160_set_step_counter_mode ( MblMwMetaWearBoard board,
MblMwAccBmi160StepCounterMode  mode 
)

Sets the operational mode of the step counter.

Parameters
boardBoard to modify
modeNew operation mode

◆ mbl_mw_acc_bmi160_write_step_counter_config()

METAWEAR_API void mbl_mw_acc_bmi160_write_step_counter_config ( const MblMwMetaWearBoard board)

Writes the step counter configuration to the sensor.

Parameters
boardBoard to write to

◆ mbl_mw_acc_bosch_disable_acceleration_sampling()

METAWEAR_API void mbl_mw_acc_bosch_disable_acceleration_sampling ( const MblMwMetaWearBoard board)

Disables acceleration sampling.

Parameters
boardPointer to the board to send the command to

◆ mbl_mw_acc_bosch_disable_motion_detection()

METAWEAR_API void mbl_mw_acc_bosch_disable_motion_detection ( const MblMwMetaWearBoard board)

Disables motion detection.

Parameters
boardCalling object

◆ mbl_mw_acc_bosch_disable_orientation_detection()

METAWEAR_API void mbl_mw_acc_bosch_disable_orientation_detection ( const MblMwMetaWearBoard board)

Disables orientation detection.

Parameters
boardCalling object

◆ mbl_mw_acc_bosch_disable_tap_detection()

METAWEAR_API void mbl_mw_acc_bosch_disable_tap_detection ( const MblMwMetaWearBoard board)

Disable the tap detector.

Parameters
boardCalling object
windowNew double tap window time

◆ mbl_mw_acc_bosch_enable_acceleration_sampling()

METAWEAR_API void mbl_mw_acc_bosch_enable_acceleration_sampling ( const MblMwMetaWearBoard board)

Enables acceleration sampling.

Parameters
boardPointer to the board to send the command to

◆ mbl_mw_acc_bosch_enable_motion_detection()

METAWEAR_API void mbl_mw_acc_bosch_enable_motion_detection ( const MblMwMetaWearBoard board)

Enables motion detection.

Parameters
boardCalling object

◆ mbl_mw_acc_bosch_enable_orientation_detection()

METAWEAR_API void mbl_mw_acc_bosch_enable_orientation_detection ( const MblMwMetaWearBoard board)

Enables orientation detection.

Parameters
boardCalling object

◆ mbl_mw_acc_bosch_enable_tap_detection()

METAWEAR_API void mbl_mw_acc_bosch_enable_tap_detection ( const MblMwMetaWearBoard board,
uint8_t  enable_single,
uint8_t  enable_double 
)

Enables the tap detector.

Parameters
boardCalling object
enable_single0 to ignore single tap detection, non-zero to detect
enable_double0 to ignore double tap detection, non-zero to detect

◆ mbl_mw_acc_bosch_get_acceleration_data_signal()

METAWEAR_API MblMwDataSignal* mbl_mw_acc_bosch_get_acceleration_data_signal ( const MblMwMetaWearBoard board)

Retrieves the data signal representing acceleration data from a Bosch accelerometer.

Parameters
boardPointer to the board to retrieve the signal from
Returns
Pointer to the board's BMI160 acceleration data signal

◆ mbl_mw_acc_bosch_get_high_freq_acceleration_data_signal()

METAWEAR_API MblMwDataSignal* mbl_mw_acc_bosch_get_high_freq_acceleration_data_signal ( const MblMwMetaWearBoard board)
Deprecated:
As of v0.8.0 and will be removed in v1.0.0.

Use mbl_mw_acc_bosch_get_packed_acceleration_data_signal instead.

◆ mbl_mw_acc_bosch_get_motion_data_signal()

METAWEAR_API MblMwDataSignal* mbl_mw_acc_bosch_get_motion_data_signal ( const MblMwMetaWearBoard board)

Retrieves the data signal representing data from the motion detection algorithm.

Parameters
boardCalling object
Returns
Pointer to Bosch's motion detection data signal

◆ mbl_mw_acc_bosch_get_orientation_detection_data_signal()

METAWEAR_API MblMwDataSignal* mbl_mw_acc_bosch_get_orientation_detection_data_signal ( const MblMwMetaWearBoard board)

Retrieves the data signal representing data from the orientation detection algorithm.

Parameters
boardCalling object
Returns
Pointer to Bosch's orientation detection data signal

◆ mbl_mw_acc_bosch_get_packed_acceleration_data_signal()

METAWEAR_API MblMwDataSignal* mbl_mw_acc_bosch_get_packed_acceleration_data_signal ( const MblMwMetaWearBoard board)

Variant of acceleration data that packs multiple data samples into 1 BLE packet to increase the data throughput.

This data signal cannot be used with data processing or logging, only with streaming.

Returns
Pointer to the data singal

◆ mbl_mw_acc_bosch_get_tap_data_signal()

METAWEAR_API MblMwDataSignal* mbl_mw_acc_bosch_get_tap_data_signal ( const MblMwMetaWearBoard board)

Retrieves the data signal representing data from the tap detection algorithm.

Parameters
boardCalling object
Returns
Pointer to Bosch's tap detection data signal

◆ mbl_mw_acc_bosch_set_any_motion_count()

METAWEAR_API void mbl_mw_acc_bosch_set_any_motion_count ( MblMwMetaWearBoard board,
uint8_t  count 
)

Sets the any motion detector's count parameter.

Parameters
boardCalling object
countNumber of consecutive slope data points that must be above the threshold

◆ mbl_mw_acc_bosch_set_any_motion_threshold()

METAWEAR_API void mbl_mw_acc_bosch_set_any_motion_threshold ( MblMwMetaWearBoard board,
float  threshold 
)

Sets the any motion detector's threshold parameter.

Parameters
boardCalling object
countValue that the slope data points must be above

◆ mbl_mw_acc_bosch_set_double_tap_window()

METAWEAR_API void mbl_mw_acc_bosch_set_double_tap_window ( MblMwMetaWearBoard board,
MblMwAccBoschDoubleTapWindow  window 
)

Sets the tap detector's double tap window.

Parameters
boardCalling object
windowNew double tap window time

◆ mbl_mw_acc_bosch_set_orientation_hysteresis()

METAWEAR_API void mbl_mw_acc_bosch_set_orientation_hysteresis ( MblMwMetaWearBoard board,
float  hysteresis 
)

Set the hysteresis offset for portrait/landscape detection.

Parameters
boardCalling object
hysteresisNew calculation mode

◆ mbl_mw_acc_bosch_set_orientation_mode()

METAWEAR_API void mbl_mw_acc_bosch_set_orientation_mode ( MblMwMetaWearBoard board,
MblMwAccBoschOrientationMode  mode 
)

Set the orientation calculation mode.

Parameters
boardCalling object
modeNew calculation mode

◆ mbl_mw_acc_bosch_set_quiet_time()

METAWEAR_API void mbl_mw_acc_bosch_set_quiet_time ( MblMwMetaWearBoard board,
MblMwAccBoschTapQuietTime  time 
)

Sets the tap detector's quiet time parameter.

Parameters
boardCalling object
timeNew quiet time

◆ mbl_mw_acc_bosch_set_range()

METAWEAR_API void mbl_mw_acc_bosch_set_range ( MblMwMetaWearBoard board,
MblMwAccBoschRange  range 
)

Sets the acceleration range.

Parameters
boardPointer to the board to modify
rangeAcceleration range to assign

◆ mbl_mw_acc_bosch_set_shock_time()

METAWEAR_API void mbl_mw_acc_bosch_set_shock_time ( MblMwMetaWearBoard board,
MblMwAccBoschTapShockTime  time 
)

Sets the tap detector's shock time parameter.

Parameters
boardCalling object
timeNew shock time

◆ mbl_mw_acc_bosch_set_threshold()

METAWEAR_API void mbl_mw_acc_bosch_set_threshold ( MblMwMetaWearBoard board,
float  threshold 
)

Sets the tap detector's threshold.

Parameters
boardCalling object
windowNew threshold level

◆ mbl_mw_acc_bosch_start()

METAWEAR_API void mbl_mw_acc_bosch_start ( const MblMwMetaWearBoard board)

Switches the accelerometer to active mode.

When in active mode, the accelerometer cannot be configured

Parameters
boardPointer to the board to send the command to

◆ mbl_mw_acc_bosch_stop()

METAWEAR_API void mbl_mw_acc_bosch_stop ( const MblMwMetaWearBoard board)

Switches the accelerometer to standby mode.

Parameters
boardPointer to the board to send the command to

◆ mbl_mw_acc_bosch_write_acceleration_config()

METAWEAR_API void mbl_mw_acc_bosch_write_acceleration_config ( const MblMwMetaWearBoard board)

Writes the acceleration settings to the sensor.

Parameters
boardPointer to the board to send the command to

◆ mbl_mw_acc_bosch_write_motion_config()

METAWEAR_API void mbl_mw_acc_bosch_write_motion_config ( const MblMwMetaWearBoard board)

Writes the motion configuration to the remote device.

Parameters
boardCalling object

◆ mbl_mw_acc_bosch_write_orientation_config()

METAWEAR_API void mbl_mw_acc_bosch_write_orientation_config ( const MblMwMetaWearBoard board)

Writes the orientation detection settings to the board.

Parameters
boardCalling object

◆ mbl_mw_acc_bosch_write_tap_config()

METAWEAR_API void mbl_mw_acc_bosch_write_tap_config ( const MblMwMetaWearBoard board)

Sets the tap detector's double tap window.

Parameters
boardCalling object
windowNew double tap window time