liftof_lib::master_trigger

Function get_event

Source
pub fn get_event(
    bus: &mut IPBus,
) -> Option<Result<MasterTriggerEvent, MasterTriggerError>>
Expand description

Read the complete event of the MTB

FIXME - this can get extended to read multiple events at once. For that, we just have to query the event size register multiple times.

Blocki until a UDP timeout error occurs or a non-zero result for MT.EVENT_QUEUE.SIZE register has been obtained.

ยงArguments

  • bus : connected IPBus for UDP comms