OpenCBM
Functions
wait.c File Reference

Wait for listener to signal that it is ready to receive. More...

#include <wdm.h>
#include "cbm_driver.h"
#include "i_iec.h"

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...
 

Detailed Description

Wait for listener to signal that it is ready to receive.



Author
Spiro Trikaliotis
Authors
Based on code from Michael Klein <michael(dot)klein(at)puffin(dot)lb(dot)shuttle(dot)de>

Definition in file wait.c.

Function Documentation

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.

Parameters
PdxPointer to the device extension.
LineWhich line has to be monitored (one of IEC_DATA, IEC_CLOCK, IEC_ATN)
StateType of wait
=1: Wait until that line is set
=0: Wait until that line is unset
ResultPointer 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().