#include <nitro/spi.h>
void TP_WaitBusy( TPRequestCommandFlag command_flgs );
command_flgs | Specifies for which command to wait |
None.
Waits until processing is finished for touch panel request instructions that have been sent to ARM7. 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 autosampling. Sent with the TP_RequestAutoSamplingStart function. |
TP_REQUEST_COMMAND_FLAG_AUTO_OFF |
Requests to stop autosampling. 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;
This function uses an interrupt to wait for a completion response from ARM7. If it is called while FIFO receive interrupts from ARM7 are prohibited, it may not be possible to return from wait.
TP_RequestAutoSamplingStart, TP_RequestAutoSamplingStop,TP_RequestSetStability, TP_CheckError
2004/04/19 Added argument.
2004/04/16 Initial version.
CONFIDENTIAL