Expand description
Convenience functions to read/write the various control registers
For the mapping of registers/addresses,
see registers.rs
Functionsยง
- Reset the DMA memory (blob data) and write 0s
- do not write header only packets when the drs is busyu
- Disable the master trigger
- stop all triggers
- write header only packets when the drs is busy
- enable triggering
- Get the blob buffer occupancy for one of the two buffers
- ! Get the board ID from the control registers.
- ! Get the board ID from the control registers.
- Read te last DRS4 Deadtime
- ! The device DNA is a unique identifier
- FIXME
- Get the event counter from the DRS4
- Get the event counter as sent from the MTB
- Get the rate as sent from the MTB
- Get the lost events event counter from the DRS4
- Get the rate of the lost triggers by the DRS4
- Read the link ID from the MTB
- Get the recorded triggers by the DRS4
- Check if teh TRIGGER_ENABLE register is set
- Put the daq in idle state, that is stop data taking
- ! Resets the DMA state machine.
- Reset of the internal event counter
- Reset means, the memory can be used again, but it does not mean it clears the memory.
- Enable active channels by not touching the ch9 bits
- This simply sets the configure bit.
- Enable the master trigger mode
- Enable the readout of all channels + the 9th channel
- use the random self trigger
- Reset the board and prepare for a new run
- Check if the soft reset procedure has finished
- Start DRS4 data acquistion
- ! Toggle between the data buffers A and B
- Force a trigger