Browse Source

getting structurerered

led
Michael Waiblinger 9 years ago
parent
commit
f02030edc5
  1. 1
      src/CANode.cpp
  2. 14
      src/CANode.h

1
src/CANode.cpp

@ -13,6 +13,7 @@
#include <Metro.h>
#include <FlexCAN.h>
#include <OneWire.h>
#include "CANode.h"
// Configurations
// Misc
#define DEBUG 0

14
src/CANode.h

@ -0,0 +1,14 @@
#include <Arduino.h>
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;
Loading…
Cancel
Save