9 #include "sensor_common.h"
32 MBL_MW_ALS_LTR329_TIME_50ms,
33 MBL_MW_ALS_LTR329_TIME_200ms,
34 MBL_MW_ALS_LTR329_TIME_400ms,
35 MBL_MW_ALS_LTR329_TIME_150ms,
36 MBL_MW_ALS_LTR329_TIME_250ms,
37 MBL_MW_ALS_LTR329_TIME_300ms,
38 MBL_MW_ALS_LTR329_TIME_350ms
45 MBL_MW_ALS_LTR329_RATE_50ms= 0,
46 MBL_MW_ALS_LTR329_RATE_100ms,
47 MBL_MW_ALS_LTR329_RATE_200ms,
49 MBL_MW_ALS_LTR329_RATE_1000ms,
50 MBL_MW_ALS_LTR329_RATE_2000ms
METAWEAR_API void mbl_mw_als_ltr329_set_integration_time(MblMwMetaWearBoard *board, MblMwAlsLtr329IntegrationTime integration_time)
Sets the sensor integration time Measurement time for each full light measurement (ALS) cycle - 100ms...
METAWEAR_API MblMwDataSignal * mbl_mw_als_ltr329_get_illuminance_data_signal(const MblMwMetaWearBoard *board)
Retrieves the data signal representing LTR329 illuminance data This signal represents the luminance i...
METAWEAR_API void mbl_mw_als_ltr329_set_gain(MblMwMetaWearBoard *board, MblMwAlsLtr329Gain gain)
Sets the sensor gain There are altogether six gain settings (1X, 2X, 4X, 8X, 48X and 96X) available f...
MblMwAlsLtr329MeasurementRate
How frequently to update the illuminance data.
Definition: ambientlight_ltr329.h:44
@ MBL_MW_ALS_LTR329_RATE_500ms
Default setting.
Definition: ambientlight_ltr329.h:48
METAWEAR_API void mbl_mw_als_ltr329_set_measurement_rate(MblMwMetaWearBoard *board, MblMwAlsLtr329MeasurementRate measurement_rate)
Sets the sensor measurement rate Frequency of light measurement - 50ms (default) to 2000 ms See MblMw...
METAWEAR_API void mbl_mw_als_ltr329_start(const MblMwMetaWearBoard *board)
Starts illuminance sampling.
MblMwAlsLtr329Gain
Controls the range and resolution of illuminance values.
Definition: ambientlight_ltr329.h:18
@ MBL_MW_ALS_LTR329_GAIN_4X
Illuminance range between [0.25, 16k] lux.
Definition: ambientlight_ltr329.h:21
@ MBL_MW_ALS_LTR329_GAIN_8X
Illuminance range between [0.125, 8k] lux.
Definition: ambientlight_ltr329.h:22
@ MBL_MW_ALS_LTR329_GAIN_2X
Illuminance range between [0.5, 32k] lux.
Definition: ambientlight_ltr329.h:20
@ MBL_MW_ALS_LTR329_GAIN_48X
Illuminance range between [0.02, 1.3k] lux.
Definition: ambientlight_ltr329.h:23
@ MBL_MW_ALS_LTR329_GAIN_1X
Illuminance range between [1, 64k] lux (default)
Definition: ambientlight_ltr329.h:19
@ MBL_MW_ALS_LTR329_GAIN_96X
Illuminance range between [0.01, 600] lux.
Definition: ambientlight_ltr329.h:24
METAWEAR_API void mbl_mw_als_ltr329_stop(const MblMwMetaWearBoard *board)
Stops illuminance sampling.
METAWEAR_API void mbl_mw_als_ltr329_write_config(const MblMwMetaWearBoard *board)
Writes the configuration to the LTR329 sensor Applies the INTEGRATION TIME, MEASUREMENT RATE,...
MblMwAlsLtr329IntegrationTime
Measurement time for each cycle.
Definition: ambientlight_ltr329.h:30
@ MBL_MW_ALS_LTR329_TIME_100ms
Default setting.
Definition: ambientlight_ltr329.h:31
struct MblMwDataSignal MblMwDataSignal
A event fired from the MetaWear board that also contains data.
Definition: datasignal_fwd.h:15
#define METAWEAR_API
Indicates the function should be exported to the symbol table
Definition: dllmarker.h:27