liftof_lib::master_trigger

Function configure_mtb

Source
pub fn configure_mtb(
    bus: &mut IPBus,
    settings: &MTBSettings,
) -> Result<(), MasterTriggerError>
Expand description

Configure the MTB according to lifot settings. If the settings have a non-zero prescale for any of the triggers, this will cause the MTB to start triggering (if it hasn’t been triggering before)

CHANGELOG - in previous versions, this reset the MTB DAQ multiple times, this is not ncessary and caused more issues than actually fixed something, so these got removed.

§Arguments:

  • bus : IPBus connected to the MTB (UDP)
  • settings : configure the MTB according to these settings