MetaWear C++ API  0.18.0
C++ implementation of the MetaWear protocol
colordetector_tcs34725.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 
15 
21 
25 typedef enum {
26  MBL_MW_CD_TCS34725_GAIN_1X= 0,
27  MBL_MW_CD_TCS34725_GAIN_4X,
28  MBL_MW_CD_TCS34725_GAIN_16X,
29  MBL_MW_CD_TCS34725_GAIN_60X
31 
64 
65 #ifdef __cplusplus
66 }
67 #endif
const uint8_t MBL_MW_CD_TCS34725_ADC_RED_INDEX
Indices for component values of the color adc data signal, used with mbl_mw_datasignal_get_component...
Definition: colordetector_tcs34725.h:17
METAWEAR_API MblMwDataSignal * mbl_mw_cd_tcs34725_get_adc_data_signal(const MblMwMetaWearBoard *board)
Retrieves the data signal representing detected ADC values for clear, red, green, and blue...
struct MblMwMetaWearBoard MblMwMetaWearBoard
Software representation of a physical MetaWear board.
Definition: metawearboard_fwd.h:17
const uint8_t MBL_MW_CD_TCS34725_ADC_BLUE_INDEX
Indices for component values of the color adc data signal, used with mbl_mw_datasignal_get_component...
Definition: colordetector_tcs34725.h:19
const uint8_t MBL_MW_CD_TCS34725_ADC_CLEAR_INDEX
Indices for component values of the color adc data signal, used with mbl_mw_datasignal_get_component...
Definition: colordetector_tcs34725.h:16
MblMwColorDetectorTcs34725Gain
Available analog gain scale values.
Definition: colordetector_tcs34725.h:25
METAWEAR_API void mbl_mw_cd_tcs34725_set_gain(MblMwMetaWearBoard *board, MblMwColorDetectorTcs34725Gain gain)
Sets the analog gain scale.
const uint8_t MBL_MW_CD_TCS34725_ADC_GREEN_INDEX
Indices for component values of the color adc data signal, used with mbl_mw_datasignal_get_component...
Definition: colordetector_tcs34725.h:18
METAWEAR_API void mbl_mw_cd_tcs34725_set_integration_time(MblMwMetaWearBoard *board, float time)
Sets the integration time.
METAWEAR_API void mbl_mw_cd_tcs34725_enable_illuminator_led(MblMwMetaWearBoard *board)
Enable the illuminator LED.
METAWEAR_API void mbl_mw_cd_tcs34725_write_config(const MblMwMetaWearBoard *board)
Writes the configuration to the sensor.
METAWEAR_API void mbl_mw_cd_tcs34725_disable_illuminator_led(MblMwMetaWearBoard *board)
Disable the illuminator LED.
#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