equal
deleted
inserted
replaced
141 struct list_head datagram_queue; /**< Datagram queue. */ |
141 struct list_head datagram_queue; /**< Datagram queue. */ |
142 uint8_t datagram_index; /**< Current datagram index. */ |
142 uint8_t datagram_index; /**< Current datagram index. */ |
143 |
143 |
144 struct list_head domains; /**< List of domains. */ |
144 struct list_head domains; /**< List of domains. */ |
145 |
145 |
146 int debug_level; /**< Master debug level. */ |
146 unsigned int debug_level; /**< Master debug level. */ |
147 ec_stats_t stats; /**< Cyclic statistics. */ |
147 ec_stats_t stats; /**< Cyclic statistics. */ |
148 unsigned int frames_timed_out; /**< There were frame timeouts in the last |
148 unsigned int frames_timed_out; /**< There were frame timeouts in the last |
149 call to ecrt_master_receive(). */ |
149 call to ecrt_master_receive(). */ |
150 |
150 |
151 struct task_struct *thread; /**< Master thread. */ |
151 struct task_struct *thread; /**< Master thread. */ |
185 // static funtions |
185 // static funtions |
186 void ec_master_init_static(void); |
186 void ec_master_init_static(void); |
187 |
187 |
188 // master creation/deletion |
188 // master creation/deletion |
189 int ec_master_init(ec_master_t *, unsigned int, const uint8_t *, |
189 int ec_master_init(ec_master_t *, unsigned int, const uint8_t *, |
190 const uint8_t *, dev_t, struct class *); |
190 const uint8_t *, dev_t, struct class *, unsigned int); |
191 void ec_master_clear(ec_master_t *); |
191 void ec_master_clear(ec_master_t *); |
192 |
192 |
193 // phase transitions |
193 // phase transitions |
194 int ec_master_enter_idle_phase(ec_master_t *); |
194 int ec_master_enter_idle_phase(ec_master_t *); |
195 void ec_master_leave_idle_phase(ec_master_t *); |
195 void ec_master_leave_idle_phase(ec_master_t *); |
225 unsigned int ec_master_domain_count(const ec_master_t *); |
225 unsigned int ec_master_domain_count(const ec_master_t *); |
226 ec_domain_t *ec_master_find_domain(ec_master_t *, unsigned int); |
226 ec_domain_t *ec_master_find_domain(ec_master_t *, unsigned int); |
227 const ec_domain_t *ec_master_find_domain_const(const ec_master_t *, |
227 const ec_domain_t *ec_master_find_domain_const(const ec_master_t *, |
228 unsigned int); |
228 unsigned int); |
229 |
229 |
230 int ec_master_debug_level(ec_master_t *, int); |
230 int ec_master_debug_level(ec_master_t *, unsigned int); |
231 |
231 |
232 ec_domain_t *ecrt_master_create_domain_err(ec_master_t *); |
232 ec_domain_t *ecrt_master_create_domain_err(ec_master_t *); |
233 ec_slave_config_t *ecrt_master_slave_config_err(ec_master_t *, uint16_t, |
233 ec_slave_config_t *ecrt_master_slave_config_err(ec_master_t *, uint16_t, |
234 uint16_t, uint32_t, uint32_t); |
234 uint16_t, uint32_t, uint32_t); |
235 |
235 |