color13 2.0.0.0
|
This file contains API for Color 13 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 | color13_t |
Color 13 Click context object. More... | |
struct | color13_cfg_t |
Color 13 Click configuration object. More... | |
struct | color13_color_t |
Color 13 color data object. More... | |
Enumerations | |
enum | color13_return_value_t { COLOR13_OK = 0 , COLOR13_ERROR = -1 , COLOR13_ERROR_OVF = -2 , COLOR13_ERROR_PARAM = -3 , COLOR13_ERROR_CFG = -4 } |
Color 13 Click return value data. More... | |
Functions | |
void | color13_cfg_setup (color13_cfg_t *cfg) |
Color 13 configuration object setup function. | |
err_t | color13_init (color13_t *ctx, color13_cfg_t *cfg) |
Color 13 initialization function. | |
err_t | color13_generic_write (color13_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len) |
Color 13 I2C writing function. | |
err_t | color13_generic_read (color13_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len) |
Color 13 I2C reading function. | |
uint8_t | color13_get_int (color13_t *ctx) |
Get interrupt pin state. | |
err_t | color13_get_proximity (color13_t *ctx, uint16_t *ps_data) |
Read proximity data from device. | |
err_t | color13_get_als (color13_t *ctx, float *als_data) |
Read lux data from device. | |
err_t | color13_ls_color (color13_t *ctx, uint8_t ls_reg, uint32_t *ls_data) |
Read ls data from color registers. | |
err_t | color13_get_rgb_ir (color13_t *ctx, color13_color_t *color_data) |
Read color data from device. | |
float | color13_get_als_resolution (color13_t *ctx) |
Get resolution for the lux calculation. | |
This file contains API for Color 13 Click Driver.