DioGetJumpAddress

Applies To

GX5150, File.

Purpose

Returns register A or B Jump address.

Syntax

DioGetJumpAddress (nMasterHandle, nRegister, pdwJumpAddress, pnStatus)

Parameters

Name

Type

Comments

nMasterHandle

SHORT

Master or File board handle.

nRegister

SHORT

0       Register A.

1       Register B.

pdwJumpAddress

PDWORD

Jump address.

pnStatus

PSHORT

Returned status: 0 on success, negative number on failure.

Comments

The jump address can be any step in the physical memory range.

The jump address must reflect the current Master board width setting. If the width were set to 16-bit, then the available address space is double what it would be if it were set to 32-bit. If the width were set to 8-bit, then the available address space is quadruple what it would be if it were set to 32-bit.

Example

The following example sets the register A jump address to 123 and then verifies the address by calling DioGetJumpAddress:

 

SHORT   nStatus;

DWORD   dwAddress;

DioSetJumpAddress(nMasterHandle, 0, 123, &nStatus);

DioGetJumpAddress(nMasterHandle, 0, &dwAddress, &nStatus);

 

See Also

DioGetJumpAddress, DioSetupIOConfiguration, DioWriteIOPinsValue, DioGetErrorString