color 2.0.0.0
|
This file contains API for Color 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 | color_t |
Click ctx object definition. More... | |
struct | color_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | color_cfg_setup (color_cfg_t *cfg) |
Config Object Initialization function. | |
COLOR_RETVAL | color_init (color_t *ctx, color_cfg_t *cfg) |
Initialization function. | |
void | color_default_cfg (color_t *ctx) |
Click Default Configuration function. | |
void | color_generic_write (color_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | color_generic_read (color_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | color_write_byte (color_t *ctx, uint8_t reg, uint8_t data_to_write) |
Write one byte to register. | |
uint16_t | color_read_data (color_t *ctx, uint8_t reg) |
Read 16-bit data from register. | |
float | color_read_color_ratio (color_t *ctx, uint8_t color) |
Read color ratio from register. | |
float | color_get_color_value (color_t *ctx) |
Functions for read color value. | |
uint8_t | color_get_color (float color_value) |
Detect color. | |
uint8_t | color_get_interrupt (color_t *ctx) |
Get interrupt pin state. | |
void | color_set_led (color_t *ctx, uint8_t red, uint8_t green, uint8_t blue) |
Functions for set Led lights. | |
This file contains API for Color Click driver.