equal
deleted
inserted
replaced
80 |
80 |
81 struct struct_lss_transfer; |
81 struct struct_lss_transfer; |
82 |
82 |
83 //#include "timer.h" |
83 //#include "timer.h" |
84 |
84 |
|
85 #ifdef CO_ENABLE_LSS_FS |
|
86 struct struct_lss_fs_transfer { |
|
87 UNS32 FS_LSS_ID[4]; |
|
88 UNS8 FS_BitChecked[4]; |
|
89 }; |
|
90 |
|
91 typedef struct struct_lss_fs_transfer lss_fs_transfer_t; |
|
92 #endif |
|
93 |
85 /* The Transfer structure |
94 /* The Transfer structure |
86 * Used to store the different fields of the internal state of the LSS |
95 * Used to store the different fields of the internal state of the LSS |
87 */ |
96 */ |
88 |
97 |
89 struct struct_lss_transfer { |
98 struct struct_lss_transfer { |
128 UNS8 LSSPos; /* in the slave, which part of the LSS-ID is currently processed*/ |
137 UNS8 LSSPos; /* in the slave, which part of the LSS-ID is currently processed*/ |
129 UNS8 FastScan_SM; /* the state machine for the FastScan protocol */ |
138 UNS8 FastScan_SM; /* the state machine for the FastScan protocol */ |
130 TIMER_HANDLE timerFS; /* timerFS is automatically incremented when the FastScan service |
139 TIMER_HANDLE timerFS; /* timerFS is automatically incremented when the FastScan service |
131 * has been requested and reseted to 0 when the protocol ends. |
140 * has been requested and reseted to 0 when the protocol ends. |
132 */ |
141 */ |
|
142 #ifdef CO_ENABLE_LSS_FS |
|
143 lss_fs_transfer_t lss_fs_transfer; |
|
144 #endif |
|
145 |
133 #endif |
146 #endif |
134 }; |
147 }; |
135 |
148 |
136 #ifdef CO_ENABLE_LSS |
149 #ifdef CO_ENABLE_LSS |
137 typedef struct struct_lss_transfer lss_transfer_t; |
150 typedef struct struct_lss_transfer lss_transfer_t; |
138 #else |
151 #else |
139 typedef UNS8 lss_transfer_t; |
152 typedef UNS8 lss_transfer_t; |
140 #endif |
153 #endif |
141 |
154 |
142 |
155 |
|
156 |
143 void startLSS(CO_Data* d); |
157 void startLSS(CO_Data* d); |
144 void stopLSS(CO_Data* d); |
158 void stopLSS(CO_Data* d); |
145 |
159 |
146 |
160 |
147 /** transmit a LSS message |
161 /** transmit a LSS message |