equal
deleted
inserted
replaced
181 * This is used for the output parameter of ecrt_master_state(). |
181 * This is used for the output parameter of ecrt_master_state(). |
182 * |
182 * |
183 * \see ecrt_master_state(). |
183 * \see ecrt_master_state(). |
184 */ |
184 */ |
185 typedef struct { |
185 typedef struct { |
186 unsigned int slaves_responding; /**< Number of slaves in the bus. */ |
186 unsigned int slaves_responding; /**< Sum of responding slaves on all |
|
187 Ethernet devices. */ |
187 unsigned int al_states : 4; /**< Application-layer states of all slaves. |
188 unsigned int al_states : 4; /**< Application-layer states of all slaves. |
188 The states are coded in the lower 4 bits. |
189 The states are coded in the lower 4 bits. |
189 If a bit is set, it means that at least one |
190 If a bit is set, it means that at least one |
190 slave in the bus is in the corresponding |
191 slave in the bus is in the corresponding |
191 state: |
192 state: |
192 - Bit 0: \a INIT |
193 - Bit 0: \a INIT |
193 - Bit 1: \a PREOP |
194 - Bit 1: \a PREOP |
194 - Bit 2: \a SAFEOP |
195 - Bit 2: \a SAFEOP |
195 - Bit 3: \a OP */ |
196 - Bit 3: \a OP */ |
196 unsigned int link_up : 1; /**< \a true, if the network link is up. */ |
197 unsigned int link_up : 1; /**< \a true, if at least one Ethernet link is |
|
198 up. */ |
197 } ec_master_state_t; |
199 } ec_master_state_t; |
198 |
200 |
199 /*****************************************************************************/ |
201 /*****************************************************************************/ |
200 |
202 |
201 /** Slave configuration state. |
203 /** Slave configuration state. |