color15 2.0.0.0
|
This file contains API for Color 15 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 | color15_t |
Color 15 Click context object. More... | |
struct | color15_cfg_t |
Color 15 Click configuration object. More... | |
struct | color15_channels_t |
Color 15 RGBWIR channels data object. More... | |
struct | color15_hsl_t |
Color 15 HSL color data object. More... | |
Enumerations | |
enum | color15_return_value_t { COLOR15_OK = 0 , COLOR15_ERROR = -1 } |
Color 15 Click return value data. More... | |
Functions | |
void | color15_cfg_setup (color15_cfg_t *cfg) |
Color 15 configuration object setup function. | |
err_t | color15_init (color15_t *ctx, color15_cfg_t *cfg) |
Color 15 initialization function. | |
err_t | color15_default_cfg (color15_t *ctx) |
Color 15 default configuration function. | |
err_t | color15_generic_write (color15_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Color 15 I2C writing function. | |
err_t | color15_generic_read (color15_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Color 15 I2C reading function. | |
err_t | color15_write_register (color15_t *ctx, uint8_t reg, uint8_t data_in) |
Color 15 write register function. | |
err_t | color15_read_register (color15_t *ctx, uint8_t reg, uint8_t *data_out) |
Color 15 read register function. | |
err_t | color15_check_communication (color15_t *ctx) |
Color 15 check communication function. | |
uint8_t | color15_get_int_pin (color15_t *ctx) |
Color 15 get int pin function. | |
err_t | color15_clear_interrupt (color15_t *ctx) |
Color 15 clear interrupt function. | |
err_t | color15_set_wait_time (color15_t *ctx, uint16_t wait_time) |
Color 15 set wait time function. | |
err_t | color15_set_cls_time (color15_t *ctx, uint8_t clsconv, uint8_t int_time) |
Color 15 set cls time function. | |
err_t | color15_get_data (color15_t *ctx, color15_channels_t *channels) |
Color 15 get data function. | |
uint8_t | color15_get_color (color15_hsl_t *hsl) |
Color 15 get color function. | |
void | color15_rgbw_to_hsl (color15_t *ctx, color15_channels_t *rgbw, color15_hsl_t *hsl) |
Color 15 rgbw to hsl function. | |
This file contains API for Color 15 Click Driver.