Download 5DT Data Glove Ultra

Transcript
The information data is specified in the glove user's manual. The size of the
information block is always 32 bytes.
void fdGetDriverInfo(fdGlove *pFG, unsigned char *pData)
Obtains the information data block of the driver.
Return value
None.
Parameters
pFG
Pointer to a glove device. This is the value returned by fdOpen().
pData
Array of 32 bytes that will contain the information data.
Remarks
The information data is a zero terminated string that contains driver information.
The size of the information block is always 32 bytes.
void fdSetCallback(fdGlove *pFG, void *pFunc, LPVOID param)
Sets the Callback function and associated parameters.
Return value
None.
Parameters
pFG
Pointer to a glove device. This is the value returned by fdOpen().
pFunc
Pointer to the callback function. This should be cast to void.
param
The parameter to be given to the callback function.
Remarks
This callback function is called every time a new packet is received by the
driver. Example code snippet to register a callback function:
fdSetCallback(pGlove,(void *)&(DriverUpdate),this);
int fdGetPacketRate(fdGlove *pFG)
Obtains the latest packet rate.
Return value
Returns the latest available packet rate as an integer.
Parameters
pFG
Pointer to a glove device. This is the value returned by fdOpen().
Remarks
None.
bool fdNewData(fdGlove *pFG)
Indicates if the driver has received new data since this function was last called.
68