touchpad 2.0.0.0
|
This file contains API for Touchpad 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 | touchpad_t |
Click ctx object definition. More... | |
struct | touchpad_cfg_t |
Click configuration structure definition. More... | |
struct | touchpad_cord_t |
Coordinate structure definition. More... | |
Functions | |
void | touchpad_cfg_setup (touchpad_cfg_t *cfg) |
Config Object Initialization function. | |
TOUCHPAD_RETVAL | touchpad_init (touchpad_t *ctx, touchpad_cfg_t *cfg) |
Initialization function. | |
void | touchpad_default_cfg (touchpad_t *ctx) |
Click Default Configuration function. | |
void | touchpad_generic_write (touchpad_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | touchpad_generic_read (touchpad_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | touchpad_get_touch_coordinate (touchpad_t *ctx, touchpad_cord_t *cord) |
Get touch coordinate. | |
uint8_t | touchpad_get_interrupt_state (touchpad_t *ctx) |
Get interrupt state. | |
void | touchpad_reset (touchpad_t *ctx) |
Hardware Reset. | |
uint8_t | touchpad_get_event_state (touchpad_t *ctx) |
Get event state. | |
uint8_t | touchpad_get_gesture_type (touchpad_t *ctx) |
Gesture type. | |
This file contains API for Touchpad Click driver.