392 ec_domain_response_count(domain, working_counter_sum); |
392 ec_domain_response_count(domain, working_counter_sum); |
393 } |
393 } |
394 |
394 |
395 /*****************************************************************************/ |
395 /*****************************************************************************/ |
396 |
396 |
|
397 /** |
|
398 Gibt den Status einer Domäne zurück. |
|
399 |
|
400 \return 0 wenn alle Kommandos empfangen wurden, sonst -1. |
|
401 */ |
|
402 |
|
403 int ecrt_domain_state(ec_domain_t *domain /**< Domäne */) |
|
404 { |
|
405 unsigned int i; |
|
406 ec_command_t *command; |
|
407 |
|
408 for (i = 0; i < domain->command_count; i++) { |
|
409 command = domain->commands + i; |
|
410 if (command->state != EC_CMD_RECEIVED) return -1; |
|
411 } |
|
412 |
|
413 return 0; |
|
414 } |
|
415 |
|
416 /*****************************************************************************/ |
|
417 |
397 EXPORT_SYMBOL(ecrt_domain_register_field); |
418 EXPORT_SYMBOL(ecrt_domain_register_field); |
398 EXPORT_SYMBOL(ecrt_domain_register_field_list); |
419 EXPORT_SYMBOL(ecrt_domain_register_field_list); |
399 EXPORT_SYMBOL(ecrt_domain_queue); |
420 EXPORT_SYMBOL(ecrt_domain_queue); |
400 EXPORT_SYMBOL(ecrt_domain_process); |
421 EXPORT_SYMBOL(ecrt_domain_process); |
|
422 EXPORT_SYMBOL(ecrt_domain_state); |
401 |
423 |
402 /*****************************************************************************/ |
424 /*****************************************************************************/ |
403 |
425 |
404 /* Emacs-Konfiguration |
426 /* Emacs-Konfiguration |
405 ;;; Local Variables: *** |
427 ;;; Local Variables: *** |