color14 2.0.0.0
|
This file contains API for Color 14 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 | color14_t |
Color 14 Click context object. More... | |
struct | color14_cfg_t |
Color 14 Click configuration object. More... | |
struct | color14_color_t |
Color 14 color data object. More... | |
Enumerations | |
enum | color14_return_value_t { COLOR14_OK = 0 , COLOR14_ERROR = -1 , COLOR14_ERROR_OVF = -2 , COLOR14_ERROR_PARAM = -3 , COLOR14_ERROR_CFG = -4 } |
Color 14 Click return value data. More... | |
Functions | |
void | color14_cfg_setup (color14_cfg_t *cfg) |
Color 14 configuration object setup function. | |
err_t | color14_init (color14_t *ctx, color14_cfg_t *cfg) |
Color 14 initialization function. | |
err_t | color14_generic_write (color14_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len) |
Color 14 I2C writing function. | |
err_t | color14_generic_read (color14_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len) |
Color 14 I2C reading function. | |
uint8_t | color14_get_int (color14_t *ctx) |
Get interrupt pin state. | |
err_t | color14_get_proximity (color14_t *ctx, uint16_t *ps_data) |
Read proximity data from device. | |
err_t | color14_get_als (color14_t *ctx, float *als_data) |
Read lux data from device. | |
err_t | color14_ls_color (color14_t *ctx, uint8_t ls_reg, uint32_t *ls_data) |
Read ls data from color registers. | |
err_t | color14_get_rgb_ir (color14_t *ctx, color14_color_t *color_data) |
Read color data from device. | |
float | color14_get_als_resolution (color14_t *ctx) |
Get resolution for the lux calculation. | |
This file contains API for Color 14 Click Driver.