diff options
Diffstat (limited to 'src/transport/plugin_transport_sat_constants.h')
-rw-r--r-- | src/transport/plugin_transport_sat_constants.h | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/transport/plugin_transport_sat_constants.h b/src/transport/plugin_transport_sat_constants.h index a9ee9227c..bd64c5d2b 100644 --- a/src/transport/plugin_transport_sat_constants.h +++ b/src/transport/plugin_transport_sat_constants.h | |||
@@ -32,22 +32,26 @@ | |||
32 | 32 | ||
33 | typedef struct MacAdress | 33 | typedef struct MacAdress |
34 | { | 34 | { |
35 | uint8_t mac[6]; | 35 | uint8_t mac[6]; |
36 | }MacAdress; | 36 | } MacAdress; |
37 | 37 | ||
38 | //praeamble | 38 | //praeamble |
39 | static const struct char praeambel[56] = | 39 | static const struct char praeambel[56] = |
40 | {{1,0,1,0,10,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0}}; | 40 | { {1, 0, 1, 0, 10, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, |
41 | 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, | ||
42 | 0, 1, 0, 1, 0, 1, 0} | ||
43 | }; | ||
41 | 44 | ||
42 | //start of frame | 45 | //start of frame |
43 | static const struct char sof[8]= | 46 | static const struct char sof[8] = { {1, 0, 1, 0, 1, 0, 1, 1} } |
44 | {{1,0,1,0,1,0,1,1}} | ||
45 | 47 | ||
46 | // broadcast mac | 48 | // broadcast mac |
47 | static const struct MacAddress bc_all_mac = | 49 | static const struct MacAddress bc_all_mac = |
48 | { { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF } }; | 50 | { {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF} }; |
49 | 51 | ||
50 | //crc polynom | 52 | //crc polynom |
51 | static const struct char ploynom[32] = | 53 | static const struct char ploynom[32] = |
52 | {{1,1,1,0,1,1,0,1,1,0,1,1,1,0,0,0,1,0,0,0,0,0,1,1,0,0,1,0,0,0,0,1}}; | 54 | { {1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, |
55 | 0, 0, 1, 0, 0, 0, 0, 1} | ||
56 | }; | ||
53 | #endif | 57 | #endif |