getEnabled method

bool getEnabled()

Implementation

bool getEnabled() {
  _ensureAttached();
  final pEnabled = calloc<Int32>();
  try {
    bindings.checkPhidgetError(
        bindings.encoderGetEnabled(_handle!, pEnabled), 'Encoder getEnabled');
    return pEnabled.value == 1;
  } finally {
    calloc.free(pEnabled);
  }
}