8 #include "sensor_common.h"
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
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
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...