equal
deleted
inserted
replaced
48 |
48 |
49 #include "globals.h" |
49 #include "globals.h" |
50 #include "datagram.h" |
50 #include "datagram.h" |
51 #include "pdo.h" |
51 #include "pdo.h" |
52 #include "sync.h" |
52 #include "sync.h" |
|
53 |
|
54 /*****************************************************************************/ |
|
55 |
|
56 /** Slave state mask. |
|
57 * |
|
58 * Apply this mask to a slave state byte to get the slave state without |
|
59 * the error flag. |
|
60 */ |
|
61 #define EC_SLAVE_STATE_MASK 0x0F |
53 |
62 |
54 /*****************************************************************************/ |
63 /*****************************************************************************/ |
55 |
64 |
56 /** State of an EtherCAT slave. |
65 /** State of an EtherCAT slave. |
57 */ |
66 */ |
154 |
163 |
155 struct kobject sdo_kobj; /**< kobject for Sdos */ |
164 struct kobject sdo_kobj; /**< kobject for Sdos */ |
156 struct list_head sdo_dictionary; /**< Sdo dictionary list */ |
165 struct list_head sdo_dictionary; /**< Sdo dictionary list */ |
157 uint8_t sdo_dictionary_fetched; /**< dictionary has been fetched */ |
166 uint8_t sdo_dictionary_fetched; /**< dictionary has been fetched */ |
158 unsigned long jiffies_preop; /**< time, the slave went to PREOP */ |
167 unsigned long jiffies_preop; /**< time, the slave went to PREOP */ |
159 |
|
160 uint8_t pdo_mapping_fetched; /**< Pdo mapping has been fetched */ |
|
161 }; |
168 }; |
162 |
169 |
163 /*****************************************************************************/ |
170 /*****************************************************************************/ |
164 |
171 |
165 // slave construction/destruction |
172 // slave construction/destruction |