|
#include <rcuxx/Altro.h>
List of all members.
Detailed Description
Interface to ALTRO register DPCFG - data path configuration.
Register containing configuration parameters for the BSU, MAU and ZSU. The table below shows in detail the function of each bit.
Constructor & Destructor Documentation
Rcuxx::AltroDPCFG::AltroDPCFG |
( |
Rcu & |
rcu |
) |
[inline] |
Constructor.
- Parameters:
-
| imem | Intstruction memory |
| rmem | Result memory |
Member Function Documentation
void Rcuxx::AltroDPCFG::Get |
( |
|
) |
[inline, virtual] |
void Rcuxx::AltroDPCFG::Set |
( |
|
) |
[inline, virtual] |
unsigned int Rcuxx::AltroDPCFG::FirstBMode |
( |
|
) |
const [inline] |
void Rcuxx::AltroDPCFG::SetFirstBMode |
( |
unsigned int |
val |
) |
[inline] |
1st baseline mode Valid modes are
bits | hex | Meaning |
0000 | 0x0 | din-fpd |
0001 | 0x1 | din-f(t) |
0010 | 0x2 | din-f(din) |
0011 | 0x3 | din-f(din-vpd) |
0100 | 0x4 | din-vpd-fpd |
0101 | 0x5 | din-vpd-f(t) |
0110 | 0x6 | din-vpd-f(din) |
0111 | 0x7 | din-vpd-f(din-vpd) |
1000 | 0x8 | f(din)-fpd |
1001 | 0x9 | f(din-vpd)-fpd |
1010 | 0xA | f(t)-fpd |
1011 | 0xB | f(t)-f(t) |
1100 | 0xC | f(din)-f(din) |
1101 | 0xD | f(din-vpd)-f(din-vpd) |
1110 | 0xE | din-fpd |
1111 | 0xF | din-fpd |
The abbrivations have the following meaning:
- din stands for the data stream coming from the ADC.
- fpd stands for the fixed pedestal, a constant value stored in register VFPED that is to be subtracted from the ADC data stream (see AltroVFPED).
- vpd stands for the self-calibrated pedestal value, that is, the average DC level that the ADC sees outside the acquisition window (i.e. when there is no signal from the gas chamber) (see AltroVFPED)
Look-up in pedestal memory with index . That is, for example- f(t) stands for the data of the Pedestal Memory, played back as a function of time for the duration of the acquisition after a L1 trigger is received. (Pattern Generator Mode).
- f(din) stands for the data of the Pedestal Memory, played back a function of the ADC data at any time. (Look-up Table Mode).
References f1stBMode.
bool Rcuxx::AltroDPCFG::IsFirstBPol |
( |
|
) |
const [inline] |
void Rcuxx::AltroDPCFG::SetFirstBPol |
( |
bool |
on = true |
) |
[inline] |
- Parameters:
-
| on | Set 1's compliment to on or off |
References f1stBPol.
unsigned int Rcuxx::AltroDPCFG::SecondBPre |
( |
|
) |
const [inline] |
2nd baseline pre excl.
References f2ndBPre.
void Rcuxx::AltroDPCFG::SetSecondBPre |
( |
unsigned int |
val |
) |
[inline] |
2nd baseline pre excl.
References f2ndBPre.
unsigned int Rcuxx::AltroDPCFG::SecondBPost |
( |
|
) |
const [inline] |
2nd baseline post exclude
References f2ndBPost.
void Rcuxx::AltroDPCFG::SetSecondBPost |
( |
unsigned int |
val |
) |
[inline] |
2nd baseline post exclude
References f2ndBPost.
bool Rcuxx::AltroDPCFG::IsSecondBEnable |
( |
|
) |
const [inline] |
Is 2nd baseline correction enabled.
References f2ndBEnable.
void Rcuxx::AltroDPCFG::SetSecondBEnable |
( |
bool |
on = true |
) |
[inline] |
- Parameters:
-
| on | Set 2nd baseline correction to on or off |
References f2ndBEnable.
unsigned int Rcuxx::AltroDPCFG::ZSPre |
( |
|
) |
const [inline] |
Zero suppression pre samples.
References fZSPre.
void Rcuxx::AltroDPCFG::SetZSPre |
( |
unsigned int |
val |
) |
[inline] |
Zero suppression pre samples.
References fZSPre.
unsigned int Rcuxx::AltroDPCFG::ZSPost |
( |
|
) |
const [inline] |
Zero suppression post samples.
References fZSPost.
void Rcuxx::AltroDPCFG::SetZSPost |
( |
unsigned int |
val |
) |
[inline] |
Zero suppression post samples.
References fZSPost.
unsigned int Rcuxx::AltroDPCFG::ZSGlitch |
( |
|
) |
const [inline] |
Zero suppression glitch mode.
References fZSGlitch.
void Rcuxx::AltroDPCFG::SetZSGlitch |
( |
unsigned int |
val |
) |
[inline] |
Zero suppression glitch mode Mode can be one of.
bits | hex | Meaning |
00 | 0x0 | din-fpd |
01 | 0x1 | din-f(t) |
10 | 0x2 | din-f(din) |
11 | 0x3 | din-f(din-vpd) |
See the member function AltroDPCG::SetFirstBMode for the meaning of the abbriviations.
References fZSGlitch.
bool Rcuxx::AltroDPCFG::IsZSEnable |
( |
|
) |
const [inline] |
Is zero suppression enabled.
References fZSEnable.
void Rcuxx::AltroDPCFG::SetZSEnable |
( |
bool |
on = true |
) |
[inline] |
- Parameters:
-
| on | Set zero suppression to on or off |
References fZSEnable.
virtual void Rcuxx::AltroDPCFG::Print |
( |
|
) |
const [inline, virtual] |
Member Data Documentation
The documentation for this struct was generated from the following file:
|