Class LowTestVector

Inheritance Relationships

Base Type

Class Documentation

class LowTestVector : public ska::pst::recv::UDPFormat

UDPFormat for the CBF/PSR configuration used for testing the Low.CBF to Low.PST interface in the Low PSI Overrides the decode_packet and prepare methods to customize the processing of the format.

Public Functions

LowTestVector()

Construct a new LowTestVector object.

~LowTestVector() = default

Destroy the LowTestVector object.

virtual void configure_beam(const ska::pst::common::AsciiHeader &beam_config) override

configure the format using the provided beam configuration

Parameters

beam_config – fixed configuration parameters common to all observations

virtual PacketState decode_packet(char *buffer, data_and_weights_t *offsets, data_and_weights_t *received) override

Decode the received UDP packet.

Parameters
  • buffer – pointer to buffer containing received UDP packet payload

  • payload_size – size of the data portion of the payload

Returns

data_and_weights_t byte offset of this packet in the data stream

virtual unsigned get_expected_nbit() override

Get the expected NBIT value for UDPFormat.

For LowTestVector expected NBIT = 16.

Returns

the expected NBIT value for the format.

virtual std::pair<unsigned, unsigned> get_expected_os_factor() override

Get the expected OS_FACTOR for the UDPFormat.

For LowTestVector expected OS_FACTOR = 4/3.

Returns

a pair of unsigned values. The first is the numerator and the second is the denominator.

Public Static Functions

static unsigned get_samples_per_packet()

Return the number of time samples per UDP packet.

Returns

unsigned number of time samples per UDP packet