#include <nitro/spi.h>
u32 TP_CheckBusy( TPRequestCommandFlag command_flgs );
Checks to see if a touch panel request that has been transmitted to ARM7 is being executed
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 to sample one time. Send with TP_RequestSampling*. |
TP_REQUEST_COMMAND_FLAG_AUTO_ON |
Requests to start autosampling. Send with TP_RequestAutoSamplingStart. |
TP_REQUEST_COMMAND_FLAG_AUTO_OFF |
Requests to stop autosampling. Send with TP_RequestAutoSamplingStop. |
TP_REQUEST_COMMAND_FLAG_SET_STABILITY |
Requests to set parameters to counteract chattering. Send with TP_RequestSetStability. |
Enumeration type definitions for the arguments are shown below.
// According to the 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;
command_flgs |
Specifies the command on which to perform a busy check. |
Returns 0 if a request is not being executed. Returns a non-zero value if a request is being executed.
04/19/2004 Initial version