proximity11 2.0.0.0
|
This file contains API for Proximity 11 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 | als_data_t |
struct | proximity11_t |
Click ctx object definition. More... | |
struct | proximity11_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | proximity11_cfg_setup (proximity11_cfg_t *cfg) |
Config Object Initialization function. | |
PROXIMITY11_RETVAL | proximity11_init (proximity11_t *ctx, proximity11_cfg_t *cfg) |
Initialization function. | |
uint8_t | proximity11_default_cfg (proximity11_t *ctx) |
Click Default Configuration function. | |
void | proximity11_generic_write (proximity11_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | proximity11_generic_read (proximity11_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint8_t | proximity11_int_get (proximity11_t *ctx) |
Int pin get functuin. | |
uint8_t | proximity11_get (proximity11_t *ctx, uint8_t register_address, uint8_t *output_buffer, uint8_t n_bytes) |
Proximity value get function. | |
uint8_t | proximity11_set (proximity11_t *ctx, uint8_t register_address, uint8_t *input_buffer, uint8_t n_bytes) |
Proximity value set function. | |
void | proximity11_update (proximity11_t *ctx) |
Updating data for Lux calculation. | |
float | proximity11_convert_lx (proximity11_t *ctx, uint16_t *input_data) |
Converting raw data to Lux. | |
void | proximity11_get_raw_ps_als_values (proximity11_t *ctx, uint8_t *data_buffer) |
Getting raw ALS and PS data. | |
void | proximity11_get_ps_als_values (proximity11_t *ctx, uint16_t *ps_value, float *als_value) |
Getting ALS and PS values. | |
uint8_t | proximity11_set_ps_threshold_high (proximity11_t *ctx, uint16_t threshold_value) |
Setting High PS threshold value. | |
uint8_t | proximity11_set_ps_threshold_low (proximity11_t *ctx, uint16_t threshold_value) |
Setting Low PS threshold value. | |
void | proximity11_set_als_threshold_high (proximity11_t *ctx, uint16_t threshold_value) |
Setting High Als threshold value. | |
void | proximity11_set_als_threshold_low (proximity11_t *ctx, uint16_t threshold_value) |
Setting Low Als threshold value. | |
uint8_t | proximity11_set_ps_offset (proximity11_t *ctx, uint16_t offset_value) |
Setting PS offset value. | |
This file contains API for Proximity 11 Click driver.