color9 2.0.0.0
|
This file contains API for Color 9 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 | color9_t |
Click ctx object definition. More... | |
struct | color9_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | color9_cfg_setup (color9_cfg_t *cfg) |
Config Object Initialization function. | |
COLOR9_RETVAL | color9_init (color9_t *ctx, color9_cfg_t *cfg) |
Initialization function. | |
void | color9_write (color9_t *ctx, uint8_t reg_addr, uint8_t r_data) |
Generic write function. | |
uint8_t | color9_read (color9_t *ctx, uint8_t reg_addr) |
Generic read function. | |
void | color9_sw_reset (color9_t *ctx) |
Software reset function. | |
uint32_t | color9_get_Ir (color9_t *ctx) |
Get value of IR measurement reading. | |
uint32_t | color9_get_green (color9_t *ctx) |
Gets value of Green measurement reading. | |
uint32_t | color9_get_blue (color9_t *ctx) |
Gets value of Blue measurement reading. | |
uint32_t | color9_get_red (color9_t *ctx) |
Gets value of Red measurement reading. | |
uint8_t | color9_get_status_reg (color9_t *ctx) |
Status register value. | |
void | color9_meas_rate (color9_t *ctx, uint8_t resolution, uint8_t meas_rate) |
Configure measurement rates. | |
void | color9_reg_ctrl (color9_t *ctx, uint8_t cfg) |
Function for setting the main configuration register. | |
void | color9_set_gain (color9_t *ctx, uint8_t g_setting) |
Function for gain setting. | |
void | color9_int_config (color9_t *ctx, uint8_t int_select, uint8_t int_mode, uint8_t cfg_setting) |
Interrupt configuration. | |
void | color9_sample_compare (color9_t *ctx, uint8_t num_of_compares) |
Configre number of compares between samples. | |
uint32_t | color9_read_32 (color9_t *ctx, uint8_t reg_addr) |
Generic read function for 32 bits. | |
void | color9_write_32 (color9_t *ctx, uint8_t reg_addr, uint32_t treas_val) |
Generic write function for 32 bits. | |
void | color9_similarity_count (color9_t *ctx, uint8_t sim_set) |
Similarity count. | |
void | color9_upper_tresset (color9_t *ctx, uint32_t set_val) |
Upper Tresset. | |
void | color9_lower_tresset (color9_t *ctx, uint32_t set_val) |
Lower Tresset. | |
This file contains API for Color 9 Click driver.