Module control

Source
Expand description

Convenience functions to read/write the various control registers

For the mapping of registers/addresses, see registers.rs

Functionsยง

clear_dma_memory
Reset the DMA memory (blob data) and write 0s
daq_is_busy
disable_evt_fragments
do not write header only packets when the drs is busyu
disable_master_trigger_mode
Disable the master trigger
disable_trigger
stop all triggers
enable_evt_fragments
write header only packets when the drs is busy
enable_trigger
enable triggering
get_blob_buffer_occ
Get the blob buffer occupancy for one of the two buffers
get_board_id
! Get the board ID from the control registers.
get_board_id_string
! Get the board ID from the control registers.
get_deadtime
Read te last DRS4 Deadtime
get_device_dna
! The device DNA is a unique identifier
get_dma_pointer
FIXME
get_event_count
Get the event counter from the DRS4
get_event_count_mt
Get the event counter as sent from the MTB
get_event_rate_mt
Get the rate as sent from the MTB
get_lost_event_count
Get the lost events event counter from the DRS4
get_lost_trigger_rate
Get the rate of the lost triggers by the DRS4
get_mtb_link_id
Read the link ID from the MTB
get_trigger_rate
Get the recorded triggers by the DRS4
get_triggers_enabled
Check if teh TRIGGER_ENABLE register is set
idle_drs4_daq
Put the daq in idle state, that is stop data taking
reset_daq
reset_dma
! Resets the DMA state machine.
reset_drs
reset_drs_event_ctr
Reset of the internal event counter
reset_ram_buffer_occ
Reset means, the memory can be used again, but it does not mean it clears the memory.
set_active_channel_mask
Enable active channels by not touching the ch9 bits
set_active_channel_mask_with_ch9
set_drs4_configure
This simply sets the configure bit.
set_master_trigger_mode
Enable the master trigger mode
set_readout_all_channels_and_ch9
Enable the readout of all channels + the 9th channel
set_self_trig_rate
use the random self trigger
soft_reset_board
Reset the board and prepare for a new run
soft_reset_done
Check if the soft reset procedure has finished
start_drs4_daq
Start DRS4 data acquistion
switch_ram_buffer
! Toggle between the data buffers A and B
trigger
Force a trigger