...
Code Block | ||
---|---|---|
| ||
public static bool TE_USB_FX2_SendCommand(ref CyUSBDevice TE_USB_FX2_USBDevice, ref byte[] Command, ref int CmdLength,ref byte[] Reply, ref int ReplyLength, uint Timeout); |
Your application program shall call this function like this:
Code Block | ||
---|---|---|
| ||
TE_USB_FX2.TE_USB_FX2.TE_USB_FX2_SendCommand(ref TE_USB_FX2_USBDevice, ref Command, ref CmdLength, ref Reply, ref ReplyLength, Timeout); |
Code Block | ||
---|---|---|
| ||
ref CyUSBDevice TE_USB-FX2_USBDevice |
...
The unsigned integer value is the time in milliseconds assigned to the synchronous method XferData() of data transfer used by CyUSB.dll.
Timeout is the time that is allowed to the function for sending/receiving the data packet passed to the function; this timeout shall be large enough to allow the data/command transmission/reception. Otherwise the transmission/reception will fail. See Timeout Setting.
bool : logical type
This function returns true if it is able to send a command to EP1 and receive a response within 2*Timeout milliseconds. This function returns false otherwise.
...