コード例 #1
0
ファイル: Connection.cs プロジェクト: teodorro/Centipede
 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
ファイル: Connection.cs プロジェクト: teodorro/Centipede
 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;
 }