color16 2.1.0.0
|
This file contains API for Color 16 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 | color16_data_t |
Color 16 Click data object. More... | |
struct | color16_t |
Color 16 Click context object. More... | |
struct | color16_cfg_t |
Color 16 Click configuration object. More... | |
Enumerations | |
enum | color16_return_value_t { COLOR16_OK = 0 , COLOR16_ERROR = -1 } |
Color 16 Click return value data. More... | |
Functions | |
void | color16_cfg_setup (color16_cfg_t *cfg) |
Color 16 configuration object setup function. | |
err_t | color16_init (color16_t *ctx, color16_cfg_t *cfg) |
Color 16 initialization function. | |
err_t | color16_default_cfg (color16_t *ctx) |
Color 16 default configuration function. | |
err_t | color16_generic_write (color16_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Color 16 I2C writing function. | |
err_t | color16_generic_read (color16_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Color 16 I2C reading function. | |
err_t | color16_write_register (color16_t *ctx, uint8_t reg, uint8_t data_in) |
Color 16 write register function. | |
err_t | color16_read_register (color16_t *ctx, uint8_t reg, uint8_t *data_out) |
Color 16 read register function. | |
err_t | color16_write_register_word (color16_t *ctx, uint8_t reg, uint16_t data_in) |
Color 16 write register word function. | |
err_t | color16_read_register_word (color16_t *ctx, uint8_t reg, uint16_t *data_out) |
Color 16 read register word function. | |
err_t | color16_check_communication (color16_t *ctx) |
Color 16 check communication function. | |
void | color16_set_ldr_pin (color16_t *ctx, uint8_t state) |
Color 16 set ldr pin function. | |
uint8_t | color16_get_int_pin (color16_t *ctx) |
Color 16 get int pin function. | |
err_t | color16_set_reg_bank_access (color16_t *ctx, uint8_t reg_bank) |
Color 16 set reg bank access function. | |
err_t | color16_disable_ext_led (color16_t *ctx) |
Color 16 disable ext led function. | |
err_t | color16_enable_ext_led (color16_t *ctx, uint8_t led_curr) |
Color 16 enable ext led function. | |
err_t | color16_set_integration_time_ms (color16_t *ctx, float int_time_ms) |
Color 16 set integration time ms function. | |
err_t | color16_set_wait_time_ms (color16_t *ctx, float wait_time_ms) |
Color 16 set wait time ms function. | |
err_t | color16_read_data (color16_t *ctx, color16_data_t *data_out) |
Color 16 read data function. | |
This file contains API for Color 16 Click Driver.