capsense2 2.0.0.0
|
This file contains API for CapSense 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 | capsense2_t |
CapSense 2 Click context object. More... | |
struct | capsense2_cfg_t |
CapSense 2 Click configuration object. More... | |
Enumerations | |
enum | capsense2_return_value_t { CAPSENSE2_OK = 0 , CAPSENSE2_ERROR = -1 } |
CapSense 2 Click return value data. More... | |
Functions | |
void | capsense2_cfg_setup (capsense2_cfg_t *cfg) |
CapSense 2 configuration object setup function. | |
err_t | capsense2_init (capsense2_t *ctx, capsense2_cfg_t *cfg) |
CapSense 2 initialization function. | |
err_t | capsense2_default_cfg (capsense2_t *ctx) |
CapSense 2 default configuration function. | |
err_t | capsense2_generic_write (capsense2_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len) |
CapSense 2 I2C writing function. | |
err_t | capsense2_generic_read (capsense2_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len) |
CapSense 2 I2C reading function. | |
err_t | capsense2_write_register (capsense2_t *ctx, uint8_t reg, uint8_t data_in) |
CapSense 2 write register function. | |
err_t | capsense2_read_register (capsense2_t *ctx, uint8_t reg, uint8_t *data_out) |
CapSense 2 read register function. | |
void | capsense2_set_reset_pin (capsense2_t *ctx, uint8_t state) |
CapSense 2 set reset pin function. | |
uint8_t | capsense2_get_alert_pin (capsense2_t *ctx) |
CapSense 2 get alert pin function. | |
void | capsense2_reset_device (capsense2_t *ctx) |
CapSense 2 reset device function. | |
err_t | capsense2_check_communication (capsense2_t *ctx) |
CapSense 2 check communication function. | |
err_t | capsense2_clear_interrupt (capsense2_t *ctx) |
CapSense 2 clear interrupt function. | |
This file contains API for CapSense 2 Click Driver.