sync during ir_recv dev
All checks were successful
Deploy Docs / build-and-deploy (push) Successful in 12s
All checks were successful
Deploy Docs / build-and-deploy (push) Successful in 12s
This commit is contained in:
19
firmware/libs/ir/include/ir.h
Normal file
19
firmware/libs/ir/include/ir.h
Normal 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 */
|
||||
Reference in New Issue
Block a user