TP_CheckError

Syntax

#include <nitro/spi.h>
u32 TP_CheckError( TPRequestCommandFlag command_flgs );

Arguments

command_flgs Specifies on which command to perform an error check

Return Values

Returns 0 if no error has been generated. Returns non-zero value if an error has been generated. For details, see TPRequestResult.

Description

Checks to see if a touch panel request that has been transmitted to ARM7 was terminated with an error. You can check more than one request simultaneously if you provide the argument with the bitwise OR of multiple flags.

TP_REQUEST_COMMAND_FLAG_SAMPLING Requests one round of sampling. Sent with a TP_RequestSampling* function.
TP_REQUEST_COMMAND_FLAG_AUTO_ON Requests to start auto-sampling. Sent with the TP_RequestAutoSamplingStart function.
TP_REQUEST_COMMAND_FLAG_AUTO_OFF Requests to stop auto-sampling. Sent with the TP_RequestAutoSamplingStop function.
TP_REQUEST_COMMAND_FLAG_SET_STABILITY Requests to set the chattering parameter. Sent with the TP_RequestSetStability function.

The following describes the enumerated type definitions of the arguments.

// Type of instruction issued to the touch panel
typedef enum {
    TP_REQUEST_COMMAND_FLAG_SAMPLING      =  1 << TP_REQUEST_COMMAND_SAMPLING ,
    TP_REQUEST_COMMAND_FLAG_AUTO_ON       =  1 << TP_REQUEST_COMMAND_AUTO_ON ,
    TP_REQUEST_COMMAND_FLAG_AUTO_OFF      =  1 << TP_REQUEST_COMMAND_AUTO_OFF ,
    TP_REQUEST_COMMAND_FLAG_SET_STABILITY =  1 << TP_REQUEST_COMMAND_SET_STABILITY
} TPRequestCommandFlag;

See Also

Revision History

2009/04/28 Added TPRequestResult to the return value description.
2004/04/19 Changed the argument type.
2004/04/16 Initial version.


CONFIDENTIAL