Reworking the communcation

This commit is contained in:
2025-12-23 23:36:51 +00:00
parent ce15563aee
commit dc23bbaf5b
10 changed files with 409 additions and 140 deletions
+21
View File
@@ -6,4 +6,25 @@
typedef uint8_t PacketType;
const uint8_t identificationPacket = 0;
struct __attribute__((packed)) IdentificationPacket {
char StartMarker;
uint8_t DeviceID;
PacketType PktType;
char deviceName[32];
char EndMarker;
};
void initIdentificationPacket(IdentificationPacket* packet, const char* name,
uint8_t id);
struct __attribute__((packed)) NewWindowBody {
char StartMarker;
uint16_t x0;
uint16_t y0;
uint16_t width;
uint16_t height;
char title[32];
char EndMarker;
};
#endif