Main Page | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

setrelease.c File Reference

Set a specific line on the IEC bus. More...

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

Go to the source code of this file.

Defines

#define SET_RELEASE_LINE(_LineName, _PPName)

Functions

NTSTATUS cbmiec_iec_setrelease (IN PDEVICE_EXTENSION Pdx, IN USHORT Set, IN USHORT Release)
 Activate and deactive a line on the IEC serial bus.


Detailed Description

Set a specific line on the IEC bus.

**************************************************************

Author:
Spiro Trikaliotis
Version:
Id
setrelease.c,v 1.8 2006/02/24 12:01:24 trikalio Exp

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

Definition in file setrelease.c.


Define Documentation

#define SET_RELEASE_LINE _LineName,
_PPName   ) 
 

Value:

if (Set     & IEC_LINE_##_LineName) { set_mask     |= PP_##_PPName##_OUT; } \
        if (Release & IEC_LINE_##_LineName) { release_mask |= PP_##_PPName##_OUT; }


Function Documentation

NTSTATUS cbmiec_iec_setrelease IN PDEVICE_EXTENSION  Pdx,
IN USHORT  Set,
IN USHORT  Release
 

Activate and deactive a line on the IEC serial bus.

This function activates (sets to 0V, L) and deactivates (set to 5V, H) lines on the IEC serial bus.

Parameters:
Pdx Pointer to the device extension.
Set The mask of which lines should be set. This has to be a bitwise OR between the constants IEC_DATA, IEC_CLOCK, IEC_ATN, and IEC_RESET
Release The mask of which lines should be released. This has to be a bitwise OR between the constants IEC_DATA, IEC_CLOCK, IEC_ATN, and IEC_RESET
Returns:
If the routine succeeds, it returns STATUS_SUCCESS. Otherwise, it returns one of the error status values.
Remarks:
If a bit is specified in the Set as well as in the Release mask, the effect is undefined.

Definition at line 52 of file setrelease.c.

References CBMIEC_SET_RELEASE, DBG_ASSERT, DBG_PREFIX, FUNC_ENTER, FUNC_PARAM, IEC_LINE_ATN, IEC_LINE_CLOCK, IEC_LINE_DATA, and IEC_LINE_RESET.

Referenced by cbm_execute_devicecontrol(), cbmiec_iec_release(), and cbmiec_iec_set().


Generated on Sun Apr 30 18:46:15 2006 for opencbm by  doxygen 1.4.2