Commit b753bb8e authored by acq's avatar acq
Browse files

// Added fine stamp register 0x10A0

parent bdf0775d
......@@ -377,6 +377,32 @@ void RealCAENCfdDriver::writeParam() {
//0x1nA0
// Fine time stamp
val = owner()->dynamicRange.get(i);
addr = DPP_ALG_CTRL2_REG | (i<<8);
bitMask = 0x00000200; // bit 10-8
uint32_t bitMask2 = 0xFFFFFAFF;
ret = CAEN_DGTZ_ReadRegister(m_boardHandle, addr, &val);
if (ret) {
cerr << "Error CAEN_DGTZ_ReadRegister" << endl;
close();
return;
}
val = val & bitMask2;
val = val | bitMask;
ret = CAEN_DGTZ_WriteRegister(m_boardHandle, addr, val);
if (ret) {
cerr << "Error CAEN_DGTZ_WriteRegister" << endl;
close();
return;
}
//0x1n28
// Write dynamic range 0 = 2V - 1 = 0.5V
val = owner()->dynamicRange.get(i);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment