/** * Get the value from a digital input channel. Retrieve the value of a single digital input * channel from the FPGA. * * @return the status of the digital input */ public boolean get() { ByteBuffer status = ByteBuffer.allocateDirect(4); // set the byte order status.order(ByteOrder.LITTLE_ENDIAN); boolean value = DIOJNI.getDIO(m_port, status.asIntBuffer()) != 0; HALUtil.checkStatus(status.asIntBuffer()); return value; }