MetaWear C++ API  0.18.0
C++ implementation of the MetaWear protocol
ambientlight_ltr329.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 #include "sensor_common.h"
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
18 typedef enum {
26 
30 typedef enum {
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
40 
44 typedef enum {
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
52 
59 
83 
94 
95 #ifdef __cplusplus
96 }
97 #endif
MblMwAlsLtr329Gain
Controls the range and resolution of illuminance values.
Definition: ambientlight_ltr329.h:18
METAWEAR_API MblMwDataSignal * mbl_mw_als_ltr329_get_illuminance_data_signal(const MblMwMetaWearBoard *board)
Retrieves the data signal representing LTR329 illuminance data.
struct MblMwMetaWearBoard MblMwMetaWearBoard
Software representation of a physical MetaWear board.
Definition: metawearboard_fwd.h:17
METAWEAR_API void mbl_mw_als_ltr329_set_gain(MblMwMetaWearBoard *board, MblMwAlsLtr329Gain gain)
Sets the sensor gain.
MblMwAlsLtr329IntegrationTime
Measurement time for each cycle.
Definition: ambientlight_ltr329.h:30
Illuminance range between [0.5, 32k] lux.
Definition: ambientlight_ltr329.h:20
METAWEAR_API void mbl_mw_als_ltr329_start(const MblMwMetaWearBoard *board)
Starts illuminance sampling.
Illuminance range between [0.02, 1.3k] lux.
Definition: ambientlight_ltr329.h:23
METAWEAR_API void mbl_mw_als_ltr329_set_measurement_rate(MblMwMetaWearBoard *board, MblMwAlsLtr329MeasurementRate measurement_rate)
Sets the sensor measurement rate.
MblMwAlsLtr329MeasurementRate
How frequently to update the illuminance data.
Definition: ambientlight_ltr329.h:44
Illuminance range between [0.25, 16k] lux.
Definition: ambientlight_ltr329.h:21
METAWEAR_API void mbl_mw_als_ltr329_write_config(const MblMwMetaWearBoard *board)
Writes the configuration to the LTR329 sensor.
Illuminance range between [0.01, 600] lux.
Definition: ambientlight_ltr329.h:24
Default setting.
Definition: ambientlight_ltr329.h:31
Default setting.
Definition: ambientlight_ltr329.h:48
METAWEAR_API void mbl_mw_als_ltr329_set_integration_time(MblMwMetaWearBoard *board, MblMwAlsLtr329IntegrationTime integration_time)
Sets the sensor integration time.
Illuminance range between [1, 64k] lux (default)
Definition: ambientlight_ltr329.h:19
#define METAWEAR_API
Indicates the function should be exported to the symbol table.
Definition: dllmarker.h:27
METAWEAR_API void mbl_mw_als_ltr329_stop(const MblMwMetaWearBoard *board)
Stops illuminance sampling.
Illuminance range between [0.125, 8k] lux.
Definition: ambientlight_ltr329.h:22
struct MblMwDataSignal MblMwDataSignal
A event fired from the MetaWear board that also contains data.
Definition: datasignal_fwd.h:15