spectrometer2 2.0.0.0
|
This file contains API for Spectrometer 2 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | spectrometer2_t |
Spectrometer 2 Click context object. More... | |
struct | spectrometer2_cfg_t |
Spectrometer 2 Click configuration object. More... | |
struct | spectrometer2_als_channels_t |
Spectrometer 2 ALS channels data object. More... | |
struct | spectrometer2_hsl_t |
Spectrometer 2 HSL color data object. More... | |
Enumerations | |
enum | spectrometer2_return_value_t { SPECTROMETER2_OK = 0 , SPECTROMETER2_ERROR = -1 } |
Spectrometer 2 Click return value data. More... | |
Functions | |
void | spectrometer2_cfg_setup (spectrometer2_cfg_t *cfg) |
Spectrometer 2 configuration object setup function. | |
err_t | spectrometer2_init (spectrometer2_t *ctx, spectrometer2_cfg_t *cfg) |
Spectrometer 2 initialization function. | |
err_t | spectrometer2_default_cfg (spectrometer2_t *ctx) |
Spectrometer 2 default configuration function. | |
err_t | spectrometer2_generic_write (spectrometer2_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Spectrometer 2 I2C writing function. | |
err_t | spectrometer2_generic_read (spectrometer2_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Spectrometer 2 I2C reading function. | |
err_t | spectrometer2_write_register (spectrometer2_t *ctx, uint8_t reg, uint8_t data_in) |
Spectrometer 2 write register function. | |
err_t | spectrometer2_read_register (spectrometer2_t *ctx, uint8_t reg, uint8_t *data_out) |
Spectrometer 2 read register function. | |
err_t | spectrometer2_check_communication (spectrometer2_t *ctx) |
Spectrometer 2 check communication function. | |
uint8_t | spectrometer2_get_int_pin (spectrometer2_t *ctx) |
Spectrometer 2 get int pin function. | |
uint8_t | spectrometer2_get_an_pin (spectrometer2_t *ctx) |
Spectrometer 2 get an pin function. | |
err_t | spectrometer2_get_data (spectrometer2_t *ctx, spectrometer2_als_channels_t *als_channels) |
Spectrometer 2 get data function. | |
err_t | spectrometer2_clear_interrupt (spectrometer2_t *ctx) |
Spectrometer 2 clear interrupt function. | |
err_t | spectrometer2_set_exposure_time (spectrometer2_t *ctx, float exp_time) |
Spectrometer 2 set exposure time function. | |
err_t | spectrometer2_set_inter_measurement_period (spectrometer2_t *ctx, float im_period) |
Spectrometer 2 set inter measurement period function. | |
uint8_t | spectrometer2_get_color (spectrometer2_hsl_t *hsl) |
Spectrometer 2 get color function. | |
void | spectrometer2_rgbc_to_hsl (spectrometer2_als_channels_t *rgbc, spectrometer2_hsl_t *hsl) |
Spectrometer 2 rgbc to hsl function. | |
This file contains API for Spectrometer 2 Click Driver.