getDataRate method

int getDataRate()

Implementation

int getDataRate() {
  _ensureAttached();
  final pDataRate = calloc<Int32>();
  try {
    bindings.checkPhidgetError(
        bindings.encoderGetDataRate(_handle!, pDataRate),
        'Encoder getDataRate');
    return pDataRate.value;
  } finally {
    calloc.free(pDataRate);
  }
}