Tests and bugfix

This commit is contained in:
Mohacsi Istvan
2021-06-02 13:41:57 +02:00
parent 53abc8e867
commit 1406284d41
7 changed files with 53 additions and 42 deletions
+5 -5
View File
@@ -1,13 +1,13 @@
#ifndef JUNGFRAUJOCH_H
#define JUNGFRAUJOCH_H
#ifndef JUNGFRAUJOCH_HPP
#define JUNGFRAUJOCH_HPP
#include <cstdint>
#define JFJOCH_N_MODULES 32
#define JFJOCH_BYTES_PER_PACKET 8240
#define JFJOCH_DATA_BYTES_PER_PACKET 8192
#define JFJOCH_N_PACKETS_PER_FRAME JFJOCH_N_MODULES * 128
#define JFJOCH_DATA_BYTES_PER_FRAME JFJOCH_N_MODULES * 1048576
#define JFJOCH_N_PACKETS_PER_FRAME (JFJOCH_N_MODULES * 128)
#define JFJOCH_DATA_BYTES_PER_FRAME (JFJOCH_N_MODULES * 1048576)
// 48 bytes + 8192 bytes = 8240 bytes
#pragma pack(push)
@@ -17,7 +17,7 @@ struct jfjoch_packet_t {
uint32_t exptime;
uint32_t packetnum;
uint64_t bunchid;
int64_t bunchid;
uint64_t timestamp;
uint16_t moduleID;