summaryrefslogtreecommitdiffstats
path: root/src/ufo-roof.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ufo-roof.h')
-rw-r--r--src/ufo-roof.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ufo-roof.h b/src/ufo-roof.h
index 23f8429..ea422e2 100644
--- a/src/ufo-roof.h
+++ b/src/ufo-roof.h
@@ -1,21 +1,21 @@
-#ifndef __UFO_ROOF_H
-#define __UFO_ROOF_H
+#ifndef __ROOF_H
+#define __ROOF_H
#include "ufo-roof-config.h"
#include "ufo-roof-error.h"
-//#define UFO_ROOF_DEBUG
-#define UFO_ROOF_PACKET_HEADER(buf) ((UfoRoofPacketHeader*)(buf))
-#define UFO_ROOF_PACKET_BLOCK_HEADER(buf, cfg) ((UfoRoofPacketBlockHeader*)(((uint8_t*)buf) + cfg->max_packets * cfg->max_packet_size))
+//#define ROOF_DEBUG
+#define ROOF_PACKET_HEADER(buf) ((RoofPacketHeader*)(buf))
+#define ROOF_PACKET_BLOCK_HEADER(buf, cfg) ((RoofPacketBlockHeader*)(((uint8_t*)buf) + cfg->max_packets * cfg->max_packet_size))
typedef struct {
uint64_t packet_id; // Sequential Packet ID (numbered from 0)
-} UfoRoofPacketHeader;
+} RoofPacketHeader;
typedef struct {
uint32_t channel_id; // Specifies channel on which the data were received (numbered from 0)
uint32_t n_packets; // Number of packets
-} UfoRoofPacketBlockHeader;
+} RoofPacketBlockHeader;
-#endif /* __UFO_ROOF_H */
+#endif /* __ROOF_H */