Solar panel
Loading...
Searching...
No Matches
ft5xx6.c File Reference

FT5xx6 Touch Controller Driver. More...

#include "ft5xx6.h"
#include "drv_digital_out.h"
#include "drv_digital_in.h"

Go to the source code of this file.

Functions

void ft5xx6_cfg_setup (ft5xx6_cfg_t *cfg, const ft5xx6_controller_t *controller)
 FT5xx6 Configuration Object Setup Function.
 
tp_err_t ft5xx6_init (ft5xx6_t *ctx, ft5xx6_cfg_t *cfg, tp_drv_t *drv)
 FT5xx6 Initialization Function.
 
void ft5xx6_default_cfg (ft5xx6_t *ctx)
 FT5xx6 Default Configuration Function.
 
void ft5xx6_generic_write (ft5xx6_t *ctx, uint8_t reg_addr, uint8_t data_in)
 FT5xx6 Generic Write Function.
 
uint8_t ft5xx6_generic_read_single (ft5xx6_t *ctx, uint8_t reg_addr)
 FT5xx6 Generic Single Read Function.
 
tp_err_t ft5xx6_generic_read_multiple (ft5xx6_t *ctx, uint8_t reg_addr, uint8_t *data_out, uint16_t n_bytes)
 FT5xx6 Generic Multiple Read Function.
 
void ft5xx6_dev_mode_setup (ft5xx6_t *ctx, ft5xx6_dev_mode_t mode)
 FT5xx6 Device Mode Setup Function.
 
void ft5xx6_run_mode_setup (ft5xx6_t *ctx, ft5xx6_run_mode_t mode)
 FT5xx6 Run Mode Setup Function.
 
tp_event_t ft5xx6_press_detect (ft5xx6_t *ctx)
 FT5xx6 Touch Pressure Detect Function.
 
void ft5xx6_press_coordinates (ft5xx6_t *ctx, tp_touch_item_t *touch_item)
 FT5xx6 Pressure Coordinates Check Function.
 
void ft5xx6_gesture (ft5xx6_t *ctx, tp_event_t *event)
 FT5xx6 Gesture Check Function.
 
tp_err_t ft5xx6_process (ft5xx6_t *ctx)
 FT5xx6 Process Function.
 

Variables

const ft5xx6_controller_t FT5X06_CONTROLLER
 FT5xx6 Events Definition.
 
const ft5xx6_controller_t FT5X16_CONTROLLER
 FT5x16 Touch Controllers Descriptor.
 
const ft5xx6_controller_t FT5X26_CONTROLLER
 FT5x26 Touch Controllers Descriptor.
 
const ft5xx6_controller_t FT5X46_CONTROLLER
 FT5x46 Touch Controllers Descriptor.
 

Detailed Description

FT5xx6 Touch Controller Driver.

Definition in file ft5xx6.c.

Variable Documentation

◆ FT5X06_CONTROLLER

const ft5xx6_controller_t FT5X06_CONTROLLER
Initial value:
=
{
{
{ 0x00, TP_EVENT_GEST_NONE },
{ 0x10, TP_EVENT_GEST_LEFT },
{ 0x18, TP_EVENT_GEST_RIGHT },
{ 0x1C, TP_EVENT_GEST_UP },
{ 0x14, TP_EVENT_GEST_DOWN },
{ 0x48, TP_EVENT_GEST_ZOOM_IN },
{ 0x49, TP_EVENT_GEST_ZOOM_OUT }
}
}

FT5xx6 Events Definition.

FT5x06 Touch Controllers Descriptor.

Events code definition depending on the family of touch controller.

Definition at line 53 of file ft5xx6.c.

◆ FT5X16_CONTROLLER

const ft5xx6_controller_t FT5X16_CONTROLLER
Initial value:
=
{
{
{ 0x00, TP_EVENT_GEST_NONE },
{ 0x10, TP_EVENT_GEST_LEFT },
{ 0x18, TP_EVENT_GEST_RIGHT },
{ 0x1C, TP_EVENT_GEST_UP },
{ 0x14, TP_EVENT_GEST_DOWN },
{ 0x48, TP_EVENT_GEST_ZOOM_IN },
{ 0x49, TP_EVENT_GEST_ZOOM_OUT }
}
}

FT5x16 Touch Controllers Descriptor.

Specified descriptor that describe events of the gesture for each controller from FT5x16 series touch controllers.

Definition at line 66 of file ft5xx6.c.

◆ FT5X26_CONTROLLER

const ft5xx6_controller_t FT5X26_CONTROLLER
Initial value:
=
{
{
{ 0x00, TP_EVENT_GEST_NONE },
{ 0x1C, TP_EVENT_GEST_LEFT },
{ 0x14, TP_EVENT_GEST_RIGHT },
{ 0x10, TP_EVENT_GEST_UP },
{ 0x18, TP_EVENT_GEST_DOWN },
{ 0x48, TP_EVENT_GEST_ZOOM_IN },
{ 0x49, TP_EVENT_GEST_ZOOM_OUT }
}
}

FT5x26 Touch Controllers Descriptor.

Specified descriptor that describe events of the gesture for each controller from FT5x26 series touch controllers.

Definition at line 79 of file ft5xx6.c.

◆ FT5X46_CONTROLLER

const ft5xx6_controller_t FT5X46_CONTROLLER
Initial value:
=
{
{
{ 0x00, TP_EVENT_GEST_NONE },
{ 0x1C, TP_EVENT_GEST_LEFT },
{ 0x14, TP_EVENT_GEST_RIGHT },
{ 0x10, TP_EVENT_GEST_UP },
{ 0x18, TP_EVENT_GEST_DOWN },
{ 0x48, TP_EVENT_GEST_ZOOM_IN },
{ 0x49, TP_EVENT_GEST_ZOOM_OUT }
}
}

FT5x46 Touch Controllers Descriptor.

Specified descriptor that describe events of the gesture for each controller from FT5x46 series touch controllers.

Definition at line 92 of file ft5xx6.c.