EdSaGfmvA/include/lora/lorapacket.h
2025-10-08 23:19:31 +02:00

15 lines
352 B
C

#ifndef LORA_PACKET_H
#define LORA_PACKET_H
#include <stdint.h>
#define MAX_MSG 64
typedef struct {
uint16_t len; // Länge der Nutzdaten
uint16_t crc; // CRC über message[0..len-1]
uint32_t timestamp; // z.B. Restzeit / Marker
uint8_t message[MAX_MSG];
} __attribute__((packed)) DataPacket;
#endif // LORA_PACKET_H