Go to the source code of this file.
Data Structures | |
union | vpc6_Reg |
struct | vpc6_Reg::Entry1 |
struct | vpc6_Reg::Entry2 |
Functions | |
void | vpc6_PATypeWrite (MVME_INTERFACE *mvme, DWORD base, WORD data) |
int | vpc6_PortTypeRead (MVME_INTERFACE *mvme, DWORD base, WORD port) |
int | vpc6_PATypeRead (MVME_INTERFACE *mvme, DWORD base) |
int | vpc6_CfgRetrieve (MVME_INTERFACE *mvme, DWORD base, WORD port) |
int | vpc6_PortRegRBRead (MVME_INTERFACE *mvme, DWORD base, WORD port) |
int | vpc6_PortRegRead (MVME_INTERFACE *mvme, DWORD base, WORD port) |
void | vpc6_PortDisplay (WORD type, WORD port, DWORD *reg) |
void | vpc6_EntryPrint (WORD type, WORD chip, const vpc6_Reg *v) |
#define ALL_CHANNELS -1 |
#define VPC6_3ASD_3BUCK 0x444 |
#define VPC6_3BUCK_3ASD 0x111 |
#define VPC6_ALL_ASD 0x000 |
#define VPC6_ALL_BUCKEYE 0x555 |
#define VPC6_ASD01 0 |
#define VPC6_BUCKEYE 1 |
#define VPC6_CFG_RW (WORD) (0x0010) |
Definition at line 26 of file vpc6.h.
Referenced by vpc6_ASDHysteresisSet(), vpc6_ASDModeSet(), vpc6_ASDRegSet(), vpc6_ASDThresholdSet(), and vpc6_PortRegRead().
#define VPC6_CMD_WO (WORD) (0x000C) |
#define VPC6_CR_RW (WORD) (0x0004) |
Definition at line 24 of file vpc6.h.
Referenced by vpc6_PATypeRead(), vpc6_PATypeWrite(), vpc6_PortRegRBRead(), vpc6_PortRegRead(), and vpc6_PortTypeRead().
#define VPC6_PARAM_ERROR 100 |
#define VPC6_RBCK_RO (WORD) (0x0110) |
#define VPC6_SR_RO (WORD) (0x0000) |
#define VPC6_SUCCESS 1 |
Definition at line 21 of file vpc6.h.
Referenced by vpc6_CfgRetrieve(), vpc6_PortCfgLoad(), vpc6_PortRegRBRead(), and vpc6_PortRegRead().
enum vpc6_ASDDataType |
void vpc6_ASDDefaultLoad | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
WORD | port | |||
) |
int vpc6_ASDHysteresisSet | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
WORD | port, | |||
float | hysteresis | |||
) |
int vpc6_ASDModeSet | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
WORD | port, | |||
int | channel, | |||
int | mode | |||
) |
void vpc6_ASDRegSet | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
WORD | port, | |||
WORD | reg, | |||
vpc6_Reg * | Reg | |||
) |
Definition at line 382 of file vpc6.c.
Referenced by vpc6_ASDDefaultLoad(), vpc6_ASDHysteresisSet(), vpc6_ASDModeSet(), and vpc6_ASDThresholdSet().
int vpc6_ASDThresholdSet | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
WORD | port, | |||
int | threshold | |||
) |
int vpc6_BuckeyeModeSet | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
WORD | port, | |||
int | channel, | |||
int | mode | |||
) |
int vpc6_CfgLoad | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
WORD | port | |||
) |
int vpc6_CfgRetrieve | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
WORD | port | |||
) |
Retrieve bit string full configuration from a given port. Loads bit string into Readback registers that can then be read. the port is either ASD01 or Buckeye for now.
Definition at line 121 of file vpc6.c.
Referenced by vpc6_ASDHysteresisSet(), vpc6_ASDModeSet(), and vpc6_ASDThresholdSet().
decoded printout of readout entry for ASD type preamp Not to be trusted for data decoding but acceptable for display purpose as its implementation is strongly compiler dependent and not flawless.
v |
Definition at line 238 of file vpc6.c.
Referenced by vpc6_PortDisplay().
int vpc6_isPortBusy | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
WORD | port | |||
) |
Definition at line 19 of file vpc6.c.
Referenced by vpc6_CfgRetrieve(), vpc6_PortCfgLoad(), vpc6_PortRegRBRead(), and vpc6_Status().
int vpc6_PATypeRead | ( | MVME_INTERFACE * | mvme, | |
DWORD | base | |||
) |
void vpc6_PATypeWrite | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
WORD | data | |||
) |
Setup Preamp type of the board (2 bit per PA) 00 : ASD, 01 : Buckeye
Definition at line 35 of file vpc6.c.
Referenced by vpc6_Setup().
decoded printout of readout entry
Definition at line 220 of file vpc6.c.
Referenced by vpc6_PortRegRBRead(), and vpc6_PortRegRead().
int vpc6_PortRegRBRead | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
WORD | port | |||
) |
int vpc6_PortRegRead | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
WORD | port | |||
) |
int vpc6_PortTypeRead | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
WORD | port | |||
) |
Read Port type of the board (either ASD01 or Buckeye for now) return the type of the requested port
Definition at line 67 of file vpc6.c.
Referenced by vpc6_Status().