capsense 2.0.0.0
|
This file contains API for CapSense 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 | capsense_t |
Click ctx object definition. More... | |
struct | capsense_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | CAPSENSE_MAP_MIKROBUS(cfg, mikrobus) |
#define | CAPSENSE_OK 0 |
#define | CAPSENSE_ERROR -1 |
#define | CAPSENSE_COMMAND_REG 0xA0 |
#define | CAPSENSE_CS_ENABL0 0x06 |
#define | CAPSENSE_CS_ENABL1 0x07 |
#define | CAPSENSE_GPIO_ENABLE0 0x08 |
#define | CAPSENSE_DM_STRONG0 0x11 |
#define | CAPSENSE_CS_SLID_CONFIG 0x75 |
#define | CAPSENSE_CS_SLID_MULM 0x77 |
#define | CAPSENSE_CS_SLID_MULL 0x78 |
#define | CAPSENSE_OUTPUT_PORT0 0x04 |
#define | CAPSENSE_CS_READ_RAW 0x87 |
#define | CAPSENSE_CS_READ_STATUS0 0x88 |
#define | CAPSENSE_CS_READ_STATUS1 0x89 |
#define | CAPSENSE_CS_READ_CEN_POSM 0x8A |
#define | CAPSENSE_CS_READ_CEN_POSL 0x8B |
#define | CAPSENSE_CS_READ_CEN_PEAKM 0x8C |
#define | CAPSENSE_CS_READ_CEN_PEAKL 0x8D |
#define | CAPSENSE_DEVICE_ID 0x7A |
#define | CAPSENSE_DEVICE_STATUS 0x7B |
#define | CAPSENSE_I2C_ADDRESS_0 0x00 |
#define | CAPSENSE_I2C_ADDRESS_1 0x4B |
Functions | |
void | capsense_cfg_setup (capsense_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | capsense_init (capsense_t *ctx, capsense_cfg_t *cfg) |
Initialization function. | |
err_t | capsense_default_cfg (capsense_t *ctx) |
Click Default Configuration function. | |
err_t | capsense_generic_write (capsense_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
err_t | capsense_generic_read (capsense_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
err_t | capsense_write_data (capsense_t *ctx, uint8_t reg_address, uint8_t write_command) |
Generic write data function. | |
err_t | capsense_read_data (capsense_t *ctx, uint8_t reg_address, uint8_t *read_data) |
Read one byte from register address. | |
err_t | capsense_read_data_bytes (capsense_t *ctx, uint8_t reg_address, uint16_t *read_data) |
Read two bytes from register address. | |
err_t | capsense_get_slider_lvl (capsense_t *ctx, uint8_t *slider_lvl) |
Function get slider level. | |
This file contains API for CapSense Click driver.