color7 2.0.0.0
|
This file contains API for Color 7 Click driver. More...
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | color7_t |
Click ctx object definition. More... | |
struct | color7_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | color7_cfg_setup (color7_cfg_t *cfg) |
Config Object Initialization function. | |
COLOR7_RETVAL | color7_init (color7_t *ctx, color7_cfg_t *cfg) |
Initialization function. | |
void | color7_default_cfg (color7_t *ctx) |
Click Default Configuration function. | |
void | color7_generic_write (color7_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | color7_generic_read (color7_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
float | color7_read_color_ratio (color7_t *ctx, uint8_t color) |
Functions for read color ratio. | |
float | color7_get_color_value (color7_t *ctx) |
Functions for read color value. | |
uint8_t | color7_get_color (color7_t *ctx) |
Functions for detect colors. | |
uint8_t | color7_get_interrupt_state (color7_t *ctx) |
Get interrut pin state. | |
This file contains API for Color 7 Click driver.