proximity18 2.1.0.0
|
This file contains API for Proximity 18 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 | proximity18_t |
Proximity 18 Click context object. More... | |
struct | proximity18_cfg_t |
Proximity 18 Click configuration object. More... | |
Enumerations | |
enum | proximity18_return_value_t { PROXIMITY18_OK = 0 , PROXIMITY18_ERROR = -1 } |
Proximity 18 Click return value data. More... | |
Functions | |
void | proximity18_cfg_setup (proximity18_cfg_t *cfg) |
Proximity 18 configuration object setup function. | |
err_t | proximity18_init (proximity18_t *ctx, proximity18_cfg_t *cfg) |
Proximity 18 initialization function. | |
err_t | proximity18_default_cfg (proximity18_t *ctx) |
Proximity 18 default configuration function. | |
err_t | proximity18_write_register (proximity18_t *ctx, uint8_t reg, uint16_t data_in) |
Proximity 18 write register function. | |
err_t | proximity18_read_register (proximity18_t *ctx, uint8_t reg, uint16_t *data_out) |
Proximity 18 read register function. | |
err_t | proximity18_check_communication (proximity18_t *ctx) |
Proximity 18 check communication function. | |
uint8_t | proximity18_get_int_pin (proximity18_t *ctx) |
Proximity 18 get int pin function. | |
err_t | proximity18_start_measurement (proximity18_t *ctx) |
Proximity 18 start measurement function. | |
err_t | proximity18_wait_for_data_ready (proximity18_t *ctx) |
Proximity 18 wait for data ready function. | |
err_t | proximity18_read_proximity (proximity18_t *ctx, uint16_t *ps1_data, uint16_t *ps2_data, uint16_t *ps3_data) |
Proximity 18 read proximity function. | |
This file contains API for Proximity 18 Click Driver.