SpdDelayScan Class Reference

Class to manage a delay scan. More...

#include <SpdDelayScan.h>

Inheritance diagram for SpdDelayScan:

Inheritance graph
[legend]
Collaboration diagram for SpdDelayScan:

Collaboration graph
[legend]

List of all members.

Public Member Functions

unsigned start (UInt32 triggerNumber, UInt8 dacStart, UInt8 dacEnd, UInt8 newStep, bool InternTrig, UInt32 waitTime)
unsigned restart (void)
 Method to restart the dac scan.
void stop ()
 Method to stop the dac scan.
void scan ()
 Method to lead the dac scan.
bool isActive ()
 method to get if the scan is active or not
 SpdDelayScan (SPDConfig *spdConf)
 ~SpdDelayScan (void)

Private Member Functions

void delayStep ()
void SetScansHeader (UInt8 routerNumber)
 will write the router header for this scan

Private Attributes

bool active
 stores if the scan is active or not
DACParameters dac
 stores the parameters of a dac scan
spdLoggerlog
 logger of the class
bool internalTrigger
 stores if we use internal trigger or not
UInt32 triggerN
 stores the number of triggers
UInt32 chipSelect
 keeps the chip selection for this scan (10 bits)
UInt32 waitTime
 waiting time between steps
UInt8 scanType
 this is a constant and should be 2 for a dac scan
SPDConfigparent
 parent SPDConfig to handle the hardware
UInt8 misControlIndex
 stores the misc_control index
UInt8 delayControlIndex
 stores the delayControlIndex
UInt8 misControlValue
 stores the current misc control value
timer timerScan
 timer for the scan


Detailed Description

Class to manage a delay scan.

two dacs will be looped: delay_control and misc_control for each step of delay_control misc_control will have the two possible values 192 and 128 so the total number of steps of the scan will be 2*(steps of delay_control)


Constructor & Destructor Documentation

SpdDelayScan::SpdDelayScan ( SPDConfig spdConf  ) 

SpdDelayScan::~SpdDelayScan ( void   ) 


Member Function Documentation

void SpdDelayScan::delayStep (  )  [private]

void SpdDelayScan::SetScansHeader ( UInt8  routerNumber  )  [private]

will write the router header for this scan

unsigned SpdDelayScan::start ( UInt32  triggerNumber,
UInt8  dacStart,
UInt8  dacEnd,
UInt8  newStep,
bool  InternTrig,
UInt32  waitTime 
)

method to initiate a delay scan

Parameters:
triggerNumber number of triggers to send (if internal trigger)
dacStart delay control value to start
dacEnd delay control value to finish
newStep step of delay control to increment
InternTrig flag enabling internal trigger
waitTime time to wait beetween delay steps

unsigned SpdDelayScan::restart ( void   )  [virtual]

Method to restart the dac scan.

Reimplemented from SpdScan.

void SpdDelayScan::stop (  )  [inline, virtual]

Method to stop the dac scan.

Reimplemented from SpdScan.

void SpdDelayScan::scan (  )  [virtual]

Method to lead the dac scan.

Reimplemented from SpdScan.

bool SpdDelayScan::isActive (  )  [inline, virtual]

method to get if the scan is active or not

Reimplemented from SpdScan.


Member Data Documentation

bool SpdDelayScan::active [private]

stores if the scan is active or not

DACParameters SpdDelayScan::dac [private]

stores the parameters of a dac scan

spdLogger* SpdDelayScan::log [private]

logger of the class

bool SpdDelayScan::internalTrigger [private]

stores if we use internal trigger or not

UInt32 SpdDelayScan::triggerN [private]

stores the number of triggers

UInt32 SpdDelayScan::chipSelect [private]

keeps the chip selection for this scan (10 bits)

UInt32 SpdDelayScan::waitTime [private]

waiting time between steps

UInt8 SpdDelayScan::scanType [private]

this is a constant and should be 2 for a dac scan

SPDConfig* SpdDelayScan::parent [private]

parent SPDConfig to handle the hardware

UInt8 SpdDelayScan::misControlIndex [private]

stores the misc_control index

UInt8 SpdDelayScan::delayControlIndex [private]

stores the delayControlIndex

UInt8 SpdDelayScan::misControlValue [private]

stores the current misc control value

timer SpdDelayScan::timerScan [private]

timer for the scan


The documentation for this class was generated from the following files:
Generated on Tue Dec 1 12:09:52 2009 for SPD FED Server by  doxygen 1.5.4