OpenCBM
Functions
poll.c File Reference

Write one byte to the IEC bus. More...

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

Go to the source code of this file.

Functions

NTSTATUS cbmiec_iec_poll (IN PDEVICE_EXTENSION Pdx, OUT PUCHAR Result)
 Polls the status of the lines on the IEC bus. More...
 

Detailed Description

Write one byte to the IEC bus.



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

Definition in file poll.c.

Function Documentation

NTSTATUS cbmiec_iec_poll ( IN PDEVICE_EXTENSION  Pdx,
OUT PUCHAR  Result 
)

Polls the status of the lines on the IEC bus.

Parameters
PdxPointer to the device extension.
ResultPointer to a variable which will hold the value of the IEC bus
Returns
If the routine succeeds, it returns STATUS_SUCCESS. Otherwise, it returns one of the error status values.

Definition at line 39 of file poll.c.

References FUNC_ENTER, IEC_LINE_ATN, IEC_LINE_CLOCK, IEC_LINE_DATA, IEC_LINE_RESET, IN_PORT, PP_ATN_IN, PP_CLK_IN, PP_DATA_IN, PP_RESET_IN, and READ_PORT_UCHAR.

Referenced by cbm_execute_devicecontrol(), and cbmiec_iec_wait().