Go to the source code of this file.
Data Structures | |
union | vt48_Reg |
struct | vt48_Reg::Entry1 |
struct | vt48_Reg::csr0 |
Functions | |
int | vt48_EventRead (MVME_INTERFACE *myvme, DWORD base, DWORD *pdest, int *nentry) |
int | vt48_Setup (MVME_INTERFACE *mvme, DWORD base, int mode) |
#define VT48_AMT_CFG_RW (WORD) (0x1) |
#define VT48_AMT_ID_R (WORD) (0x3) |
#define VT48_AMT_STATUS_R (WORD) (0x2) |
#define VT48_CMD_REG (DWORD) (0x0004) |
Definition at line 26 of file vt48.h.
Referenced by vt48_RegPrint(), vt48_Setup(), and vt48_Status().
#define VT48_CSR0_RB_REG (DWORD) (0x0080) |
#define VT48_CSR0_REG (DWORD) (0x0040) |
Definition at line 46 of file vt48.h.
Referenced by vt48_RegPrint(), vt48_Setup(), and vt48_Status().
#define VT48_CSR10_REG (DWORD) (0x0068) |
#define VT48_CSR11_REG (DWORD) (0x006C) |
#define VT48_CSR12_REG (DWORD) (0x0070) |
#define VT48_CSR13_REG (DWORD) (0x0074) |
#define VT48_CSR14_REG (DWORD) (0x0078) |
#define VT48_CSR16_REG (DWORD) (0x0020) |
#define VT48_CSR1_REG (DWORD) (0x0044) |
#define VT48_CSR2_REG (DWORD) (0x0048) |
#define VT48_CSR3_REG (DWORD) (0x004C) |
#define VT48_CSR4_REG (DWORD) (0x0050) |
#define VT48_CSR5_REG (DWORD) (0x0054) |
#define VT48_CSR6_REG (DWORD) (0x0058) |
#define VT48_CSR7_REG (DWORD) (0x005C) |
#define VT48_CSR8_REG (DWORD) (0x0060) |
#define VT48_CSR9_REG (DWORD) (0x0064) |
#define VT48_CSR_RO (DWORD) (0x0000) |
#define VT48_DATA_FIFO (DWORD) (0x1000) |
#define VT48_ERR_NODATA 10 |
#define VT48_HEADER (DWORD) (0x10000000) |
#define VT48_ID1_REG_RO (DWORD) (0x0008) |
#define VT48_ID2_REG_RO (DWORD) (0x000C) |
#define VT48_OCCUPANCY_RO (DWORD) (0x0000) |
#define VT48_SUCCESS 1 |
#define VT48_TRAILER (DWORD) (0x80000000) |
int vt48_EventRead | ( | MVME_INTERFACE * | myvme, | |
DWORD | base, | |||
DWORD * | pdest, | |||
int * | nentry | |||
) |
void vt48_RegPrint | ( | MVME_INTERFACE * | mvme, | |
DWORD | base | |||
) |
DWORD vt48_RegRead | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
WORD | reg | |||
) |
void vt48_RegWrite | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
DWORD | reg, | |||
DWORD | data | |||
) |
Definition at line 95 of file vt48.c.
Referenced by vt48_RegPrint(), vt48_Setup(), and vt48_Status().
int vt48_Setup | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
int | mode | |||
) |
Sets all the necessary paramters for a given configuration. The configuration is provided by the mode argument. Add your own configuration in the case statement. Let me know your setting if you want to include it in the distribution.
*mvme | VME structure | |
base | Module base address | |
mode | Configuration mode number | |
*nentry | number of entries requested and returned. |
void vt48_Status | ( | MVME_INTERFACE * | mvme, | |
DWORD | base | |||
) |
void vt48_StatusPrint | ( | MVME_INTERFACE * | mvme, | |
DWORD | base | |||
) |
void vt48_WindowOffsetSet | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
float | offset | |||
) |
void vt48_WindowSet | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
float | window | |||
) |