9 #include "sensor_common.h" 43 MBL_MW_ACC_MMA8452Q_ODR_800Hz= 0,
44 MBL_MW_ACC_MMA8452Q_ODR_400Hz,
45 MBL_MW_ACC_MMA8452Q_ODR_200Hz,
46 MBL_MW_ACC_MMA8452Q_ODR_100Hz,
47 MBL_MW_ACC_MMA8452Q_ODR_50Hz,
48 MBL_MW_ACC_MMA8452Q_ODR_12_5Hz,
49 MBL_MW_ACC_MMA8452Q_ODR_6_25Hz,
50 MBL_MW_ACC_MMA8452Q_ODR_1_56Hz
57 MBL_MW_ACC_MMA8452Q_CUTOFF_FREQ_HIGHEST = 0,
58 MBL_MW_ACC_MMA8452Q_CUTOFF_FREQ_HIGH = 1,
59 MBL_MW_ACC_MMA8452Q_CUTOFF_FREQ_MEDIUM = 2,
60 MBL_MW_ACC_MMA8452Q_CUTOFF_FREQ_LOW = 3
METAWEAR_API MblMwDataSignal * mbl_mw_acc_mma8452q_get_high_freq_acceleration_data_signal(const MblMwMetaWearBoard *board)
METAWEAR_API MblMwDataSignal * mbl_mw_acc_mma8452q_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 ...
METAWEAR_API void mbl_mw_acc_mma8452q_set_odr(MblMwMetaWearBoard *board, MblMwAccMma8452qOdr odr)
Sets the output data rate.
METAWEAR_API void mbl_mw_acc_mma8452q_set_high_pass_cutoff(MblMwMetaWearBoard *board, float frequency)
Sets the cutoff frequency for the high-pass filter.
METAWEAR_API MblMwDataSignal * mbl_mw_acc_mma8452q_get_orientation_detection_data_signal(const MblMwMetaWearBoard *board)
Retrieves the data signal representing data from the orientation detection algorithm.
METAWEAR_API void mbl_mw_acc_mma8452q_enable_acceleration_sampling(const MblMwMetaWearBoard *board)
Enables acceleration sampling.
MblMwAccMma8452qOdr
Available output data rates on the MMA8452Q accelerometer.
Definition: accelerometer_mma8452q.h:42
METAWEAR_API void mbl_mw_acc_mma8452q_start(const MblMwMetaWearBoard *board)
Switches the accelerometer to active mode.
METAWEAR_API void mbl_mw_acc_mma8452q_set_orientation_delay(MblMwMetaWearBoard *board, uint16_t delay)
Set the orientation calculation mode.
METAWEAR_API MblMwDataSignal * mbl_mw_acc_mma8452q_get_acceleration_data_signal(const MblMwMetaWearBoard *board)
Retrieves the data signal representing acceleration data for the MMA8452Q accelerometer.
const uint8_t MBL_MW_MODULE_ACC_TYPE_MMA8452Q
Constant identifying the MMA8452Q accelerometer type.
Definition: accelerometer_mma8452q.h:15
METAWEAR_API void mbl_mw_acc_mma8452q_disable_acceleration_sampling(const MblMwMetaWearBoard *board)
Disables acceleration sampling.
METAWEAR_API void mbl_mw_acc_mma8452q_enable_orientation_detection(const MblMwMetaWearBoard *board)
Enables orientation detection.
MblMwAccMma8452qCutoffFreq
Available cutoff frequencies for the MMA8452Q high pass filter.
Definition: accelerometer_mma8452q.h:56
MblMwAccMma8452qRange
Available g-ranges on the MMA8452Q accelerometer.
Definition: accelerometer_mma8452q.h:33
METAWEAR_API void mbl_mw_acc_mma8452q_disable_orientation_detection(const MblMwMetaWearBoard *board)
Disables orientation detection.
METAWEAR_API void mbl_mw_acc_mma8452q_set_range(MblMwMetaWearBoard *board, MblMwAccMma8452qRange range)
Sets the acceleration range.
METAWEAR_API void mbl_mw_acc_mma8452q_stop(const MblMwMetaWearBoard *board)
Switches the accelerometer to standby mode.
+/- 8g
Definition: accelerometer_mma8452q.h:36
+/- 4g
Definition: accelerometer_mma8452q.h:35
METAWEAR_API void mbl_mw_acc_mma8452q_write_acceleration_config(const MblMwMetaWearBoard *board)
Writes the acceleration settings to the sensor.
+/- 2g
Definition: accelerometer_mma8452q.h:34
#define METAWEAR_API
Indicates the function should be exported to the symbol table.
Definition: dllmarker.h:27
struct MblMwDataSignal MblMwDataSignal
A event fired from the MetaWear board that also contains data.
Definition: datasignal_fwd.h:15