light4 2.1.0.0
|
This file contains API for Light 4 Click Driver. More...
#include "mikrosdk_version.h"
#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 | light4_t |
Light 4 Click context object. More... | |
struct | light4_cfg_t |
Light 4 Click configuration object. More... | |
Enumerations | |
enum | light4_return_value_t { LIGHT4_OK = 0 , LIGHT4_ERROR = -1 , LIGHT4_ANALOG_SAT = -2 } |
Light 4 Click return value data. More... | |
Functions | |
void | light4_cfg_setup (light4_cfg_t *cfg) |
Light 4 configuration object setup function. More... | |
err_t | light4_init (light4_t *ctx, light4_cfg_t *cfg) |
Light 4 initialization function. More... | |
err_t | light4_default_cfg (light4_t *ctx) |
Light 4 default configuration function. More... | |
err_t | light4_generic_write (light4_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Light 4 I2C writing function. More... | |
err_t | light4_generic_read (light4_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Light 4 I2C reading function. More... | |
void | light4_set_en_pin (light4_t *ctx, uint8_t pin_state) |
Light 4 set EN pin function. More... | |
void | light4_set_snc_pin (light4_t *ctx, uint8_t pin_state) |
Light 4 set SNC pin function. More... | |
uint8_t | light4_get_int_pin (light4_t *ctx) |
Light 4 get INT pin function. More... | |
err_t | light4_write_reg (light4_t *ctx, uint8_t reg, uint8_t data_in) |
Light 4 Register writing function. More... | |
err_t | light4_read_reg (light4_t *ctx, uint8_t reg, uint8_t *data_out) |
Light 4 Register reading function. More... | |
err_t | light4_sw_reset (light4_t *ctx) |
Light 4 Software reset function. More... | |
err_t | light4_read_channel_data (light4_t *ctx, uint8_t channel_sel, float *channel_data) |
Light 4 get channel data function. More... | |
This file contains API for Light 4 Click Driver.