OpenCBM
Functions
ppread.c File Reference

Read a byte from the X[M|A]P1541-cable. More...

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

Go to the source code of this file.

Functions

LONG cbmiec_i_pp_read_debounced (IN PDEVICE_EXTENSION Pdx)
 Read a byte from the X[M|A]P1541 cable. Make sure to debounce it. More...
 
NTSTATUS cbmiec_pp_read (IN PDEVICE_EXTENSION Pdx, OUT UCHAR *Return)
 Read a byte from the X[M|A]P1541 cable. More...
 

Detailed Description

Read a byte from the X[M|A]P1541-cable.



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

Definition in file ppread.c.

Function Documentation

LONG cbmiec_i_pp_read_debounced ( IN PDEVICE_EXTENSION  Pdx)

Read a byte from the X[M|A]P1541 cable. Make sure to debounce it.

This function reads a byte from the parallel portion of the X[M|A]P1541 cable. The lines are debounced.

Parameters
PdxPointer to the device extension.
Returns
The read value, or -1 if debouncing failed.

Definition at line 39 of file ppread.c.

References DBG_PREFIX, DBG_PRINT, FUNC_ENTER, FUNC_LEAVE_LONG, PAR_PORT, and READ_PORT_UCHAR.

Referenced by cbmiec_pp_read().

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

Read a byte from the X[M|A]P1541 cable.

This function reads a byte from the parallel portion of the X[M|A]P1541 cable.

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.

Definition at line 79 of file ppread.c.

References cbmiec_i_pp_read_debounced(), CBMIEC_SET, FUNC_ENTER, PAR_PORT, PP_LP_BIDIR, and WRITE_PORT_UCHAR.

Referenced by cbm_execute_devicecontrol(), cbmiec_parallel_burst_read(), and cbmiec_parallel_burst_write().