katgpucbf.spead module

Common SPEAD-related constants and helper function.

katgpucbf.spead.DEFAULT_PORT = 7148

Default UDP port

katgpucbf.spead.DIGITISER_STATUS_SATURATION_COUNT_SHIFT = 32

First bit position in digitiser status SPEAD item for ADC saturation count

katgpucbf.spead.DIGITISER_STATUS_SATURATION_FLAG_BIT = 1

Bit position in digitiser_status SPEAD item for ADC saturation flag

katgpucbf.spead.FLAVOUR = <spead2._spead2.Flavour object>

SPEAD flavour used for all send streams

katgpucbf.spead.IMMEDIATE_DTYPE = dtype('>u8')

dtype for items that need to be immediate yet passed by reference

katgpucbf.spead.IMMEDIATE_FORMAT = [('u', 48)]

Format for immediate items

katgpucbf.spead.make_immediate(id: int, value: Any) Item[source]

Synthesize an immediate item.

Parameters:
  • id – The SPEAD identifier for the item

  • value – The value of the item