81#define FT5XX6_REG_DEVICE_MODE 0x0
88#define FT5XX6_REG_GEST_ID 0x1
94#define FT5XX6_REG_TD_STATUS 0x2
101#define FT5XX6_REG_TOUCH1_XH 0x3
108#define FT5XX6_REG_TOUCH1_XL 0x4
115#define FT5XX6_REG_TOUCH1_YH 0x5
122#define FT5XX6_REG_TOUCH1_YL 0x6
129#define FT5XX6_REG_TOUCH2_XH 0x9
136#define FT5XX6_REG_TOUCH2_XL 0xA
143#define FT5XX6_REG_TOUCH2_YH 0xB
150#define FT5XX6_REG_TOUCH2_YL 0xC
157#define FT5XX6_REG_TOUCH3_XH 0xF
164#define FT5XX6_REG_TOUCH3_XL 0x10
171#define FT5XX6_REG_TOUCH3_YH 0x11
178#define FT5XX6_REG_TOUCH3_YL 0x12
185#define FT5XX6_REG_TOUCH4_XH 0x15
192#define FT5XX6_REG_TOUCH4_XL 0x16
199#define FT5XX6_REG_TOUCH4_YH 0x17
206#define FT5XX6_REG_TOUCH4_YL 0x18
213#define FT5XX6_REG_TOUCH5_XH 0x1B
220#define FT5XX6_REG_TOUCH5_XL 0x1C
227#define FT5XX6_REG_TOUCH5_YH 0x1D
234#define FT5XX6_REG_TOUCH5_YL 0x1E
241#define FT5XX6_REG_TOUCH_DET_TH 0x80
248#define FT5XX6_REG_TOUCH_PEAK_DET_TH 0x81
255#define FT5XX6_REG_TOUCH_TH_CAL 0x82
262#define FT5XX6_REG_TOUCH_TH_WATER 0x83
269#define FT5XX6_REG_TOUCH_TH_TEMP_COMP 0x84
276#define FT5XX6_REG_POWER_CTRL_MODE 0x86
283#define FT5XX6_REG_MONITOR_STATUS_TMR 0x87
290#define FT5XX6_REG_MONITOR_ACT_PERIOD 0x88
297#define FT5XX6_REG_ENTER_IDLE_TIMER 0x89
304#define FT5XX6_REG_AUTO_CALIB_MODE 0xA0
311#define FT5XX6_REG_LIB_VERSION_H 0xA1
318#define FT5XX6_REG_LIB_VERSION_L 0xA2
325#define FT5XX6_REG_LIB_CHIP_VENDOR_ID 0xA3
332#define FT5XX6_REG_IVT_TO_HOST_STATUS 0xA4
339#define FT5XX6_REG_POWER_CONSUME_MODE 0xA5
346#define FT5XX6_REG_FW_ID 0xA6
353#define FT5XX6_REG_RUNNING_STATE 0xA7
360#define FT5XX6_REG_CTPM_VENDOR_ID 0xA8
366#define FT5XX6_REG_ERROR_ID 0xA9
373#define FT5XX6_REG_CONFIGURE_CAL_MODE 0xAA
380#define FT5XX6_REG_BIG_AREA_TH 0xAE
399#define FT5XX6_INT_MODE_POLLING 0
405#define FT5XX6_INT_MODE_TRIGGER 1
411#define FT5XX6_I2C_ADDR 0x38
417#define FT5XX6_N_DATA_TRANSFER_MIN 1
418#define FT5XX6_N_DATA_TRANSFER_MAX 256
424#define FT5XX6_GESTURE_ITEMS_MAX 7
430#define FT5XX6_EVENT_PRESS_DET 0x80
447#define FT5XX6_MASK_PRESS_COORD 0xFFF
453#define FT5XX6_MASK_PRESS_EVENT 0xC0
459#define FT5XX6_MASK_PRESS_DET 0xC0
465#define FT5XX6_MASK_TP_NUM 0xF
484#define FT5XX6_OFFSET_PRESS_EVENT 6
490#define FT5XX6_OFFSET_PRESS_ID 4
496#define FT5XX6_OFFSET_DEV_MODE 4
502#define FT5XX6_OFFSET_TOUCH_READING 6
510#define FT5XX6_MAP_PINS( cfg ) \
511 cfg.i2c_cfg.scl = CTP_SCL; \
512 cfg.i2c_cfg.sda = CTP_SDA; \
513 cfg.int_pin = CTP_INT
814 uint8_t * data_out, uint16_t n_bytes );
API for Digital input driver.
API for I2C master driver.
Pin and port name type definitions.
hal_pin_name_t pin_name_t
Definition drv_name.h:74
const ft5xx6_controller_t FT5X26_CONTROLLER
FT5x26 Touch Controllers Descriptor.
ft5xx6_run_mode_t
FT5xx6 Run Mode Settings.
Definition ft5xx6.h:536
@ FT5XX6_RUN_MODE_AUTO_CAL
Definition ft5xx6.h:541
@ FT5XX6_RUN_MODE_WORK
Definition ft5xx6.h:538
@ FT5XX6_RUN_MODE_CAL
Definition ft5xx6.h:539
@ FT5XX6_RUN_MODE_FACT
Definition ft5xx6.h:540
@ FT5XX6_RUN_MODE_CFG
Definition ft5xx6.h:537
const ft5xx6_controller_t FT5X16_CONTROLLER
FT5x16 Touch Controllers Descriptor.
const ft5xx6_controller_t FT5X46_CONTROLLER
FT5x46 Touch Controllers Descriptor.
ft5xx6_dev_mode_t
FT5xx6 Device Mode Settings.
Definition ft5xx6.h:524
@ FT5XX6_DEV_MODE_SYS_INFO
Definition ft5xx6.h:526
@ FT5XX6_DEV_MODE_NORMAL
Definition ft5xx6.h:525
@ FT5XX6_DEV_MODE_TEST
Definition ft5xx6.h:527
const ft5xx6_controller_t FT5X06_CONTROLLER
FT5x06 Touch Controllers Descriptor.
#define FT5XX6_GESTURE_ITEMS_MAX
FT5xx6 Gesture Items Limit Setting.
Definition ft5xx6.h:424
void ft5xx6_run_mode_setup(ft5xx6_t *ctx, ft5xx6_run_mode_t mode)
FT5xx6 Run Mode Setup Function.
uint8_t ft5xx6_generic_read_single(ft5xx6_t *ctx, uint8_t reg_addr)
FT5xx6 Generic Single Read Function.
void ft5xx6_press_coordinates(ft5xx6_t *ctx, tp_touch_item_t *touch_item)
FT5xx6 Pressure Coordinates Check Function.
tp_err_t ft5xx6_init(ft5xx6_t *ctx, ft5xx6_cfg_t *cfg, tp_drv_t *drv)
FT5xx6 Initialization Function.
void ft5xx6_cfg_setup(ft5xx6_cfg_t *cfg, const ft5xx6_controller_t *controller)
FT5xx6 Configuration Object Setup Function.
tp_event_t ft5xx6_press_detect(ft5xx6_t *ctx)
FT5xx6 Touch Pressure Detect Function.
void ft5xx6_dev_mode_setup(ft5xx6_t *ctx, ft5xx6_dev_mode_t mode)
FT5xx6 Device Mode Setup Function.
void ft5xx6_gesture(ft5xx6_t *ctx, tp_event_t *event)
FT5xx6 Gesture Check Function.
void ft5xx6_generic_write(ft5xx6_t *ctx, uint8_t reg_addr, uint8_t data_in)
FT5xx6 Generic Write Function.
void ft5xx6_default_cfg(ft5xx6_t *ctx)
FT5xx6 Default Configuration Function.
tp_err_t ft5xx6_process(ft5xx6_t *ctx)
FT5xx6 Process 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.
Digital input driver context structure, consisted of the following fields :
Definition drv_digital_in.h:73
FT5xx6 Configuration Object.
Definition ft5xx6.h:571
const ft5xx6_controller_t * controller
Definition ft5xx6.h:576
i2c_master_config_t i2c_cfg
Definition ft5xx6.h:574
pin_name_t int_pin
Definition ft5xx6.h:572
FT5xx6 Gesture Items.
Definition ft5xx6.h:561
FT5xx6 Gesture Item Definition.
Definition ft5xx6.h:550
tp_event_t value
Definition ft5xx6.h:552
uint8_t key
Definition ft5xx6.h:551
FT5xx6 Context Object.
Definition ft5xx6.h:585
i2c_master_t i2c
Definition ft5xx6.h:586
tp_event_t gesture
Definition ft5xx6.h:594
tp_touch_item_t touch
Definition ft5xx6.h:593
const ft5xx6_controller_t * controller
Definition ft5xx6.h:590
tp_event_t press_det
Definition ft5xx6.h:592
digital_in_t int_pin
Definition ft5xx6.h:588
I2C Master initialization configuration structure, consisted of the following fields :
Definition drv_i2c_master.h:97
I2C Master driver context structure, consisted of the following fields :
Definition drv_i2c_master.h:121
Touch Panel Driver Interface Items.
Definition tp.h:199
Touch Item Definition.
Definition tp.h:151
tp_event_t
Touch Panel Event Code Definition.
Definition tp.h:81
tp_err_t
Touch Panel Error Code Definition.
Definition tp.h:65