MetaWear C++ API  0.20.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 
82 
83 #ifdef __cplusplus
84 }
85 #endif
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
struct MblMwMetaWearBoard MblMwMetaWearBoard
Software representation of a physical MetaWear board.
Definition: metawearboard_fwd.h:17
METAWEAR_API void mbl_mw_proximity_tsl2671_set_transmitter_current(MblMwMetaWearBoard *board, MblMwProximityTsl2671Current current)
Sets the current driving the light transmitter.
METAWEAR_API void mbl_mw_proximity_tsl2671_set_receiver_channel(MblMwMetaWearBoard *board, MblMwProximityTsl2671Channel channel)
Sets the photodiode that responds to light to be used Channel 0 photodiode (CH0), which is responsive...
MblMwProximityTsl2671Channel
Photodiodes the detector should use for proximity detection.
Definition: proximity_tsl2671.h:17
@ MBL_MW_PROXIMITY_TSL2671_CHANNEL_1
Use channel 1, which is responsive to primarily infrared light.
Definition: proximity_tsl2671.h:19
@ MBL_MW_PROXIMITY_TSL2671_CHANNEL_BOTH
Use both channel 0 and 1.
Definition: proximity_tsl2671.h:20
@ MBL_MW_PROXIMITY_TSL2671_CHANNEL_0
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 proximity of an object to the MetaWear.
METAWEAR_API void mbl_mw_proximity_tsl2671_write_config(const MblMwMetaWearBoard *board)
Writes the configuration to the sensor Applies the INTEGRATION TIME, RECEIVER CHANNEL,...
METAWEAR_API void mbl_mw_proximity_tsl2671_set_n_pulses(MblMwMetaWearBoard *board, uint8_t n_pulses)
Sets the pulse count.
MblMwProximityTsl2671Current
Amount of current driving the IR transmitter.
Definition: proximity_tsl2671.h:26
METAWEAR_API void mbl_mw_proximity_tsl2671_set_integration_time(MblMwMetaWearBoard *board, float time)
Sets the integration time The proximity integration time (PTIME) is the period of time that the inter...