stm32f469_fw/src/hw/driver/ts.c
bool tsResetTouchData(void)
{
  //err_code_t ts_status = ERR_TS;
  uint32_t index;

#if (TS_MULTI_TOUCH_SUPPORTED == 1)
  ts_data.gesture_id = GEST_ID_NO_GESTURE;
#endif
  ts_data.detect_cnt = 0;

  for(index = 0; index < TS_MAX_NB_TOUCH; index++)
  {
    ts_data.x_axis[index]   = 0;
    ts_data.y_axis[index]   = 0;
#if (TS_MULTI_TOUCH_SUPPORTED == 1)
    ts_data.area[index]     = 0;
    ts_data.event_id[index] = TOUCH_EVENT_NO_EVT;
    ts_data.weight[index]   = 0;
#endif
  }

  //ts_status = OK;

  return true;
}
/**
  * @brief  Function used to reset all touch data before a new acquisition
  *         of touch information.
  * @param  ts_data: Pointer to touch screen current state structure
  * @retval OK if OK, TE_ERROR if problem found.
  */
@brief  Function used to reset all touch data before a new acquisition
of touch information.
@param  ts_data: Pointer to touch screen current state structure
@retval OK if OK, TE_ERROR if problem found.
@brief Function used to reset all touch data before a new acquisition of touch information . @param ts_data : Pointer to touch screen current state structure @retval OK if OK TE_ERROR if problem found .
bool tsResetTouchData(void)
{
  uint32_t index;
#if (TS_MULTI_TOUCH_SUPPORTED == 1)
  ts_data.gesture_id = GEST_ID_NO_GESTURE;
#endif
  ts_data.detect_cnt = 0;
  for(index = 0; index < TS_MAX_NB_TOUCH; index++)
  {
    ts_data.x_axis[index]   = 0;
    ts_data.y_axis[index]   = 0;
#if (TS_MULTI_TOUCH_SUPPORTED == 1)
    ts_data.area[index]     = 0;
    ts_data.event_id[index] = TOUCH_EVENT_NO_EVT;
    ts_data.weight[index]   = 0;
#endif
  }
  return true;
}
bool tsResetTouchData ( void ) { uint32_t index ; #if ( TS_MULTI_TOUCH_SUPPORTED == 1 ) ts_data . gesture_id = GEST_ID_NO_GESTURE ; #endif ts_data . detect_cnt = 0 ; for ( index = 0 ; index < TS_MAX_NB_TOUCH ; index ++ ) { ts_data . x_axis [ index ] = 0 ; ts_data . y_axis [ index ] = 0 ; #if ( TS_MULTI_TOUCH_SUPPORTED == 1 ) ts_data . area [ index ] = 0 ; ts_data . event_id [ index ] = TOUCH_EVENT_NO_EVT ; ts_data . weight [ index ] = 0 ; #endif } return true ; }
@brief  Function used to reset all touch data before a new acquisition
         of touch information.
@brief Function used to reset all touch data before a new acquisition of touch information .
//err_code_t ts_status = ERR_TS; //ts_status = OK;