v792.c File Reference

Go to the source code of this file.

Functions

int v792_ThresholdWrite (MVME_INTERFACE *mvme, DWORD base, WORD *threshold)
int v792_ThresholdRead (MVME_INTERFACE *mvme, DWORD base, WORD *threshold)
WORD v792_ControlRegister1Read (MVME_INTERFACE *mvme, DWORD base)
void v792_ControlRegister1Write (MVME_INTERFACE *mvme, DWORD base, WORD pat)
void v792_Trigger (MVME_INTERFACE *mvme, DWORD base)
int v792_Setup (MVME_INTERFACE *mvme, DWORD base, int mode)
void v792_printEntry (const v792_Data *v)


Function Documentation

void v792_BitSet2Clear ( MVME_INTERFACE mvme,
DWORD  base,
WORD  pat 
)

Definition at line 215 of file v792.c.

int v792_BitSet2Read ( MVME_INTERFACE mvme,
DWORD  base 
)

Definition at line 192 of file v792.c.

Referenced by v792_Status().

void v792_BitSet2Set ( MVME_INTERFACE mvme,
DWORD  base,
WORD  pat 
)

Definition at line 204 of file v792.c.

WORD v792_ControlRegister1Read ( MVME_INTERFACE mvme,
DWORD  base 
)

read Control Register 1 (0x1010,16 bit)

Definition at line 369 of file v792.c.

void v792_ControlRegister1Write ( MVME_INTERFACE mvme,
DWORD  base,
WORD  pat 
)

write Control Register 1 (0x1010,16 bit)

Definition at line 383 of file v792.c.

int v792_CSR1Read ( MVME_INTERFACE mvme,
DWORD  base 
)

Definition at line 151 of file v792.c.

Referenced by v792_isEvtReady(), and v792_Status().

int v792_CSR2Read ( MVME_INTERFACE mvme,
DWORD  base 
)

Definition at line 180 of file v792.c.

Referenced by v792_Status().

void v792_DataClear ( MVME_INTERFACE mvme,
DWORD  base 
)

Definition at line 226 of file v792.c.

int v792_DataRead ( MVME_INTERFACE mvme,
DWORD  base,
DWORD pdest,
int *  nentry 
)

Definition at line 73 of file v792.c.

int v792_DataReady ( MVME_INTERFACE mvme,
DWORD  base 
)

Definition at line 308 of file v792.c.

Referenced by v792_DataRead(), and v792_EventRead().

void v792_EmptyEnable ( MVME_INTERFACE mvme,
DWORD  base 
)

Definition at line 278 of file v792.c.

Referenced by v792_Setup().

int v792_EventRead ( MVME_INTERFACE mvme,
DWORD  base,
DWORD pdest,
int *  nentry 
)

Definition at line 41 of file v792.c.

void v792_EvtCntRead ( MVME_INTERFACE mvme,
DWORD  base,
DWORD evtcnt 
)

Definition at line 139 of file v792.c.

Referenced by v792_Status().

void v792_EvtCntReset ( MVME_INTERFACE mvme,
DWORD  base 
)

Definition at line 288 of file v792.c.

void v792_EvtTriggerSet ( MVME_INTERFACE mvme,
DWORD  base,
int  count 
)

Definition at line 128 of file v792.c.

void v792_IntDisable ( MVME_INTERFACE mvme,
DWORD  base 
)

Definition at line 352 of file v792.c.

void v792_IntEnable ( MVME_INTERFACE mvme,
DWORD  base,
int  level 
)

Definition at line 339 of file v792.c.

void v792_IntSet ( MVME_INTERFACE mvme,
DWORD  base,
int  level,
int  vector 
)

Definition at line 328 of file v792.c.

int v792_isBusy ( MVME_INTERFACE mvme,
DWORD  base 
)

Definition at line 163 of file v792.c.

int v792_isEvtReady ( MVME_INTERFACE mvme,
DWORD  base 
)

Definition at line 320 of file v792.c.

int v792_isPresent ( MVME_INTERFACE mvme,
DWORD  base 
)

Definition at line 543 of file v792.c.

void v792_LowThDisable ( MVME_INTERFACE mvme,
DWORD  base 
)

Definition at line 268 of file v792.c.

void v792_LowThEnable ( MVME_INTERFACE mvme,
DWORD  base 
)

Definition at line 258 of file v792.c.

Referenced by v792_Setup().

void v792_OnlineSet ( MVME_INTERFACE mvme,
DWORD  base 
)

Definition at line 248 of file v792.c.

Referenced by v792_Setup().

void v792_printEntry ( const v792_Data v  ) 

decoded printout of readout entry Not to be trusted for data decoding but acceptable for display purpose as its implementation is strongly compiler dependent and not flawless.

Parameters:
v 

Definition at line 519 of file v792.c.

WORD v792_Read16 ( MVME_INTERFACE mvme,
DWORD  base,
int  offset 
)

Definition at line 24 of file v792.c.

Referenced by v792_Status().

int v792_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.

Parameters:
*mvme VME structure
base Module base address
mode Configuration mode number
*nentry number of entries requested and returned.
Returns:
MVME_SUCCESS

Definition at line 415 of file v792.c.

void v792_SingleShotReset ( MVME_INTERFACE mvme,
DWORD  base 
)

Definition at line 298 of file v792.c.

void v792_SoftReset ( MVME_INTERFACE mvme,
DWORD  base 
)

Definition at line 237 of file v792.c.

void v792_Status ( MVME_INTERFACE mvme,
DWORD  base 
)

Definition at line 444 of file v792.c.

int v792_ThresholdRead ( MVME_INTERFACE mvme,
DWORD  base,
WORD threshold 
)

Read Thresholds

Definition at line 113 of file v792.c.

Referenced by v792_Status().

int v792_ThresholdWrite ( MVME_INTERFACE mvme,
DWORD  base,
WORD threshold 
)

Write Thresholds and read them back

Definition at line 91 of file v792.c.

void v792_Trigger ( MVME_INTERFACE mvme,
DWORD  base 
)

cause a software trigger

Definition at line 395 of file v792.c.

void v792_Write16 ( MVME_INTERFACE mvme,
DWORD  base,
int  offset,
WORD  value 
)

Definition at line 30 of file v792.c.


Midas DOC Version 2.0.2 ---- PSI Stefan Ritt ----
Contributions: Pierre-Andre Amaudruz - Sergio Ballestrero - Suzannah Daviel - Doxygen - Peter Green - Qing Gu - Greg Hackman - Gertjan Hofman - Paul Knowles - Exaos Lee - Rudi Meier - Glenn Moloney - Dave Morris - John M O'Donnell - Konstantin Olchanski - Renee Poutissou - Tamsen Schurman - Andreas Suter - Jan M.Wouters - Piotr Adam Zolnierczuk