#include "white_interface.h"
Functions | |
char * | strcpy (char *to, const char *from) |
C library function to copy a string from one location to another location, also used in GBI. | |
int | vccPrintPdxDebugInfo (const char *format,...) |
VCC function to print messages. | |
void | poin_entry_Init () |
void | poin_entry_Run () |
Variables | |
int | connected = 0 |
Set to unconnected. More... | |
char | string_to_GBI [20] |
Buffer to store string from game device. More... | |
char | string_from_GBI [20] |
Buffer to store string from GBI. More... |
|
The most important and only task of this function is to send a Trigger via the Start_Run port of GBI-Test to the Start_Run port of GBI in order to start the first execution of GBI's poin_entry_Run() function which would begin the connection process by sending a connection request. |
|
This function is executed whenever an input has entered into the GBI-Test via its input ports. It can be divided into three sections :
|
|
Set to unconnected. This variable is set to false (=0) initially. When the connection is established between Master and Slave, both GBI would send a trigger value equal to 1 (Set_Post(1) to GBI-Test. When the Set port of GBI-Test is enabled with this value it would set the connected flag to 1. This variable is a flag because it is used to check whether the devices are connected or not when a string has entered GBI-Test from the upper layer via the NET_In port. If connected = 1, then this string would be copied into a buffer. This mechanism is needed to prevent a string from entering Bluetooth before a connection. However, probably due to VCC, the conditional that check this flag has been removed to give way to a successful execution of the integrated Bluetooth module (TwinToothTest). |
|
Buffer to store string from GBI. This buffer is the same as "string_to_GBI" except that it stores the string from GBI (or the other game device) before this string is sent to the upper layer. |
|
Buffer to store string from game device. When a string has entered GBI-Test from a game device, this string would be copied into this 20 bytes size buffer. As the name suggests, the string would be sent to the GBI immediatly after it is copied into this buffer. |