ldctouch 2.0.0.0
|
This file contains API for LDC Touch 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 | ldctouch_t |
LDC Touch Click context object. More... | |
struct | ldctouch_cfg_t |
LDC Touch Click configuration object. More... | |
struct | ldctouch_data_t |
LDC Touch Click data object. More... | |
Enumerations | |
enum | ldctouch_return_value_t { LDCTOUCH_OK = 0 , LDCTOUCH_ERROR = -1 } |
LDC Touch Click return value data. More... | |
Functions | |
void | ldctouch_cfg_setup (ldctouch_cfg_t *cfg) |
LDC Touch configuration object setup function. | |
err_t | ldctouch_init (ldctouch_t *ctx, ldctouch_cfg_t *cfg) |
LDC Touch initialization function. | |
err_t | ldctouch_default_cfg (ldctouch_t *ctx) |
LDC Touch default configuration function. | |
err_t | ldctouch_generic_write (ldctouch_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
LDC Touch I2C writing function. | |
err_t | ldctouch_generic_read (ldctouch_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
LDC Touch I2C reading function. | |
err_t | ldctouch_write_register (ldctouch_t *ctx, uint8_t reg, uint8_t data_in) |
LDC Touch write register function. | |
err_t | ldctouch_read_register (ldctouch_t *ctx, uint8_t reg, uint8_t *data_out) |
LDC Touch read register function. | |
uint8_t | ldctouch_get_s0_pin (ldctouch_t *ctx) |
LDC Touch get s0 pin function. | |
uint8_t | ldctouch_get_s1_pin (ldctouch_t *ctx) |
LDC Touch get s1 pin function. | |
uint8_t | ldctouch_get_s2_pin (ldctouch_t *ctx) |
LDC Touch get s2 pin function. | |
uint8_t | ldctouch_get_s3_pin (ldctouch_t *ctx) |
LDC Touch get s3 pin function. | |
uint8_t | ldctouch_get_int_pin (ldctouch_t *ctx) |
LDC Touch get int pin function. | |
err_t | ldctouch_check_communication (ldctouch_t *ctx) |
LDC Touch check communication function. | |
err_t | ldctouch_set_operation_mode (ldctouch_t *ctx, uint8_t mode) |
LDC Touch set operation mode function. | |
err_t | ldctouch_get_data (ldctouch_t *ctx, ldctouch_data_t *button_data) |
LDC Touch get data function. | |
This file contains API for LDC Touch Click Driver.