19
status = mwriteblock (module, width, offset, length, buffer)
Description:
Write a block of M-Module registers to a specified M-Module position. The
function will write
length
words incrementing the address between each write
Parameters:
module
Integer indicating the M-Module position to write. (0 – 7)
width
Integer specifying the access width in bytes. This value also
determines the increment of the address for each read in the block.
2 = 16-bit
4 = reserved for future use
offset
Integer specifying the register offset to write. This value must be
bounded by the width parameter. For example, if width = 2 then this
value must be a multiple of 2 (0, 2, 4…). If width = 4 then this value
must be a multiple of 4 (0, 4, 8…). Valid values are 0 - 0xFF.
length
Integer indicating the number of words of size
width
to write.
buffer
Buffer of data for the block write
Return:
status
Integer status of the block read (0=Success)
status = mwritefifo (module, width, offset, length, buffer)
Description:
Write a single M-Module registers repeatedly to a specified M-Module position.
The function will write
length
words from the specified offset without
incrementing the address between each write
Parameters:
module
Integer indicating the M-Module position to write. (0 – 7)
width
Integer specifying the access width in bytes.
2 = 16-bit
4 = reserved for future use
offset
Integer specifying the register offset to write. This value must be
bounded by the width parameter. For example, if width = 2 then this
value must be a multiple of 2 (0, 2, 4…). If width = 4 then this value
must be a multiple of 4 (0, 4, 8…). Valid values are 0 - 0xFF.
length
Integer indicating the number of words of size
width
to write.
buffer
Buffer of data for the FIFO write
Return:
status
Integer status of the FIFO read (0=Success)
num_output = output (buffer , length)
Description:
Outputs
length
bytes to the VXI-11 interface from the data in
buffer
. The data
may be ASCII or binary. Refer to section 3.3 for details passing data via the
VXI-11 interface.
Parameters:
length
Integer number of bytes from the buffer to be output
buffer
Buffer of data that is output to the VXI-11 interface
Return:
num_output Integer number of bytes successfully output