getVINTDeviceSupportsSetSpeed method

bool getVINTDeviceSupportsSetSpeed()

Implementation

bool getVINTDeviceSupportsSetSpeed() {
  final pVINTDeviceSupportsSetSpeed = calloc<Int32>();
  try {
    bindings.phidgetGetVINTDeviceSupportsSetSpeed(
        _internalHandle!, pVINTDeviceSupportsSetSpeed);
    return pVINTDeviceSupportsSetSpeed.value == 1;
  } catch (e) {
    throw PhidgetException(
        "An error occurred getting vint device supports set speed $e");
  } finally {
    calloc.free(pVINTDeviceSupportsSetSpeed);
  }
}