Struck Documentation
SIS3153
VME interface
Page 18 of 38
3.3
VME Bus
The Windows driver offers the following calls:
int EXPORT sis3153Usb_Vme_Single_Read(HANDLE usbDevice,
ULONG addr,
ULONG am,
ULONG size,
ULONG* data) ;
int EXPORT sis3153Usb_Vme_Dma_Read(HANDLE usbDevice,
ULONG addr,
ULONG am,
ULONG size,
ULONG fifo_mode,
ULONG* dmabufs,
ULONG req_nof_data,
ULONG* got_nof_data) ;
Note:
req_nof_data and got_nof_data are counted in longwords
int EXPORT sis3153Usb_Vme_Single_Write(HANDLE usbDevice,
ULONG addr,
ULONG am,
ULONG size,
ULONG data);
int EXPORT sis3153Usb_Vme_Dma_Write(HANDLE usbDevice,
ULONG addr,
ULONG am,
ULONG size,
ULONG fifo_mode,
ULONG* dmabufs,
ULONG req_nof_data,
ULONG* put_nof_data);
Not all combinations of the parameters are possible and allowed.
All supported VME cycles are defined in the include file
..\sis3153usb_vme_win_utils\sis3153usb_calls\ sis3153usb_vme_calls.h.
Examples:
int vme_A32D32_read(HANDLE hXDev,
u_int32_t vme_adr,
u_int32_t* vme_data ) ;
int vme_A32MBLT64_read(HANDLE hXDev,
u_int32_t vme_adr,
u_int32_t* vme_data,
u_int32_t req_num_of_lwords,
u_int32_t* got_no_of_lwords) ;
Note:
req_num_of_lwords
and
got_no_of_lwords
are counted in longwords