Changeset 10573 for trunk/FACT++/src
- Timestamp:
- 05/04/11 15:26:43 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/ftmctrl.cc
r10561 r10573 619 619 return true; 620 620 } 621 622 bool SetVal(uint32_t &dest, uint32_t val, uint32_t max) 623 { 624 if (val>max) 625 return false; 626 627 if (dest==val) 628 return true; 629 630 dest = val; 631 632 CmdSendStatDat(); 633 634 return true; 635 } 636 621 637 bool SetTriggerInterval(uint32_t val) 622 638 { 623 if (val>StaticData::kMaxTriggerInterval) 624 return false; 625 626 fStaticData.fTriggerInterval = val; 627 628 CmdSendStatDat(); 629 630 return true; 639 return Set(fStaticData.fTriggerInterval, val, StaticData::kMaxTriggerInterval); 631 640 } 632 641 633 642 bool SetTriggerDelay(uint32_t val) 634 643 { 635 if (val>StaticData::kMaxDelayTrigger) 636 return false; 637 638 fStaticData.fDelayTrigger = val; 639 640 CmdSendStatDat(); 641 642 return true; 644 return Set(fStaticData.fDelayTrigger, val, StaticData::kMaxDelayTrigger); 643 645 } 644 646 645 647 bool SetTimeMarkerDelay(uint32_t val) 646 648 { 647 if (val>StaticData::kMaxDelayTimeMarker) 648 return false; 649 650 fStaticData.fDelayTimeMarker = val; 651 652 CmdSendStatDat(); 653 654 return true; 649 return Set(fStaticData.fDelayTimeMarker, val, StaticData::kMaxDelayTimeMarker); 655 650 } 656 651 657 652 bool SetDeadTime(uint32_t val) 658 653 { 659 if (val>StaticData::kMaxDeadTime) 660 return false; 661 662 fStaticData.fDeadTime = val; 663 664 CmdSendStatDat(); 665 666 return true; 654 return Set(fStaticData.fDeadTime, val, StaticData::kMaxDeadTime); 667 655 } 668 656 … … 1191 1179 1192 1180 1193 // ENABLE_FTU idx bool1194 // ---> EnableFtu(idx==-1, bool)1195 1196 1181 // ENABLE_TRIGGER bool 1197 1182 // ENABLE_EXT1 bool … … 1200 1185 // ---> Enable(bit, bool) 1201 1186 1202 1203 1187 // SET_TRIGGER_SEQUENCE val val val 1204 1188 // ---> SetTriggerSequence(val, val, val) 1205 1206 // SET_TRIGGER_INTERVAL val1207 // SET_TRIGGER_DELAY val1208 // SET_TIME_MARKER_DELAY val1209 // SET_DEAD_TIME val1210 // ---> SetXYZ(val)1211 1189 1212 1190 // SET_PRESCALING idx val
Note:
See TracChangeset
for help on using the changeset viewer.