/*
 *
 * Copyright (C) 2012-2019, Samsung Electronics Co., Ltd.
 *
 * Himax touchscreen routines, header file
 */

#pragma once

#include "touch_queue.h"
#include "tuiHal.h"

/* Touch parameters */
#define HIMAX_RETRY_COUNT            3

#define MAX_SUPPORTED_FINGER_NUM     10

#define HX_TOUCH_INFO_POINT_CNT      52

#define HX_TOUCH_INFO_SIZE           56

struct hx_ts_info {
    unsigned int width;
    unsigned int height;
    uint8_t coord_buf[HX_TOUCH_INFO_SIZE];
    uint8_t state_info[2];
};

extern struct hx_ts_info hx_data;

int himax_driver_init(struct hx_ts_info *hx_data);
int himax_driver_release(void);
int himax_irq_process(void);
