VxiOut Procedure

Writes data to a specified VXI address with the specified access mode.

Syntax

[ lStatus = ] VxiOut ( lMode, lAddress, lWidth, lData )

The VxiOut procedure syntax has the following parts:

 

Name

Type

Description

lStatus

Long

Status

lMode

Val Long

Source access mode

lAddress

Val Long

Source address

lWidth

Val Long

Width in bytes of data

lData

Val Long

Data value to write

Comments

The function may be used when a direct write to VXI bus addresses is required.

The lMode parameter is specified as follows:

Bits 0,1 - VXI address space:

 

1

A16

2

A24

3

A32

Bits 2,3,4 - Access Privilege:

 

0

Nonprivileged data access

1

Supervisory data access

2

Nonprivileged program access

3

Supervisory program access

4

Nonprivileged block access

5

Supervisory block access

Bit 7 - Byte Order:

 

0

Motorola (MSB first)

1

Intel (LSB first)

All other bits should be 0.

If lStatus is negative, an error has occurred. Otherwise, the function is successful.

Example

The following command writes the data 0xA800 to the offset register of a device at Logical Address 4:

VxiOut (1, 0xC10A, 2, 0xA800)

See Also

VxiIn, VxiMove