getEnabled method

bool getEnabled()

Implementation

bool getEnabled() {
  if (_handle == null || !isAttached) {
    throw StateError('VoltageOutput not open or not attached');
  }
  final pEnabled = calloc<Int32>();
  try {
    bindings.checkPhidgetError(
        bindings.voltageOutputGetEnabled(_handle!, pEnabled), 'getEnabled');
    return pEnabled.value == 1;
  } finally {
    calloc.free(pEnabled);
  }
}