You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
450 B
26 lines
450 B
#include <Arduino.h>
|
|
|
|
enum out_type {gpio, pwm, ow, i2c, spi, ws2811, dmx};
|
|
|
|
typedef struct CAN_telegram_t {
|
|
uint32_t id;
|
|
uint8_t len;
|
|
uint8_t buf[8];
|
|
} CAN_telegram_t;
|
|
|
|
typedef struct OW_switch_t {
|
|
uint8_t nick;
|
|
uint8_t addr[8];
|
|
uint8_t event_id[2];
|
|
} OW_switch_t;
|
|
|
|
typedef struct tx_event_t {
|
|
uint8_t id;
|
|
CAN_telegram_t telegram;
|
|
} event_t;
|
|
|
|
typedef struct outputs_t {
|
|
uint8_t id;
|
|
out_type type;
|
|
uint8_t address;
|
|
} outputs_t;
|
|
|