41 int returnValue=-1, returnValue2, returnValue3, timeoutCount=0;
46 returnValue2 = ~returnValue3;
49 if (++timeoutCount >= 8)
52 returnValue, returnValue2, returnValue3, timeoutCount));
55 returnValue = returnValue2;
56 returnValue2 = returnValue3;
58 }
while ((returnValue != returnValue2) || (returnValue != returnValue3));
81 LONG returnValue = -1;
82 NTSTATUS ntStatus = STATUS_NO_DATA_DETECTED;
96 *Return = (UCHAR) returnValue;
97 ntStatus = STATUS_SUCCESS;
100 FUNC_LEAVE_NTSTATUS(ntStatus);
#define FUNC_LEAVE_LONG(_xxx)
NTSTATUS cbmiec_pp_read(IN PDEVICE_EXTENSION Pdx, OUT UCHAR *Return)
Read a byte from the X[M|A]P1541 cable.
Internal functions and definitions of the libiec library.
#define PP_LP_BIDIR
Bit for setting set bidirectional mode of the LPT.
LONG cbmiec_i_pp_read_debounced(IN PDEVICE_EXTENSION Pdx)
Read a byte from the X[M|A]P1541 cable. Make sure to debounce it.
#define WRITE_PORT_UCHAR(_x_, _y_)
WRITE_PORT_UCHAR replacement for debugging.
Definitions for the opencbm driver.
#define READ_PORT_UCHAR(_x_)
READ_PORT_UCHAR replacement for debugging.