From f02030edc5757bf6c1d438ffafdd783ec9494c95 Mon Sep 17 00:00:00 2001 From: Michael Waiblinger Date: Thu, 2 Jun 2016 00:13:09 +0200 Subject: [PATCH] getting structurerered --- src/CANode.cpp | 1 + src/CANode.h | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 src/CANode.h diff --git a/src/CANode.cpp b/src/CANode.cpp index 3e4aacd..c4d68a7 100644 --- a/src/CANode.cpp +++ b/src/CANode.cpp @@ -13,6 +13,7 @@ #include #include #include +#include "CANode.h" // Configurations // Misc #define DEBUG 0 diff --git a/src/CANode.h b/src/CANode.h new file mode 100644 index 0000000..c2a9c41 --- /dev/null +++ b/src/CANode.h @@ -0,0 +1,14 @@ +#include + +typedef struct CAN_telegram { + uint32_t id; + uint8_t len; + uint8_t buf[8]; +} CAN_telegram; + +typedef struct OW_switch { + uint8_t nick; + uint8_t addr[8]; + uint8_t last_state; +// CAN_telegram event[2]; +} OW_switch;