light3
2.1.0.0
|
This file contains API for Light 3 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 | light3_t |
Light 3 Click context object. More... | |
struct | light3_cfg_t |
Light 3 Click configuration object. More... | |
Enumerations | |
enum | light3_return_value_t { LIGHT3_OK = 0, LIGHT3_ERROR = -1 } |
Light 3 Click return value data. More... | |
Functions | |
void | light3_cfg_setup (light3_cfg_t *cfg) |
Light 3 configuration object setup function. More... | |
err_t | light3_init (light3_t *ctx, light3_cfg_t *cfg) |
Light 3 initialization function. More... | |
err_t | light3_default_cfg (light3_t *ctx) |
Light 3 default configuration function. More... | |
err_t | light3_generic_write (light3_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Light 3 I2C writing function. More... | |
err_t | light3_generic_read (light3_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Light 3 I2C reading function. More... | |
uint8_t | light3_get_int_pin (light3_t *ctx) |
Light 3 get INT pin state function. More... | |
err_t | light3_sw_reset (light3_t *ctx) |
Light 3 software reset function. More... | |
err_t | light3_write_reg (light3_t *ctx, uint8_t reg, uint16_t data_in) |
Light 3 register writing function. More... | |
err_t | light3_read_reg (light3_t *ctx, uint8_t reg, uint16_t *data_out) |
Light 3 register reading function. More... | |
err_t | light3_get_ch0_data (light3_t *ctx, float *lux) |
Light 3 read CH0 data function. More... | |
err_t | light3_get_ch1_data (light3_t *ctx, float *lux) |
Light 3 read CH1 data function. More... | |
err_t | light3_get_ch0_fifo_data (light3_t *ctx, float *lux) |
Light 3 read CH0 FIFO data function. More... | |
err_t | light3_get_ch1_fifo_data (light3_t *ctx, float *lux) |
Light 3 read CH1 FIFO data function. More... | |
This file contains API for Light 3 Click Driver.