
54
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:
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.
Return value
Returns
true
if new data is available.
Parameters
pFG
Pointer to a glove device. This is the value returned by
fdOpen()
.
Remarks
This function may be used as an alternative to using the callback function to
trigger events upon the arrival of new glove data.
bool fdNewData(fdGlove *pFG)
Indicates if the driver has received new data since this function was last called.
Return value
Returns
true
if new data is available.
Parameters
pFG
Pointer to a glove device. This is the value returned by
fdOpen()
.
Remarks
This function may be used as an alternative to using the callback function to
trigger events upon the arrival of new glove data.