#include <LG8252.h>
Inheritance diagram for LG8252:

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 () |
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.
|
||||||||||||||||
|
Definition at line 16 of file LG8252.cxx. 00017 : CAMACModule(branch, crate, slot) 00018 { 00019 }
|
|
|
Definition at line 23 of file LG8252.cxx. References CAMACModule::CloseVME(). 00024 {
00025 CloseVME();
00026 }
|
|
|
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)
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 }
|
|
|
Clears Module and LAM
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 }
|
|
|
Disable LAM
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 }
|
|
|
Disable single scan mode and LAM, enable continuous scan mode
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 }
|
|
||||||||||||||||||||
|
Read channel contents: F(0) non-destructive or F(2) destructive
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 }
|
|
||||||||||||
|
Read channel contents: F(0) or F(2)
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 }
|
|
|
Test continuous scan mode
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 }
|
|
|
Test module
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 }
|
1.3.9.1