DeviceIsReady()

Checks the status of the connected device.

C#

[DllImport("RGUSBdrv.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern byte DeviceIsReady();

Returns:

> 0 if the device is connected.

C# Example:

public static bool Connected
{
get
{
  bool ok = DeviceIsReady() > 0 ? true : DeviceIsReady() > 0;

  return ok;
}
}

Last updated