#include <nitro/spi.h>
u32 TP_WaitRawResult( TPData * result );
result | Pointer to the variable to obtain touch-panel values. |
0 if touch-panel value is obtained successfully.
Non-zero value if task fails due to some error.
This function waits until the ARM7 sets the touch panel values that were requested using the TP_RequestSamplingAsync
function. It then reads the raw, uncalibrated values (x and y values range from 0 to 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 use an interrupt to wait 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
2004/04/16 Initial version.
CONFIDENTIAL