color11 2.1.0.0
|
This file contains API for Color 11 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 | color11_t |
Color 11 Click context object. More... | |
struct | color11_cfg_t |
Color 11 Click configuration object. More... | |
struct | color11_als_data_t |
Color 11 Click ALS data object. More... | |
struct | color11_identification_t |
Color 11 Click device identification object. More... | |
Enumerations | |
enum | color11_return_value_t { COLOR11_OK = 0 , COLOR11_ERROR = -1 } |
Color 11 Click return value data. More... | |
enum | color11_pwr_ctrl_t { COLOR11_DISABLE = 0 , COLOR11_ENABLE } |
Color 11 Click power, enable, and operation value data. More... | |
enum | color11_again_t { COLOR11_AGAIN_X0_5 = 0 , COLOR11_AGAIN_X1 , COLOR11_AGAIN_X2 , COLOR11_AGAIN_X4 , COLOR11_AGAIN_X8 , COLOR11_AGAIN_X16 , COLOR11_AGAIN_X32 , COLOR11_AGAIN_X64 , COLOR11_AGAIN_X128 , COLOR11_AGAIN_X256 , COLOR11_AGAIN_X512 , COLOR11_AGAIN_X1024 , COLOR11_AGAIN_X2048 } |
Color 11 Click ALS Gain value data. More... | |
Functions | |
void | color11_cfg_setup (color11_cfg_t *cfg) |
Color 11 configuration object setup function. | |
err_t | color11_init (color11_t *ctx, color11_cfg_t *cfg) |
Color 11 initialization function. | |
err_t | color11_default_cfg (color11_t *ctx) |
Color 11 default configuration function. | |
err_t | color11_generic_write (color11_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Color 11 I2C writing function. | |
err_t | color11_generic_read (color11_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Color 11 I2C reading function. | |
err_t | color11_get_identification (color11_t *ctx, color11_identification_t *id) |
Color 11 get identification function. | |
err_t | color11_set_als_thold (color11_t *ctx, uint16_t l_thold, uint16_t h_thold) |
Color 11 set ALS interrupt threshold function. | |
err_t | color11_set_power_ctrl (color11_t *ctx, color11_pwr_ctrl_t pwr, color11_pwr_ctrl_t aen, color11_pwr_ctrl_t wen, color11_pwr_ctrl_t fden) |
Color 11 set power control function. | |
err_t | color11_set_als_step (color11_t *ctx, uint32_t als_step) |
Color 11 set ALS step function. | |
err_t | color11_get_als_step (color11_t *ctx, uint32_t *als_step) |
Color 11 get ALS step function. | |
err_t | color11_set_als_wait (color11_t *ctx, uint8_t wait_time) |
Color 11 set ALS wait time function. | |
err_t | color11_set_als_time (color11_t *ctx, uint32_t als_time) |
Color 11 set ALS integration time function. | |
err_t | color11_get_als_time (color11_t *ctx, float *als_time) |
Color 11 get ALS integration time function. | |
err_t | color11_set_gain (color11_t *ctx, color11_again_t gain) |
Color 11 set gain function. | |
err_t | color11_get_gain (color11_t *ctx, uint8_t *gain) |
Color 11 get gain function. | |
err_t | color11_set_interrupt (color11_t *ctx, uint8_t intenab) |
Color 11 set interrupt function. | |
err_t | color11_get_data_valid_status (color11_t *ctx, uint8_t *status) |
Color 11 get data valid status function. | |
err_t | color11_get_als_data (color11_t *ctx, color11_als_data_t *als_data) |
Color 11 get ALS data function. | |
err_t | color11_get_ir (color11_t *ctx, float *ir) |
Color 11 get IR data function. | |
err_t | color11_get_illuminance (color11_t *ctx, float *lux) |
Color 11 get illuminance function. | |
uint8_t | color11_get_interrupt (color11_t *ctx) |
Color 11 get interrupt function. | |
This file contains API for Color 11 Click Driver.
enum color11_again_t |
Color 11 Click ALS Gain value data.
Predefined enum values for ALS Gain.
enum color11_pwr_ctrl_t |