TURAG-Feldbus
escon_protocol.h
1#ifndef TURAG_FELDBUS_FUER_ESCON_H_
2#define TURAG_FELDBUS_FUER_ESCON_H_
3
4#include "base_protocol.h"
5
6//command bytes
7#define TURAG_FELDBUS_ESCON_SET_RPM 0x01
8#define TURAG_FELDBUS_ESCON_SET_CURRENT 0x02
9//command structures
11 int16_t value[2];
12};
13// } __attribute__ ((packed));
14
16 int16_t value[2];
17};
18//} __attribute__ ((packed));
19
20//response structures
22 uint8_t status;
23 int16_t currentRPM[2];
24 int16_t measuredCurrent[2];
25};
26// } __attribute__ ((packed));
27
28//status bytes
29#define TURAG_FELDBUS_ESCON_READY 0
30#define TURAG_FELDBUS_ESCON_FAILURE 1
31#define TURAG_FELDBUS_ESCON_HARDFAULT 2
32
33#endif
Definition: escon_protocol.h:15
Definition: escon_protocol.h:10
Definition: escon_protocol.h:21