AlcapDAQ
1
|
dox
int EXPRT mvme_close | ( | MVME_INTERFACE * | vme) |
Close and release ALL the opened VME channel. See example in mvme_open()
*vme | VME structure. |
Definition at line 45 of file bt617.c.
References MVME_INTERFACE::handle, and MVME_SUCCESS.
int EXPRT mvme_get_am | ( | MVME_INTERFACE * | vme, |
int * | am | ||
) |
Get Address Modifier.
*vme | VME structure |
*am | returned address modifier |
Definition at line 116 of file bt617.c.
References MVME_INTERFACE::am.
int EXPRT mvme_get_blt | ( | MVME_INTERFACE * | vme, |
int * | mode | ||
) |
Get current Data mode.
*vme | VME structure |
*mode | returned BLT mode |
Definition at line 143 of file bt617.c.
References MVME_INTERFACE::blt_mode.
int EXPRT mvme_get_dmode | ( | MVME_INTERFACE * | vme, |
int * | dmode | ||
) |
Get current Data mode.
*vme | VME structure |
*dmode | returned address modifier |
Definition at line 149 of file bt617.c.
References MVME_INTERFACE::dmode.
Referenced by v1290_AcqModeRead(), v1290_ContinuousSet(), v1290_DisableAllChannels(), v1290_EnableAllChannels(), v1290_EnableBypassTDC(), v1290_EnableChannel(), v1290_EnableHeader(), v1290_EnableTDCErrorMark(), v1290_EnableTriggerSubtraction(), v1290_Read16(), v1290_Read32(), v1290_ReadMicro(), v1290_TriggerConfRead(), v1290_TriggerMatchingSet(), v1290_Write16(), and v1290_WriteMicro().
int EXPRT mvme_interrupt_attach | ( | MVME_INTERFACE * | mvme, |
int | level, | ||
int | vector, | ||
void(*)(int, void *, void *) | isr, | ||
void * | info | ||
) |
int EXPRT mvme_interrupt_detach | ( | MVME_INTERFACE * | mvme, |
int | level, | ||
int | vector, | ||
void * | info | ||
) |
int EXPRT mvme_interrupt_disable | ( | MVME_INTERFACE * | mvme, |
int | level, | ||
int | vector, | ||
void * | info | ||
) |
int EXPRT mvme_interrupt_enable | ( | MVME_INTERFACE * | mvme, |
int | level, | ||
int | vector, | ||
void * | info | ||
) |
int EXPRT mvme_interrupt_generate | ( | MVME_INTERFACE * | mvme, |
int | level, | ||
int | vector, | ||
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. |
Definition at line 19 of file bt617.c.
References bt617_SetAccessMode(), DEV_FILE, MVME_AM_A32_ND, MVME_BLT_NONE, MVME_DMODE_D32, MVME_NO_MEM, and MVME_SUCCESS.
Referenced by rpv130_init().
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. |
Definition at line 155 of file bt617.c.
References MVME_INTERFACE::handle, and printf().
Referenced by mvme_read_value(), and v1290_DataRead().
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). |
Definition at line 193 of file bt617.c.
References MVME_INTERFACE::dmode, MVME_DMODE_D16, MVME_DMODE_D32, mvme_read(), and value.
Referenced by rpv130_IsBusy1(), rpv130_IsBusy2(), rpv130_IsBusy3(), v1290_MicroRead(), v1290_MicroWrite(), v1290_Read16(), and v1290_Read32().
int EXPRT mvme_set_am | ( | MVME_INTERFACE * | vme, |
int | am | ||
) |
Set Address Modifier.
*vme | VME structure |
am | address modifier |
Definition at line 109 of file bt617.c.
References MVME_INTERFACE::am, and bt617_SetAccessMode().
Referenced by rpv130_Clear(), rpv130_ClearBusy1(), rpv130_ClearBusy2(), rpv130_ClearBusy3(), rpv130_IsBusy1(), rpv130_IsBusy2(), rpv130_IsBusy3(), rpv130_Pulse(), v1290_DataRead(), v1290_MicroRead(), v1290_MicroWrite(), v1290_Read16(), v1290_Read32(), and v1290_Write16().
int EXPRT mvme_set_blt | ( | MVME_INTERFACE * | vme, |
int | mode | ||
) |
Set Block Transfer mode.
*vme | VME structure |
mode | BLT mode |
Definition at line 129 of file bt617.c.
References MVME_INTERFACE::blt_mode, bt617_SetBLT(), and MVME_BLT_NONE.
Referenced by v1290_DataRead().
int EXPRT mvme_set_dmode | ( | MVME_INTERFACE * | vme, |
int | dmode | ||
) |
Set Data mode.
*vme | VME structure |
dmode | Data mode |
Definition at line 122 of file bt617.c.
References bt617_SetAccessMode(), and MVME_INTERFACE::dmode.
Referenced by rpv130_Clear(), rpv130_ClearBusy1(), rpv130_ClearBusy2(), rpv130_ClearBusy3(), rpv130_IsBusy1(), rpv130_IsBusy2(), rpv130_IsBusy3(), rpv130_Pulse(), v1290_AcqModeRead(), v1290_ContinuousSet(), v1290_DataRead(), v1290_DisableAllChannels(), v1290_EnableAllChannels(), v1290_EnableBypassTDC(), v1290_EnableChannel(), v1290_EnableHeader(), v1290_EnableTDCErrorMark(), v1290_EnableTriggerSubtraction(), v1290_MicroRead(), v1290_MicroWrite(), v1290_Read16(), v1290_Read32(), v1290_ReadMicro(), v1290_TriggerConfRead(), v1290_TriggerMatchingSet(), v1290_Write16(), and v1290_WriteMicro().
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 |
Definition at line 175 of file bt617.c.
References MVME_INTERFACE::handle, and printf().
Referenced by mvme_write_value().
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 |
Definition at line 213 of file bt617.c.
References MVME_INTERFACE::dmode, MVME_DMODE_D16, MVME_DMODE_D32, mvme_write(), and printf().
Referenced by rpv130_Clear(), rpv130_ClearBusy1(), rpv130_ClearBusy2(), rpv130_ClearBusy3(), rpv130_Pulse(), v1290_MicroWrite(), and v1290_Write16().