/*
 *
 * Copyright (C) 2022, Samsung Electronics Co., Ltd.
 *
 * Focaltech touchscreen routines
 */

#include "focaltech_driver.h"

////////////////////////////////////////////////
//////////    TUI HAL API   ////////////////////
////////////////////////////////////////////////

TEE_Result tuiHalTouchGetInfo(drTouchInfo_ptr touchSize)
{
    return fts_get_info(touchSize);
}

TEE_Result tuiHalTouchOpen(uint32_t width, uint32_t height, uint32_t touch_type)
{
    (void)touch_type;

    return fts_open(width, height);
}

TEE_Result tuiHalTouchClose(void)
{
    return fts_close();
}

TEE_Result tuiHalTouchProcess(void)
{
    return fts_process();
}
