MetaWear C++ API  0.18.0
C++ implementation of the MetaWear protocol
proximity_tsl2671.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include "sensor_common.h"
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
17 typedef enum {
22 
26 typedef enum {
27  MBL_MW_PROXIMITY_TSL2671_CURRENT_100mA= 0,
28  MBL_MW_PROXIMITY_TSL2671_CURRENT_50mA,
29  MBL_MW_PROXIMITY_TSL2671_CURRENT_25mA,
30  MBL_MW_PROXIMITY_TSL2671_CURRENT_12_5mA
32 
68 
69 #ifdef __cplusplus
70 }
71 #endif
struct MblMwMetaWearBoard MblMwMetaWearBoard
Software representation of a physical MetaWear board.
Definition: metawearboard_fwd.h:17
Use channel 1, which is responsive to primarily infrared light.
Definition: proximity_tsl2671.h:19
METAWEAR_API void mbl_mw_proximity_tsl2671_write_config(const MblMwMetaWearBoard *board)
Writes the configuration to the sensor.
Use both channel 0 and 1.
Definition: proximity_tsl2671.h:20
METAWEAR_API void mbl_mw_proximity_tsl2671_set_integration_time(MblMwMetaWearBoard *board, float time)
Sets the integration time.
METAWEAR_API void mbl_mw_proximity_tsl2671_set_transmitter_current(MblMwMetaWearBoard *board, MblMwProximityTsl2671Current current)
Sets the current driving the light transmitter.
MblMwProximityTsl2671Channel
Photodiodes the detector should use for proximity detection.
Definition: proximity_tsl2671.h:17
METAWEAR_API void mbl_mw_proximity_tsl2671_set_receiver_channel(MblMwMetaWearBoard *board, MblMwProximityTsl2671Channel channel)
Sets the photodiode that responds to light.
Use channel 0, which is responsive to infrared and visible light.
Definition: proximity_tsl2671.h:18
METAWEAR_API MblMwDataSignal * mbl_mw_proximity_tsl2671_get_adc_data_signal(const MblMwMetaWearBoard *board)
Retrieves the data signal representing ADC values for the light's colors.
MblMwProximityTsl2671Current
Amount of current driving the IR transmitter.
Definition: proximity_tsl2671.h:26
METAWEAR_API void mbl_mw_proximity_tsl2671_set_n_pulses(MblMwMetaWearBoard *board, uint8_t n_pulses)
Sets the pulse count.
#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