OpenCBM
Macros | Functions
dbgread.c File Reference

Read a RAW byte from the parallel port IN port (Status Port) More...

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

Go to the source code of this file.

Macros

#define PARALLEL_STATUS_PORT_MASK_VALUES   0xF8
 

Functions

NTSTATUS cbmiec_iec_dbg_read (IN PDEVICE_EXTENSION Pdx, OUT UCHAR *Return)
 Read a byte from the parallel port input register. More...
 

Detailed Description

Read a RAW byte from the parallel port IN port (Status Port)



Author
Spiro Trikaliotis

Definition in file dbgread.c.

Macro Definition Documentation

#define PARALLEL_STATUS_PORT_MASK_VALUES   0xF8

The bits not to be masked off for cbmiec_iec_dbg_read()

Definition at line 25 of file dbgread.c.

Referenced by cbmiec_iec_dbg_read().

Function Documentation

NTSTATUS cbmiec_iec_dbg_read ( IN PDEVICE_EXTENSION  Pdx,
OUT UCHAR *  Return 
)

Read a byte from the parallel port input register.

This function reads a byte from the parallel port input register. (STATUS_PORT). It is a helper function for debugging the cable (i.e., for the XCDETECT tool) only!

Parameters
PdxPointer to the device extension.
ReturnPointer to an UCHAR where the read byte is written to.
Returns
If the routine succeeds, it returns STATUS_SUCCESS. Otherwise, it returns one of the error status values.
Remarks
Do not use this function in anything but a debugging aid tool like XCDETECT!

This functions masks some bits off. The bits that are not masked off are defined in PARALLEL_STATUS_PORT_MASK_VALUES.

Definition at line 51 of file dbgread.c.

References DBG_PREFIX, DBG_PRINT, FUNC_ENTER, IN_PORT, PARALLEL_STATUS_PORT_MASK_VALUES, and READ_PORT_UCHAR.

Referenced by cbm_execute_devicecontrol().