# TP_GetCalibratedResult

## C Specification

  `#include <nitro/spi.h>`

      u32 TP_GetCalibratedResult( TPData * result );

## Arguments

result | Pointer to the variable for getting the touch-panel value

## Return Values

0 if touch-panel value is obtained successfully.
Non-zero value if task fails due to some error.

## Description

This function gets the touch-panel value requested by `TP_RequestSamplingAsync`, deeming it to have been set by the ARM7 and treating it as the calibrated screen coordinates. (X value ranges between 0 and 255; Y value ranges between 0 and 191) The value obtained here already accounts for chattering. If a response from ARM7 has not come yet, it may not be possible to obtain a correct value.

## See Also

`TP_RequestSamplingAsync`, `TP_WaitCalibratedResult`, `TP_WaitRawResult`, `TPData`

## Revision History

04/16/2004 Initial version

CONFIDENTIAL