MIDAS
|
dox
int EXPRT mvme_close | ( | MVME_INTERFACE * | vme | ) |
Close and release ALL the opened VME channel. See example in mvme_open()
*vme | VME structure. |
int EXPRT mvme_get_am | ( | MVME_INTERFACE * | vme, |
int * | am | ||
) |
Get Address Modifier.
*vme | VME structure |
*am | returned address modifier |
int EXPRT mvme_get_blt | ( | MVME_INTERFACE * | vme, |
int * | mode | ||
) |
Get current Data mode.
*vme | VME structure |
*mode | returned BLT mode |
int EXPRT mvme_get_dmode | ( | MVME_INTERFACE * | vme, |
int * | dmode | ||
) |
Get current Data mode.
*vme | VME structure |
*dmode | returned address modifier |
int EXPRT mvme_interrupt_attach | ( | MVME_INTERFACE * | mvme, |
int | level, | ||
int | vector, | ||
void(*)(int, void *, void *) | isr, | ||
void * | info | ||
) |
int EXPRT mvme_open | ( | MVME_INTERFACE ** | vme, |
int | idx | ||
) |
VME open The code below summarize the use of most of the mvme calls included in this interface.
**vme | user VME pointer to the interface |
index | interface number should be used to distingush multiple VME interface access within the same program. |
int EXPRT mvme_read | ( | MVME_INTERFACE * | vme, |
void * | dst, | ||
mvme_addr_t | vme_addr, | ||
mvme_size_t | n_bytes | ||
) |
Read from VME bus. Implementation of the read can include automatic DMA transfer based on the size of the data. See example in mvme_open()
*vme | VME structure |
*dst | destination pointer |
vme_addr | source address (VME location). |
n_bytes | requested transfer size. |
unsigned int EXPRT mvme_read_value | ( | MVME_INTERFACE * | vme, |
mvme_addr_t | vme_addr | ||
) |
Read single data from VME bus. Useful for register access. See example in mvme_open()
*vme | VME structure |
vme_addr | source address (VME location). |
int EXPRT mvme_set_am | ( | MVME_INTERFACE * | vme, |
int | am | ||
) |
Set Address Modifier.
*vme | VME structure |
am | address modifier |
int EXPRT mvme_set_blt | ( | MVME_INTERFACE * | vme, |
int | mode | ||
) |
Set Block Transfer mode.
*vme | VME structure |
mode | BLT mode |
int EXPRT mvme_set_dmode | ( | MVME_INTERFACE * | vme, |
int | dmode | ||
) |
Set Data mode.
*vme | VME structure |
dmode | Data mode |
int EXPRT mvme_sysreset | ( | MVME_INTERFACE * | vme | ) |
VME bus reset. Effect of the VME bus reset is dependent of the type of VME interface used. See example in mvme_open()
*vme | VME structure. |
int EXPRT mvme_write | ( | MVME_INTERFACE * | vme, |
mvme_addr_t | vme_addr, | ||
void * | src, | ||
mvme_size_t | n_bytes | ||
) |
Write data to VME bus. Implementation of the write can include automatic DMA transfer based on the size of the data. See example in mvme_open()
*vme | VME structure |
vme_addr | source address (VME location). |
*src | source array |
n_bytes | size of the array in bytes |
int EXPRT mvme_write_value | ( | MVME_INTERFACE * | vme, |
mvme_addr_t | vme_addr, | ||
unsigned int | value | ||
) |
Write single data to VME bus. Useful for register access. See example in mvme_open()
*vme | VME structure |
vme_addr | source address (VME location). |
value | Value to be written to the VME bus |