getPowerSupply method
Implementation
PowerSupply getPowerSupply() {
final pSupply = calloc<Int32>();
try {
bindings.voltageInputGetPowerSupply(_handle!, pSupply);
return PowerSupply(pSupply.value);
} catch (e) {
throw PhidgetException('An error occurred getting the power supply');
} finally {
calloc.free(pSupply);
}
}