Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

LG8252 Class Reference

Manipulates the LeCroy 8252 ADC. More...

#include <LG8252.h>

Inheritance diagram for LG8252:

CAMACModule List of all members.

Public Member Functions

 LG8252 (int branch, int crate, int slot)
 ~LG8252 ()
bool Read (int chan, unsigned short *data)
bool MultiRead (int chan, int n_repeat, unsigned short *data, bool subaddr_incr=true)
bool BlockTrans ()
bool DisableLAM ()
bool DisableSS ()
bool ClearModule ()
bool TestModule ()
bool TestContScan ()

Detailed Description

Manipulates the LeCroy 8252 ADC.

This class inherits from CAMACModule and contains all possible functions for manipulations the LeCroy 8252 ADC through the ces8210 library.

22 Oct 2003 Nick Graf

Definition at line 6 of file LG8252.h.


Constructor & Destructor Documentation

LG8252::LG8252 int  branch,
int  crate,
int  slot
 

Definition at line 16 of file LG8252.cxx.

00017   : CAMACModule(branch, crate, slot)
00018 {
00019 }

LG8252::~LG8252  ) 
 

Definition at line 23 of file LG8252.cxx.

References CAMACModule::CloseVME().

00024 {
00025   CloseVME();
00026 }


Member Function Documentation

bool LG8252::BlockTrans  ) 
 

Read in block transfer mode, interrupts scanning. First and last commandsetup and terminate mode. 34 commands need to read all channels. Terminate using F(9).A(0)

Parameters:
none 

Definition at line 72 of file LG8252.cxx.

References CAMACModule::Exec16(), and val.

00073 {
00074   /*! Read in block transfer mode, interrupts scanning.  First and last commandsetup and terminate mode.  34 commands need to read all channels.  Terminate using F(9).A(0)
00075     \param none
00076   */
00077   unsigned short val;
00078   return Exec16(2, 0, &val);
00079 }

bool LG8252::ClearModule  ) 
 

Clears Module and LAM

Parameters:
none 
Returns:
q response

Definition at line 107 of file LG8252.cxx.

References CAMACModule::Exec16(), and val.

00108 {
00109   /*! Clears Module and LAM
00110     \param none
00111     \return q response
00112   */
00113   unsigned short val;
00114   return Exec16(9, 0, &val);
00115 }

bool LG8252::DisableLAM  )  [virtual]
 

Disable LAM

Parameters:
none 
Returns:
q response

Reimplemented from CAMACModule.

Definition at line 83 of file LG8252.cxx.

References CAMACModule::Exec16(), and val.

00084 {
00085   /*! Disable LAM
00086     \param none
00087     \return q response
00088   */
00089   unsigned short val;
00090   return Exec16(11, 0, &val);
00091 }

bool LG8252::DisableSS  ) 
 

Disable single scan mode and LAM, enable continuous scan mode

Parameters:
none 
Returns:
q response

Definition at line 95 of file LG8252.cxx.

References CAMACModule::Exec16(), and val.

00096 {
00097   /*! Disable single scan mode and LAM, enable continuous scan mode
00098     \param none
00099     \return q response
00100   */
00101   unsigned short val;
00102   return Exec16(24, 0, &val);
00103 }

bool LG8252::MultiRead int  chan,
int  n_repeat,
unsigned short *  data,
bool  subaddr_incr = true
 

Read channel contents: F(0) non-destructive or F(2) destructive

Parameters:
data 8252 ADC data word
Returns:
q response

Definition at line 50 of file LG8252.cxx.

References data, and CAMACModule::MultiExec16().

00051 {
00052   /*! Read channel contents: F(0) non-destructive or F(2) destructive
00053     \param data 8252 ADC data word    
00054     \return q response 
00055   */
00056  
00057   /*if (destroy) {
00058     return MultiExec16(2, chan, data, n_repeat, subaddr_incr);
00059     }*/
00060 
00061   if (chan <= 15)
00062     return MultiExec16(0, chan, data, n_repeat, subaddr_incr);
00063 
00064   if (chan >= 16)
00065     return MultiExec16(1, chan-16, data, n_repeat, subaddr_incr);
00066 
00067   return false;
00068 }

bool LG8252::Read int  chan,
unsigned short *  data
 

Read channel contents: F(0) or F(2)

Parameters:
data 8252 ADC data word
Returns:
q response

Definition at line 30 of file LG8252.cxx.

References data, and CAMACModule::Exec16().

00031 {
00032   /*! Read channel contents: F(0) or F(2)
00033     \param data 8252 ADC data word
00034     \return q response 
00035   */
00036 
00037   /*if (destroy) {
00038     return Exec16(2, chan, data);
00039     }*/
00040 
00041   if (chan <= 15)
00042     return Exec16(0, chan, data);
00043 
00044   if (chan >= 16)
00045     return Exec16(1, chan-16, data); 
00046 }

bool LG8252::TestContScan  ) 
 

Test continuous scan mode

Parameters:
none 
Returns:
q=1 if single scan enabled

Definition at line 131 of file LG8252.cxx.

References CAMACModule::Exec16(), and val.

00132 {
00133   /*! Test continuous scan mode
00134     \param none
00135     \return q=1 if single scan enabled
00136   */
00137   unsigned short val;
00138   return Exec16(27, 0, &val);
00139 }

bool LG8252::TestModule  ) 
 

Test module

Parameters:
none 
Returns:
q response

Definition at line 119 of file LG8252.cxx.

References CAMACModule::Exec16(), and val.

00120 {
00121   /*! Test module
00122     \param none
00123     \return q response
00124   */
00125   unsigned short val;
00126   return Exec16(25, 0, &val);
00127 }


The documentation for this class was generated from the following files:
Generated on Sun Oct 7 08:04:19 2007 for MIPP(E907) by  doxygen 1.3.9.1