#include <nitro/spi.h>
u32 TP_GetCalibratedResult( 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 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.
TP_RequestSamplingAsync
, TP_WaitCalibratedResult
, TP_WaitRawResult
, TPData
04/16/2004 Initial version