AlcapDAQ
1
|
#include "mvmestd.h"
Go to the source code of this file.
Macros | |
#define | RPV130_LATCH_1 0x0 |
#define | RPV130_LATCH_2 0x2 |
#define | RPV130_RSFF 0x4 |
#define | RPV130_THROUGH 0x6 |
#define | RPV130_PULSE 0x8 |
#define | RPV130_LEVEL 0xa |
#define | RPV130_CSR_1 0xc |
#define | RPV130_CSR_2 0xe |
#define | RPV130_DATA_SIZE MVME_DMODE_D16 |
#define | RPV130_AM MVME_AM_A16_ND |
#define | RPV130_AMODE VMEDRV_A16D16 |
Functions | |
int | rpv130_Clear (MVME_INTERFACE *vme, mvme_addr_t base_addr) |
int | rpv130_IsBusy1 (MVME_INTERFACE *vme, mvme_addr_t base_addr) |
int | rpv130_IsBusy2 (MVME_INTERFACE *vme, mvme_addr_t base_addr) |
int | rpv130_IsBusy3 (MVME_INTERFACE *vme, mvme_addr_t base_addr) |
int | rpv130_ClearBusy1 (MVME_INTERFACE *vme, mvme_addr_t base_addr) |
int | rpv130_ClearBusy2 (MVME_INTERFACE *vme, mvme_addr_t base_addr) |
int | rpv130_ClearBusy3 (MVME_INTERFACE *vme, mvme_addr_t base_addr) |
int | rpv130_Pulse (MVME_INTERFACE *vme, mvme_addr_t base_addr, int chn) |
int | rpv130_Level (int outp) |
void | rpv130_PrintBusyStatus (MVME_INTERFACE *vme, mvme_addr_t base_addr) |
#define RPV130_AM MVME_AM_A16_ND |
Definition at line 21 of file rpv130.h.
Referenced by rpv130_Clear(), rpv130_ClearBusy1(), rpv130_ClearBusy2(), rpv130_ClearBusy3(), rpv130_IsBusy1(), rpv130_IsBusy2(), rpv130_IsBusy3(), and rpv130_Pulse().
#define RPV130_AMODE VMEDRV_A16D16 |
#define RPV130_CSR_1 0xc |
Definition at line 17 of file rpv130.h.
Referenced by rpv130_Clear(), rpv130_ClearBusy1(), and rpv130_IsBusy1().
#define RPV130_CSR_2 0xe |
Definition at line 18 of file rpv130.h.
Referenced by rpv130_Clear(), rpv130_ClearBusy2(), rpv130_ClearBusy3(), rpv130_IsBusy2(), and rpv130_IsBusy3().
#define RPV130_DATA_SIZE MVME_DMODE_D16 |
Definition at line 20 of file rpv130.h.
Referenced by rpv130_Clear(), rpv130_ClearBusy1(), rpv130_ClearBusy2(), rpv130_ClearBusy3(), rpv130_IsBusy1(), rpv130_IsBusy2(), rpv130_IsBusy3(), and rpv130_Pulse().
#define RPV130_PULSE 0x8 |
Definition at line 15 of file rpv130.h.
Referenced by rpv130_Pulse().
int rpv130_Clear | ( | MVME_INTERFACE * | vme, |
mvme_addr_t | base_addr | ||
) |
Definition at line 11 of file rpv130.c.
References mvme_set_am(), mvme_set_dmode(), mvme_write_value(), RPV130_AM, RPV130_CSR_1, RPV130_CSR_2, and RPV130_DATA_SIZE.
int rpv130_ClearBusy1 | ( | MVME_INTERFACE * | vme, |
mvme_addr_t | base_addr | ||
) |
Definition at line 59 of file rpv130.c.
References mvme_set_am(), mvme_set_dmode(), mvme_write_value(), RPV130_AM, RPV130_CSR_1, and RPV130_DATA_SIZE.
int rpv130_ClearBusy2 | ( | MVME_INTERFACE * | vme, |
mvme_addr_t | base_addr | ||
) |
Definition at line 69 of file rpv130.c.
References mvme_set_am(), mvme_set_dmode(), mvme_write_value(), RPV130_AM, RPV130_CSR_2, and RPV130_DATA_SIZE.
int rpv130_ClearBusy3 | ( | MVME_INTERFACE * | vme, |
mvme_addr_t | base_addr | ||
) |
Definition at line 78 of file rpv130.c.
References mvme_set_am(), mvme_set_dmode(), mvme_write_value(), RPV130_AM, RPV130_CSR_2, and RPV130_DATA_SIZE.
Referenced by rpv130_start_block().
int rpv130_IsBusy1 | ( | MVME_INTERFACE * | vme, |
mvme_addr_t | base_addr | ||
) |
Definition at line 22 of file rpv130.c.
References mvme_read_value(), mvme_set_am(), mvme_set_dmode(), RPV130_AM, RPV130_CSR_1, and RPV130_DATA_SIZE.
Referenced by rpv130_PrintBusyStatus().
int rpv130_IsBusy2 | ( | MVME_INTERFACE * | vme, |
mvme_addr_t | base_addr | ||
) |
Definition at line 32 of file rpv130.c.
References mvme_read_value(), mvme_set_am(), mvme_set_dmode(), RPV130_AM, RPV130_CSR_2, and RPV130_DATA_SIZE.
Referenced by rpv130_PrintBusyStatus().
int rpv130_IsBusy3 | ( | MVME_INTERFACE * | vme, |
mvme_addr_t | base_addr | ||
) |
Definition at line 42 of file rpv130.c.
References mvme_read_value(), mvme_set_am(), mvme_set_dmode(), RPV130_AM, RPV130_CSR_2, and RPV130_DATA_SIZE.
Referenced by rpv130_poll_live(), and rpv130_PrintBusyStatus().
int rpv130_Level | ( | int | outp) |
void rpv130_PrintBusyStatus | ( | MVME_INTERFACE * | vme, |
mvme_addr_t | base_addr | ||
) |
Definition at line 52 of file rpv130.c.
References printf(), rpv130_IsBusy1(), rpv130_IsBusy2(), and rpv130_IsBusy3().
int rpv130_Pulse | ( | MVME_INTERFACE * | vme, |
mvme_addr_t | base_addr, | ||
int | chn | ||
) |
Definition at line 87 of file rpv130.c.
References mvme_set_am(), mvme_set_dmode(), mvme_write_value(), RPV130_AM, RPV130_DATA_SIZE, and RPV130_PULSE.
Referenced by rpv130_start_block().