OpenCBM
ppwrite.c
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version
5  * 2 of the License, or (at your option) any later version.
6  *
7  * Copyright 1999-2004 Michael Klein <michael(dot)klein(at)puffin(dot)lb(dot)shuttle(dot)de>
8  * Copyright 2001-2004 Spiro Trikaliotis
9  *
10  */
11 
22 #include <wdm.h>
23 #include "cbm_driver.h"
24 #include "i_iec.h"
25 
41 NTSTATUS
42 cbmiec_pp_write(IN PDEVICE_EXTENSION Pdx, IN UCHAR Value)
43 {
44  FUNC_ENTER();
45 
46  FUNC_PARAM((DBG_PREFIX "value = 0x%02x", (int)Value));
47 
48  if (Pdx->IecOutBits & PP_LP_BIDIR)
49  {
51  }
52  WRITE_PORT_UCHAR(PAR_PORT, Value);
53 
54  FUNC_LEAVE_NTSTATUS_CONST(STATUS_SUCCESS);
55 }
NTSTATUS cbmiec_pp_write(IN PDEVICE_EXTENSION Pdx, IN UCHAR Value)
Write a byte to the X[M|A]P1541 cable.
Definition: ppwrite.c:42
#define PAR_PORT
Definition: i_iec.h:55
Internal functions and definitions of the libiec library.
#define PP_LP_BIDIR
Bit for setting set bidirectional mode of the LPT.
Definition: i_iec.h:46
#define WRITE_PORT_UCHAR(_x_, _y_)
WRITE_PORT_UCHAR replacement for debugging.
Definition: i_iec.h:221
#define CBMIEC_RELEASE(_rel)
Definition: i_iec.h:66
#define FUNC_ENTER()
Definition: debug.h:347
#define FUNC_PARAM(_xxx)
Definition: debug.h:351
Definitions for the opencbm driver.
#define DBG_PREFIX
Definition: debug.h:320