ADM-XRC SDK 2.8.1 User Guide (Linux)
© Copyright 2001-2009 Alpha Data


ADMXRC_BuildDMAModeWord

Prototype
DWORD
ADMXRC_BuildDMAModeWord(
    DWORD Width,
    DWORD WaitStates,
    DWORD MiscFlags);
Arguments

Argument Type Purpose
Width In Width of operation on local bus
WaitStates In Number of wait states to be introduced by PCI9080
MiscFlags In Miscellaneous mode flags

Return value

If the parameters are valid, a DMA mode word is returned. If the parameters supplied are not valid, the invalid mode word 0xFFFFFFFF is returned.

Description

This function differs from most API functions in that no card handle parameter is required, and the return value is not of type ADMXRC_STATUS.

ADMXRC_BuildDMAModeWord constructs a DWORD value that may later be passed to the DMA functions such as ADMXRC_DoDMA and ADMXRC_DoDMAImmediate. Provided that the DMA mode does not need to be changed, the DMA mode word can be pre-computed and used for many DMA transfers.

The Width parameter should be one value of the enumerated type ADMXRC_DMA_WIDTH.

The WaitStates parameter should be in the inclusive range 0 to 15.

The MiscFlags parameter can be any combination of:

Flag Meaning
ADMXRC_DMAMODE_USEREADY Use local bus READYI# signal
ADMXRC_DMAMODE_USEBTERM Use local bus BTERM# signal
ADMXRC_DMAMODE_BURSTENABLE Allow bursting on local bus
ADMXRC_DMAMODE_FIXEDLOCAL Local bus address does not increment
ADMXRC_DMAMODE_DEMAND Operate in demand mode

 


 Top of page