-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add as a standalone script, will be integrated later
- Loading branch information
murat
committed
Feb 6, 2025
1 parent
7bab6ef
commit 94682ef
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
//----------------------------------------------------------------------------- | ||
// test of the 'READ' command implementation over the fiber | ||
// if LinkMask != -1, operate on the specified links only | ||
//----------------------------------------------------------------------------- | ||
int dtc_control_roc_digi_rw(int Link, | ||
int Rw, | ||
int HvCal, | ||
int Address, | ||
int NumTrig) { | ||
|
||
DtcInterface* dtc_i = DtcInterface::Instance(-1); | ||
|
||
ControlRoc_DigiRW_Input_t par; | ||
ControlRoc_DigiRW_Output_t pout; | ||
|
||
par.rw = Rw; | ||
par.hvcal = HvCal; // -a | ||
par.address = Address; // -t | ||
par.data[0] = NumTrig & 0xffff; | ||
par.data[1] = (NumTrig >> 16) & 0xffff; | ||
|
||
// printf("dtc_i->fLinkMask: 0x%04x\n",dtc_i->fLinkMask); | ||
int print_level(3); | ||
|
||
dtc_i->ControlRoc_DigiRW(&par,&pout,Link,print_level); | ||
return 0; | ||
} |