MetaWear C++ API
0.18.0
C++ implementation of the MetaWear protocol
|
Functions for interacting with the LTR329 ambient light sensor. More...
#include "sensor_common.h"
Go to the source code of this file.
Enumerations | |
enum | MblMwAlsLtr329Gain { MBL_MW_ALS_LTR329_GAIN_1X = 0, MBL_MW_ALS_LTR329_GAIN_2X, MBL_MW_ALS_LTR329_GAIN_4X, MBL_MW_ALS_LTR329_GAIN_8X, MBL_MW_ALS_LTR329_GAIN_48X, MBL_MW_ALS_LTR329_GAIN_96X } |
Controls the range and resolution of illuminance values. More... | |
enum | MblMwAlsLtr329IntegrationTime { MBL_MW_ALS_LTR329_TIME_100ms = 0, MBL_MW_ALS_LTR329_TIME_50ms, MBL_MW_ALS_LTR329_TIME_200ms, MBL_MW_ALS_LTR329_TIME_400ms, MBL_MW_ALS_LTR329_TIME_150ms, MBL_MW_ALS_LTR329_TIME_250ms, MBL_MW_ALS_LTR329_TIME_300ms, MBL_MW_ALS_LTR329_TIME_350ms } |
Measurement time for each cycle. More... | |
enum | MblMwAlsLtr329MeasurementRate { MBL_MW_ALS_LTR329_RATE_50ms = 0, MBL_MW_ALS_LTR329_RATE_100ms, MBL_MW_ALS_LTR329_RATE_200ms, MBL_MW_ALS_LTR329_RATE_500ms, MBL_MW_ALS_LTR329_RATE_1000ms, MBL_MW_ALS_LTR329_RATE_2000ms } |
How frequently to update the illuminance data. More... | |
Functions for interacting with the LTR329 ambient light sensor.
This sensor is only available on MetaWear RPro boards.
enum MblMwAlsLtr329Gain |
Controls the range and resolution of illuminance values.
METAWEAR_API MblMwDataSignal* mbl_mw_als_ltr329_get_illuminance_data_signal | ( | const MblMwMetaWearBoard * | board | ) |
Retrieves the data signal representing LTR329 illuminance data.
board | Pointer to the board to retrieve the signal from |
METAWEAR_API void mbl_mw_als_ltr329_set_gain | ( | MblMwMetaWearBoard * | board, |
MblMwAlsLtr329Gain | gain | ||
) |
Sets the sensor gain.
board | Pointer to the board to modify |
gain | Sensor gain value to set |
METAWEAR_API void mbl_mw_als_ltr329_set_integration_time | ( | MblMwMetaWearBoard * | board, |
MblMwAlsLtr329IntegrationTime | integration_time | ||
) |
Sets the sensor integration time.
board | Pointer to the board to modify |
integration_time | Integration time value to set |
METAWEAR_API void mbl_mw_als_ltr329_set_measurement_rate | ( | MblMwMetaWearBoard * | board, |
MblMwAlsLtr329MeasurementRate | measurement_rate | ||
) |
Sets the sensor measurement rate.
board | Pointer to the board to modify |
measurement_rate | Measurement rate value to set |
METAWEAR_API void mbl_mw_als_ltr329_start | ( | const MblMwMetaWearBoard * | board | ) |
Starts illuminance sampling.
board | Pointer to the board to send the command to |
METAWEAR_API void mbl_mw_als_ltr329_stop | ( | const MblMwMetaWearBoard * | board | ) |
Stops illuminance sampling.
board | Pointer to the board to send the command to |
METAWEAR_API void mbl_mw_als_ltr329_write_config | ( | const MblMwMetaWearBoard * | board | ) |
Writes the configuration to the LTR329 sensor.
board | Pointer to the board to send the command to |