touchclamp
2.0.0.0
|
This file contains API for TouchClamp 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 | touchclamp_t |
Click ctx object definition. More... | |
struct | touchclamp_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | touchclamp_cfg_setup (touchclamp_cfg_t *cfg) |
Config Object Initialization function. More... | |
TOUCHCLAMP_RETVAL | touchclamp_init (touchclamp_t *ctx, touchclamp_cfg_t *cfg) |
Initialization function. More... | |
void | touchclamp_default_cfg (touchclamp_t *ctx) |
Click Default Configuration function. More... | |
void | touchclamp_generic_write (touchclamp_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. More... | |
void | touchclamp_generic_read (touchclamp_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. More... | |
void | touchclamp_soft_reset (touchclamp_t *ctx) |
Soft reset function. More... | |
void | touchclamp_set_touch_threshold (touchclamp_t *ctx, uint8_t th_data) |
Setting touch threshold for a specified electrode function. More... | |
uint8_t | touchclamp_get_touch_threshold (touchclamp_t *ctx, uint8_t electrode) |
Get the current touch threshold for a specified electrode function. More... | |
void | touchclamp_set_release_threshold (touchclamp_t *ctx, uint8_t rth_data) |
Setting release threshold for a specified electrode function. More... | |
uint8_t | touchclamp_get_release_threshold (touchclamp_t *ctx, uint8_t electrode) |
Get the current release threshold for a specified electrode function. More... | |
uint16_t | touchclamp_get_touch_data (touchclamp_t *ctx) |
Get touch data function. More... | |
void | touchclamp_set_sample_period (touchclamp_t *ctx, uint8_t sample_per) |
Sets the sample period function. More... | |
void | touchclamp_digital_toggle (touchclamp_t *ctx, uint8_t electrode) |
Toggles electrode set as GPIO output function. More... | |
void | touchclamp_stop (touchclamp_t *ctx) |
Stop touch clamp function. More... | |
uint8_t | touchclamp_get_interrupt (touchclamp_t *ctx) |
Get state of interrupt pin function. More... | |
This file contains API for TouchClamp Click driver.