TP_GetCalibratedResult

Syntax

#include <nitro/spi.h>
u32 TP_GetCalibratedResult( TPData * result );

Arguments

result Pointer to the variable to obtain touch-panel values.

Return Values

0 if touch-panel value is obtained successfully.
Non-zero value if task fails due to some error.

Description

Considers the touch-panel values requested by the TP_RequestSamplingAsync function to have been set by the ARM7, and gets these values as 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.

See Also

TP_RequestSamplingAsync, TP_WaitCalibratedResult, TP_WaitRawResult, TPData

Revision History

2004/04/16 Initial version.


CONFIDENTIAL