captouch5 2.0.0.0
|
This file contains API for Cap Touch 5 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 | captouch5_t |
Click ctx object definition. More... | |
struct | captouch5_cfg_t |
Click configuration structure definition. More... | |
struct | T_CAPTOUCH5_BUTTONS |
struct | T_CAPTOUCH5_CONFIG0 |
struct | T_CAPTOUCH5_CONFIG1 |
struct | T_CAPTOUCH5_CONFIG2 |
struct | T_CAPTOUCH5_CONFIG3 |
struct | T_CAPTOUCH5_DEVICE_CONFIG |
Functions | |
void | captouch5_cfg_setup (captouch5_cfg_t *cfg) |
Config Object Initialization function. | |
CAPTOUCH5_RETVAL | captouch5_init (captouch5_t *ctx, captouch5_cfg_t *cfg) |
Initialization function. | |
void | captouch5_default_cfg (captouch5_t *ctx, T_CAPTOUCH5_DEVICE_CONFIG *device_cfg) |
Click Default Configuration function. | |
void | captouch5_generic_write (captouch5_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | captouch5_generic_read (captouch5_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | captouch5_device_config (captouch5_t *ctx, T_CAPTOUCH5_DEVICE_CONFIG *device_cfg) |
Function for configuring device. | |
uint16_t | captouch5_read_two_bytes (captouch5_t *ctx, uint8_t reg_addr) |
Generic read 16bit data function. | |
void | captouch5_write_two_bytes (captouch5_t *ctx, uint8_t reg_addr, uint16_t data_buf) |
Generic write 16bit data function. | |
uint8_t | captouch5_read_byte (captouch5_t *ctx, uint8_t reg_addr) |
Generic read 8bit data function. | |
void | captouch5_write_byte (captouch5_t *ctx, uint8_t reg_addr, uint8_t data_buf) |
Generic write 8bit data function. | |
uint8_t | captouch5_process (captouch5_t *ctx) |
Function for checking error. | |
uint16_t | captouch5_get_device_id (captouch5_t *ctx) |
Function for geting device id. | |
uint8_t | captouch5_get_family_id (captouch5_t *ctx) |
Function for geting family id. | |
void | captouch5_read_button_status (captouch5_t *ctx, T_CAPTOUCH5_BUTTONS *buttons) |
Function read button status. | |
uint16_t | captouch5_read_slider_position (captouch5_t *ctx) |
Function for reading slider position. | |
void | captouch5_software_reset (captouch5_t *ctx) |
Function to reset device. | |
void | captouch5_config_sensors (captouch5_t *ctx, uint16_t sens_data) |
Function for configuring sensor. | |
void | captouch5_config_slider (captouch5_t *ctx, uint8_t slider_data) |
Function for configuring slider. | |
This file contains API for Cap Touch 5 Click driver.