lightmixsens 2.0.0.0
|
This file contains API for Light mix sens 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 | lightmixsens_t |
Light mix sens Click context object. More... | |
struct | lightmixsens_cfg_t |
Light mix sens Click configuration object. More... | |
struct | lightmixsens_data_obj |
Light mix sens Click data object. More... | |
Enumerations | |
enum | lightmixsens_return_value_t { LIGHTMIXSENS_OK = 0 , LIGHTMIXSENS_ERROR = -1 } |
Light mix sens Click return value data. More... | |
Functions | |
void | lightmixsens_cfg_setup (lightmixsens_cfg_t *cfg) |
Light mix sens configuration object setup function. | |
err_t | lightmixsens_init (lightmixsens_t *ctx, lightmixsens_cfg_t *cfg) |
Light mix sens initialization function. | |
void | lightmixsens_default_cfg (lightmixsens_t *ctx) |
Light mix sens default configuration function. | |
void | lightmixsens_generic_write (lightmixsens_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Light mix sens I2C writing function. | |
void | lightmixsens_generic_read (lightmixsens_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Light mix sens I2C reading function. | |
err_t | lightmixsens_write_byte (lightmixsens_t *ctx, uint8_t reg_addr, uint8_t data_in) |
Generic Write Byte function. | |
err_t | lightmixsens_write_word (lightmixsens_t *ctx, uint8_t reg_addr, uint16_t data_in) |
Generic Write Word function. | |
err_t | lightmixsens_read_byte (lightmixsens_t *ctx, uint8_t reg_addr, uint8_t *data_out) |
Generic Read Byte function. | |
err_t | lightmixsens_read_word (lightmixsens_t *ctx, uint8_t reg_addr, uint16_t *data_out) |
Generic Read Word function. | |
void | lightmixsens_get_status (lightmixsens_t *ctx, uint8_t flag_mask, uint8_t *status) |
Get Status function. | |
void | lightmixsens_switch_ir_to_green (lightmixsens_t *ctx) |
Switch IR To Green Channel function. | |
void | lightmixsens_switch_ir_to_prox (lightmixsens_t *ctx) |
Switch IR To Proximity function. | |
void | lightmixsens_wait_atime (lightmixsens_t *ctx) |
Wait ALS/Color Intregration Time Done function. | |
void | lightmixsens_wait_ptime (lightmixsens_t *ctx) |
Wait Proximity Sample Time Done function. | |
void | lightmixsens_wait_wtime (lightmixsens_t *ctx) |
Wait WTIME + WLONG Done function. | |
This file contains API for Light mix sens Click Driver.