Defines whether the given device is able to communicate with the enabler at the time the function was invoked. This function may be called during initialization.
You can find the template for this subroutine in:
usrtm_dev_ok.c
Syntax
int user_device_okay(device_struct)
DEVICE_DATA *device_struct;
Input Parameters
device_struct
Is a pointer to the structure defining device data. DEVICE_DATA is a typedef to a structure defined in <inc_path/toolkit.h>.
Output Parameters
None
Return Value
This subroutine returns one of the following:
TRUE
FALSE
If TRUE, the device is able to communicate with the communication enabler.
If FALSE, the device is not able to communicate with the communication enabler.
Device Communications toolkit subroutines. |