color10 2.0.0.0
|
This file contains API for Color 10 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 | color10_t |
Click ctx object definition. More... | |
struct | color10_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | color10_cfg_setup (color10_cfg_t *cfg) |
Config Object Initialization function. | |
COLOR10_RETVAL | color10_init (color10_t *ctx, color10_cfg_t *cfg) |
Initialization function. | |
void | color10_generic_write (color10_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
uint16_t | color10_generic_read (color10_t *ctx, uint8_t cmd_addr) |
Generic read function. | |
void | color10_config (color10_t *ctx, uint16_t cfg_data) |
Configuration function. | |
uint8_t | color10_get_id (color10_t *ctx) |
ID retrieval function. | |
float | color10_read_color_ratio (color10_t *ctx, uint8_t color_cmd_reg) |
Color ratio function. | |
float | color10_get_color_value (color10_t *ctx) |
Color value function. | |
uint8_t | color10_get_color (float color_value) |
Color retrieval function. | |
This file contains API for Color 10 Click driver.