/*
 *
 * Copyright (C) 2012-2021, Samsung Electronics Co., Ltd.
 *
 * High level wrapper for STM touchscreen
 */

#include "stm_driver.h"

////////////////////////////////////////////////
//////////    TUI HAL API   ////////////////////
////////////////////////////////////////////////

TEE_Result tuiHalTouchGetInfo(drTouchInfo_ptr touchSize)
{
    return stm_get_info(touchSize);
}

TEE_Result tuiHalTouchOpen(uint32_t width, uint32_t height, uint32_t touch_type)
{
    (void)touch_type;

    return stm_open(width, height);
}

TEE_Result tuiHalTouchClose(void)
{
    return stm_close();
}

TEE_Result tuiHalTouchProcess(void)
{
    return stm_process();
}
