OpenCBM
|
Wait for listener to signal that it is ready to receive. More...
Go to the source code of this file.
Functions | |
NTSTATUS | cbmiec_iec_wait (IN PDEVICE_EXTENSION Pdx, IN UCHAR Line, IN UCHAR State, OUT PUCHAR Result) |
Wait for a line to have a specific value. More... | |
NTSTATUS cbmiec_iec_wait | ( | IN PDEVICE_EXTENSION | Pdx, |
IN UCHAR | Line, | ||
IN UCHAR | State, | ||
OUT PUCHAR | Result | ||
) |
Wait for a line to have a specific value.
This function waits until a listener is ready.
Pdx | Pointer to the device extension. |
Line | Which line has to be monitored (one of IEC_DATA, IEC_CLOCK, IEC_ATN) |
State | Type of wait =1: Wait until that line is set =0: Wait until that line is unset |
Result | Pointer to a variable which will hold the value of the IEC bus |
Definition at line 45 of file wait.c.
References cbmiec_iec_poll(), cbmiec_schedule_timeout(), cbmiec_udelay(), DBG_PREFIX, FUNC_ENTER, FUNC_PARAM, IEC_LINE_ATN, IEC_LINE_CLOCK, IEC_LINE_DATA, IN_PORT, libiec_global_timeouts, PP_ATN_IN, PP_CLK_IN, PP_DATA_IN, QueueShouldCancelCurrentIrp(), READ_PORT_UCHAR, IEC_TIMEOUTS::T_8_IEC_WAIT_LONG_DELAY, and IEC_TIMEOUTS::T_8_IEC_WAIT_SHORT_DELAY.
Referenced by cbm_execute_devicecontrol().