mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-23 23:10:02 +02:00
29 lines
584 B
C
29 lines
584 B
C
// SPDX-License-Identifier: LGPL-3.0-or-other
|
|
// Copyright (C) 2021 Contributors to the SLS Detector Package
|
|
#pragma once
|
|
|
|
#include <inttypes.h>
|
|
|
|
/**
|
|
* Get current udp packet number
|
|
*/
|
|
uint32_t getUDPPacketNumber();
|
|
|
|
/**
|
|
* Get current udp frame number
|
|
*/
|
|
uint64_t getUDPFrameNumber();
|
|
|
|
/**
|
|
* Called for each UDP packet header creation
|
|
* @param buffer pointer to header
|
|
* @param id module id
|
|
*/
|
|
void createUDPPacketHeader(char *buffer, uint16_t id);
|
|
|
|
/**
|
|
* fill up the udp packet with data till its full
|
|
* @param buffer pointer to memory
|
|
*/
|
|
int fillUDPPacket(char *buffer);
|