color2
2.0.0.0
|
This file contains API for Color 2 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 | color2_t |
Click ctx object definition. More... | |
struct | color2_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | color2_cfg_setup (color2_cfg_t *cfg) |
Config Object Initialization function. More... | |
COLOR2_RETVAL | color2_init (color2_t *ctx, color2_cfg_t *cfg) |
Initialization function. More... | |
void | color2_default_cfg (color2_t *ctx) |
Click Default Configuration function. More... | |
void | color2_write_data (color2_t *ctx, uint8_t address, uint8_t write_command) |
Generic write data function. More... | |
uint8_t | color2_read_data (color2_t *ctx, uint8_t address) |
Generic read data function. More... | |
uint8_t | color2_reset (color2_t *ctx) |
Reset default register value function. More... | |
uint8_t | color2_init_advanced (color2_t *ctx, uint8_t config1, uint8_t config2, uint8_t config3) |
Generic read data function. More... | |
void | color2_set_upper_threshold (color2_t *ctx, uint16_t upper_threshold) |
Function set upper threshold register. More... | |
void | color2_set_lower_hreshold (color2_t *ctx, uint16_t lower_threshold) |
Function set lower threshold register. More... | |
uint16_t | color2_read_upper_threshold (color2_t *ctx) |
Function read upper threshold register. More... | |
uint16_t | color2_read_lower_threshold (color2_t *ctx) |
Function read lower threshold register. More... | |
float | color2_read_red (color2_t *ctx) |
Function read red color data. More... | |
float | color2_read_green (color2_t *ctx) |
Function read green color data. More... | |
float | color2_read_blue (color2_t *ctx) |
Function read blue color data. More... | |
uint8_t | color2_read_status (color2_t *ctx) |
Function read status registe value. More... | |
float | color2_get_color_value (color2_t *ctx) |
Functions for read color value. More... | |
uint8_t | color2_get_color (float color_value) |
Functions for detect colors. More... | |
This file contains API for Color 2 Click driver.