Vm_Usb Specific Functions; Vme_Register_Write; Vme_Register_Read - Wiener VM-USB User Manual

Hide thumbs Also See for VM-USB:
Table of Contents

Advertisement

The configuration file of a XC3S200 FPGA of VM-USB will occupy 512 sectors of flash
memory (512 calls to the xxusb_flashblock_program). The XC3S400 FPGA of VM-USB
will occupy 830 sectors of flash memory.
7

VM_USB SPECIFIC FUNCTIONS

The following functions are specific to the VM_USB. They are built on top of the general
purpose functions described in section 6 and provide users with an easier and more
transparent way of communicating with the controller.

7.1 VME_register_write

The VME_register_write function writes to the internal registers of the VM_USB as
described in section 3.4.
short VME_register_write{
HANDLE hDevice,
USHORT Address,
LONG Data
};
Parameters
hDevice
[in] Handle to the XX-USB device.
Address
[in] VME offset of the register you wish to write to
Data
[in] Data to be written to the specified register
Return Values
On success, the function returns the number of bytes written to VM-USB
Function returns a negative number on a failure

7.2 VME_register_read

The VME_register_read function reads from the internal registers of the VM_USB as
described in section 3.4.
short VME_register_read{
HANDLE hDevice,
USHORT Address,
LONG Data
};
Parameters
hDevice
[in] Handle to the XX-USB device.
Address
WIENER, Plein & Baus GmbH
46
www.wiener-d.com

Advertisement

Table of Contents
loading

Related Products for Wiener VM-USB

Table of Contents