TP_WaitBusy


C Specification

#include <nitro/spi.h>

void TP_WaitBusy( TPRequestCommandFlag command_flgs );

Description

Waits until processing is finished for touch panel request instructions that have been sent to ARM7

By providing the logical sum of multiple flags in the argument, you can check them simultaneously.

Caution

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_REQUEST_COMMAND_FLAG_SAMPLING Requests sampling one time. Send with TP_RequestSampling.
TP_REQUEST_COMMAND_FLAG_AUTO_ON Requests to begin autosampling. Send with TP_RequestAutoSamplingStart.
TP_REQUEST_COMMAND_FLAG_AUTO_OFF Requests to end autosampling. Send with TP_RequestAutoSamplingStop.
TP_REQUEST_COMMAND_FLAG_SET_STABILITY Requests to set chattering provision parameters. Send with TP_RequestSetStability.


Argument enumerators are described below.

// Type of instruction to issue 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;

Arguments

command_flgs Specifies for which command to wait

Return Values

None

See Also

TP_RequestAutoSamplingStart, TP_RequestAutoSamplingStop, TP_RequestSetStability, TP_CheckError

Revision History

04/19/2004 Added argument
04/16/2004 Initial version