proxfusion2 2.0.0.0
|
This file contains API for ProxFusion 2 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 | proxfusion2_t |
Click ctx object definition. More... | |
struct | proxfusion2_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | proxfusion2_cfg_setup (proxfusion2_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | proxfusion2_init (proxfusion2_t *ctx, proxfusion2_cfg_t *cfg) |
Initialization function. | |
err_t | proxfusion2_default_cfg (proxfusion2_t *ctx) |
Click Default Configuration function. | |
void | proxfusion2_write_byte (proxfusion2_t *ctx, uint8_t reg, uint8_t d_data) |
Function for writing one byte into the register. | |
uint8_t | proxfusion2_read_byte (proxfusion2_t *ctx, uint8_t reg) |
Function for reads one byte from register. | |
uint16_t | proxfusion2_read_data (proxfusion2_t *ctx, uint8_t reg) |
Function for reads two byte from register. | |
err_t | proxfusion2_check_communication (proxfusion2_t *ctx) |
Function for check communication by reading the device ID registers. | |
uint8_t | proxfusion2_detect_touch (proxfusion2_t *ctx) |
Function for detect Touch. | |
uint8_t | proxfusion2_detect_dark_light (proxfusion2_t *ctx, uint8_t *als_range) |
Function for read ambient light. | |
uint8_t | proxfusion2_detect_hall (proxfusion2_t *ctx) |
Function for read Hall-effect. | |
This file contains API for ProxFusion 2 Click driver.