sync during ir_recv dev
All checks were successful
Deploy Docs / build-and-deploy (push) Successful in 12s

This commit is contained in:
2026-02-16 15:02:53 +01:00
parent f5b1849ada
commit 8d97a5d33f
9 changed files with 252 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
#ifndef IR_H
#define IR_H
#include <stdint.h>
// structure representing a decoded IR packet
typedef struct {
union {
uint8_t bytes[3];
struct {
uint32_t type : 3;
uint32_t id : 8; /* Ersetzt shooter_id / healer_id */
uint32_t value : 5; /* Ersetzt damage / amount */
uint32_t crc : 8;
} fields;
} data;
} __attribute__((packed)) ir_packet_t;
#endif /* IR_H */