private uint TryToGetUInt(Device device, RSH_GET arg) { uint res = WaitingTime; var st = device.Get(arg, ref res); if (st != RSH_API.SUCCESS) throw new IOException("RSH_API: " + st.ToString() + " :: " + "device.Get(" + arg.ToString() +")"); return res; }
private RshBoardPortInfo TryToGetBPI(Device device, RSH_GET arg) { var res = new RshBoardPortInfo(); var st = device.Get(arg, ref res); if (st != RSH_API.SUCCESS) throw new IOException("RSH_API: " + st.ToString() + " :: " + "device.Get(" + arg.ToString() + ")"); return res; }