- Timestamp:
- 05/03/11 10:03:58 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/HeadersFTM.h
r10520 r10525 521 521 522 522 523 524 523 struct FtuResponse 525 524 { 526 uint16_t fPingAddr; 525 uint16_t fPingAddr; // Number of Pings and addr (pings= see error) 527 526 uint64_t fDNA; 528 uint16_t fErrorCounter; 527 uint16_t fErrorCounter; // 529 528 530 529 void reverse() { Reverse(&fDNA); } … … 533 532 534 533 } __attribute__((__packed__)); 535 536 534 537 535 struct FtuList … … 542 540 543 541 FtuResponse fFTU[4][10]; 544 542 545 543 FtuList() { init(*this); } 546 544 … … 583 581 uint64_t fDNA[40]; /// DNA of FTU board 584 582 uint8_t fAddr[40]; /// Address of FTU board 585 uint8_t fPing[40]; /// Number of pings until response 583 uint8_t fPing[40]; /// Number of pings until response (same as in Error) 586 584 587 585 DimFtuList(const Header &h, const FtuList &d) : 588 586 fTimeStamp(h.fTimeStamp), 589 fActiveFTU(d.fActiveFTU[0] | (d.fActiveFTU[1]<<10) | (d.fActiveFTU[2]<<20) | (d.fActiveFTU[3]<<30)) 590 { 587 fActiveFTU(d.fActiveFTU[0] | (d.fActiveFTU[1]<<10) | (d.fActiveFTU[2]<<20) | (d.fActiveFTU[3]<<30)), 588 fNumBoards(d.fNumBoards) 589 { 590 for (int i=0; i<4; i++) 591 fNumBoardsCrate[i] = d.fNumBoardsCrate[i]; 592 591 593 for (int i=0; i<40; i++) 592 594 { … … 604 606 struct Error 605 607 { 606 uint16_t fNumCalls; // Number or unsuccessfull calls 608 // (same as FtuList) 609 uint16_t fNumCalls; // 0=error, >1 needed repetition but successfull 607 610 uint16_t fData[28]; 608 611
Note:
See TracChangeset
for help on using the changeset viewer.