The project of the CU, that performs BTF daq, can be found git@baltig.infn.it:chaos-lnf-control/chaos-driver-daq.git, the CU that implements the acquisition is:
https://baltig.infn.it/chaos-lnf-control/chaos-driver-daq/blob/master/models/btf/RTBTFdaqCU.cpp.
This CU requires as CU load parameters the addresses of the CAEN965 and CAEN792, SIS3800 (counter), CAEN513 (PIO).
{"vme":{"driver":"vme_sis3153_eth","params":"192.168.190.111"}, "caen965":{"address":"0xBBBB0000","channels":16}, "caen792":{"address":"0xAAAA0000","channels":32}, "sis":{"address":"0x38380000","channels":32}, "pio":{"address":"0xCCCCCC00","channels":16}, "veto":true, "pio_latch":true, "timeout":5000 }
The driver keyword instructs which VME driver to use, in this case a SIS3153 VME ethernet board is used, as params the IP address of this board.
veto keyword is used to enable (true) or disable(false) acquisition veto through PIO pin 0.
pio_latch keyword is used to enable or disable the polling loop on PIO pin 15 to wait a trigger.
timeout is the time in ms waiting for a trigger (0 means wait for ever), in case of timeout a warning/ error is generated by the CU