color17 2.1.0.0
|
This file contains API for Color 17 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 | color17_t |
Color 17 Click context object. More... | |
struct | color17_cfg_t |
Color 17 Click configuration object. More... | |
struct | color17_config_t |
Color 17 Click configuration data object. More... | |
struct | color17_status_flag_t |
Color 17 Click status flag object. More... | |
Enumerations | |
enum | color17_return_value_t { COLOR17_OK = 0 , COLOR17_ERROR = -1 } |
Color 17 Click return value data. More... | |
Functions | |
void | color17_cfg_setup (color17_cfg_t *cfg) |
Color 17 configuration object setup function. | |
err_t | color17_init (color17_t *ctx, color17_cfg_t *cfg) |
Color 17 initialization function. | |
err_t | color17_default_cfg (color17_t *ctx) |
Color 17 default configuration function. | |
err_t | color17_generic_write (color17_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Color 17 I2C writing function. | |
err_t | color17_generic_read (color17_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Color 17 I2C reading function. | |
err_t | color17_write_reg (color17_t *ctx, uint8_t reg, uint16_t data_in) |
Color 17write register function. | |
err_t | color17_read_reg (color17_t *ctx, uint8_t reg, uint16_t *data_out) |
Color 17 read register function. | |
err_t | color17_get_device_id (color17_t *ctx, uint16_t *device_id) |
Color 17 gets device ID function. | |
err_t | color17_set_config (color17_t *ctx, color17_config_t config) |
Color 17 set the configuration function. | |
err_t | color17_get_status_flag (color17_t *ctx, color17_status_flag_t *status_flag) |
Color 17 gets the status flag function. | |
err_t | color17_get_ch_measurement (color17_t *ctx, uint8_t ch, uint32_t *adc_codes) |
Color 17 gets the channel measurements data function. | |
err_t | color17_get_measurement (color17_t *ctx, uint32_t *adc_codes) |
Color 17 gets light and color measurement data function. | |
err_t | color17_get_cct (color17_t *ctx, float *cct, float *light_intensity) |
Color 17 gets correlated color temperature data function. | |
uint8_t | color17_get_int_pin (color17_t *ctx) |
Color 17 gets interrupt function. | |
This file contains API for Color 17 Click Driver.