getHoldingCurrentLimit method

double getHoldingCurrentLimit()

Implementation

double getHoldingCurrentLimit() {
  final pHoldingCurrentLimit = calloc<Double>();
  try {
    bindings.stepperGetHoldingCurrentLimit(_handle!, pHoldingCurrentLimit);
    return pHoldingCurrentLimit.value;
  } catch (e) {
    throw PhidgetException(
        "An error occurred getting holding current limit $e");
  } finally {
    calloc.free(pHoldingCurrentLimit);
  }
}