proximity 2.0.0.0
|
This file contains API for Proximity 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 | proximity_t |
Click ctx object definition. More... | |
struct | proximity_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | proximity_cfg_setup (proximity_cfg_t *cfg) |
Config Object Initialization function. | |
PROXIMITY_RETVAL | proximity_init (proximity_t *ctx, proximity_cfg_t *cfg) |
Initialization function. | |
void | proximity_write_byte (proximity_t *ctx, uint8_t w_addr, uint8_t w_data) |
Functions for write one byte in register. | |
uint8_t | proximity_read_byte (proximity_t *ctx, uint8_t r_addr) |
Functions for read byte from register. | |
void | proximity_read_data (proximity_t *ctx, uint8_t r_addr, uint8_t *rcv_data, uint8_t n_len) |
Functions for read data from register. | |
void | proximity_write_data (proximity_t *ctx, uint8_t w_addr, uint8_t *wr_data, uint8_t n_len) |
Functions for write data. | |
void | proximity_set_default_mode (proximity_t *ctx) |
Functions for sets default mode. | |
void | proximity_set_upper_threshold (proximity_t *ctx) |
Functions for sets upper threshold. | |
uint16_t | proximity_read_prox_data (proximity_t *ctx) |
Functions for reads Proximity data. | |
uint16_t | proximity_read_ambient_light (proximity_t *ctx) |
Functions for reads Ambient light. | |
This file contains API for Proximity Click driver.