#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 */