#include <SpdDelayScan.h>
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 | |
spdLogger * | log |
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 | |
SPDConfig * | parent |
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 |
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)
SpdDelayScan::SpdDelayScan | ( | SPDConfig * | spdConf | ) |
SpdDelayScan::~SpdDelayScan | ( | void | ) |
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
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] |
void SpdDelayScan::stop | ( | ) | [inline, virtual] |
void SpdDelayScan::scan | ( | ) | [virtual] |
bool SpdDelayScan::isActive | ( | ) | [inline, virtual] |
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