예제 #1
0
 public boolean readBytes(final int register, final int count, final ByteBuffer buffer)
     throws IOException {
   buffer.clear();
   final int result = _device.read(register, _registerSize, buffer);
   if (result != count) {
     System.out.println("Failed to read " + count + " bytes.  Got " + result);
     return false;
   }
   return true;
 }