getIOMode method

IOMode getIOMode()

Implementation

IOMode getIOMode() {
  final pMode = calloc<Int32>();
  try {
    bindings.encoderGetIOMode(_handle!, pMode);
    return IOMode(pMode.value);
  } catch (e) {
    throw PhidgetException('An error occurred getting the IO mode: $e');
  } finally {
    calloc.free(pMode);
  }
}