# TP_WaitRawResult

## C Specification

`#include <nitro/spi.h>`

    u32 TP_WaitRawResult( TPData * result );

## Description

This function waits until touch panel values that were requested using `TP_RequestSamplingAsync` are set from ARM7. It then reads the uncalibrated raw values. (Range for x, y: 0 – 4095) With this, you can obtain values for which chattering measures have been taken.

## Notes

If this function is called before a response is received from ARM7, it will wait with an interrupt for a completion response. Therefore, if it is called while FIFO receive interrupts from ARM7 are prohibited, it may not be possible to return from wait.

Calling it during a touch panel callback will not cause a problem since the completion response has already been received.

## Arguments

`result` | Pointer to a variable that is used to acquire touch panel values

## Return Values

Returns 0 if touch panel value acquisition succeeds.

Returns a value of non-zero if touch panel value acquisition fails due to an error.

## See Also

`TP_RequestSamplingAsync`, `TP_WaitCalibratedResult`, `TPData`

## Revision History

04/16/2004 Initial version