#include <nitro/spi.h>
u32 TP_WaitRawResult( TPData * result );
result | Pointer to the variable for getting the touch-panel value |
0 if touch-panel value is obtained successfully.
Non-zero value if task fails due to some error.
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.
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.
TP_RequestSamplingAsync
, TP_WaitCalibratedResult
, TPData
04/16/2004 Initial version