color8 2.0.0.0
|
This file contains API for Color 8 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 | color8_t |
Click ctx object definition. More... | |
struct | color8_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | color8_cfg_setup (color8_cfg_t *cfg) |
Config Object Initialization function. | |
COLOR8_RETVAL | color8_init (color8_t *ctx, color8_cfg_t *cfg) |
Initialization function. | |
void | color8_generic_write (color8_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | color8_generic_read (color8_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | color8_write_byte (color8_t *ctx, uint8_t reg, uint8_t w_data) |
Functions for write one byte in register. | |
uint8_t | color8_read_byte (color8_t *ctx, uint8_t reg) |
Functions for read one byte data from register. | |
uint8_t | color8_get_interrupt (color8_t *ctx) |
Functions get interrupt. | |
uint16_t | color8_read_data (color8_t *ctx, uint8_t reg_data) |
Functions for read data from register. | |
float | color8_get_color_value (color8_t *ctx) |
Functions for read color value. | |
uint8_t | color8_get_color (color8_t *ctx, float color_value) |
Functions for detect colors. | |
This file contains API for Color 8 Click driver.