illuminance 2.0.0.0
|
This file contains API for Illuminance 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 | illuminance_t |
Illuminance Click context object. More... | |
struct | illuminance_cfg_t |
Illuminance Click configuration object. More... | |
Enumerations | |
enum | illuminance_return_value_t { ILLUMINANCE_OK = 0 , ILLUMINANCE_ERROR = -1 } |
Illuminance Click return value data. More... | |
Functions | |
void | illuminance_cfg_setup (illuminance_cfg_t *cfg) |
Illuminance configuration object setup function. | |
err_t | illuminance_init (illuminance_t *ctx, illuminance_cfg_t *cfg) |
Illuminance initialization function. | |
err_t | illuminance_default_cfg (illuminance_t *ctx) |
Illuminance default configuration function. | |
err_t | illuminance_generic_write (illuminance_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len) |
Illuminance I2C writing function. | |
err_t | illuminance_generic_read (illuminance_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len) |
Illuminance I2C reading function. | |
err_t | illuminance_write_register (illuminance_t *ctx, uint8_t reg, uint8_t data_in) |
Illuminance write register function. | |
err_t | illuminance_read_register (illuminance_t *ctx, uint8_t reg, uint8_t *data_out) |
Illuminance read register function. | |
uint8_t | illuminance_get_int_pin (illuminance_t *ctx) |
Illuminance get int pin function. | |
err_t | illuminance_check_communication (illuminance_t *ctx) |
Illuminance check communication function. | |
err_t | illuminance_set_atime (illuminance_t *ctx, float atime_ms) |
Illuminance set atime function. | |
err_t | illuminance_set_gain (illuminance_t *ctx, uint8_t gain) |
Illuminance set gain function. | |
err_t | illuminance_read_raw_data (illuminance_t *ctx, uint16_t *ch_0, uint16_t *ch_1) |
Illuminance read raw data function. | |
This file contains API for Illuminance Click Driver.