getting structurerered
This commit is contained in:
parent
42947cd6b0
commit
f02030edc5
@ -13,6 +13,7 @@
|
|||||||
#include <Metro.h>
|
#include <Metro.h>
|
||||||
#include <FlexCAN.h>
|
#include <FlexCAN.h>
|
||||||
#include <OneWire.h>
|
#include <OneWire.h>
|
||||||
|
#include "CANode.h"
|
||||||
// Configurations
|
// Configurations
|
||||||
// Misc
|
// Misc
|
||||||
#define DEBUG 0
|
#define DEBUG 0
|
||||||
|
14
src/CANode.h
Normal file
14
src/CANode.h
Normal file
@ -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…
x
Reference in New Issue
Block a user