getMaxDataRate method

int getMaxDataRate()

Implementation

int getMaxDataRate() {
  final pMax = calloc<Int32>();
  try {
    bindings.encoderGetMaxDataRate(_handle!, pMax);
    return pMax.value;
  } catch (e) {
    throw PhidgetException('An error occurred while getting maximum data rate: $e');
  } finally {
    calloc.free(pMax);
  }
}