예제 #1
0
 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;
 }
예제 #2
0
 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;
 }