TP_WaitRawResult

C Specification

#include <nitro/spi.h>
u32 TP_WaitRawResult( 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 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.

Caution

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.

See Also

TP_RequestSamplingAsync, TP_WaitCalibratedResult, TPData

Revision History

04/16/2004 Initial version