OpenCBM
|
Write a RAW byte to the parallel port OUT port (Control Port) More...
Go to the source code of this file.
Macros | |
#define | PARALLEL_CONTROL_PORT_MASK_VALUES 0x0F |
Functions | |
NTSTATUS | cbmiec_iec_dbg_write (IN PDEVICE_EXTENSION Pdx, IN UCHAR Value) |
Write a byte to the parallel port output register. More... | |
#define PARALLEL_CONTROL_PORT_MASK_VALUES 0x0F |
The bits not to be masked off for cbmiec_iec_dbg_write()
Definition at line 25 of file dbgwrite.c.
Referenced by cbmiec_iec_dbg_write().
NTSTATUS cbmiec_iec_dbg_write | ( | IN PDEVICE_EXTENSION | Pdx, |
IN UCHAR | Value | ||
) |
Write a byte to the parallel port output register.
This function writes a byte to the parallel port output register. (CONTROL_PORT). It is a helper function for debugging the cable (i.e., for the XCDETECT tool) only!
Pdx | Pointer to the device extension. |
Value | The value to set the control port to |
After this function has been called, it is NOT safe to use the parallel port driver unless you close the driver and open it again!
This functions masks some bits off. That is, the bits not in the mask are not changed at all. The bits that are not masked off are defined in PARALLEL_CONTROL_PORT_MASK_VALUES.
Definition at line 56 of file dbgwrite.c.
References DBG_PREFIX, DBG_PRINT, FUNC_ENTER, OUT_PORT, PARALLEL_CONTROL_PORT_MASK_VALUES, and WRITE_PORT_UCHAR.
Referenced by cbm_execute_devicecontrol().