include/ecrt.h
changeset 2088 1a2c91815f2f
parent 2060 8b67602f5161
child 2107 ebda087981e1
equal deleted inserted replaced
2087:366de1369558 2088:1a2c91815f2f
   485  */
   485  */
   486 void ecrt_release_master(
   486 void ecrt_release_master(
   487         ec_master_t *master /**< EtherCAT master */
   487         ec_master_t *master /**< EtherCAT master */
   488         );
   488         );
   489 
   489 
   490 
       
   491 #ifdef __KERNEL__
   490 #ifdef __KERNEL__
       
   491 
   492 /** Attach to a running master
   492 /** Attach to a running master
   493  *   
   493  *   
   494  * This function returns the master handle for the RTDM-Interface
   494  * This function returns the master handle for the RTDM-Interface
   495  *
   495  *
   496  * \return Pointer to the opened master, otherwise \a NULL.
   496  * \return Pointer to the opened master, otherwise \a NULL.
   498 ec_master_t *ecrt_attach_master(
   498 ec_master_t *ecrt_attach_master(
   499        unsigned int master_index /**< Index of the master to request. */
   499        unsigned int master_index /**< Index of the master to request. */
   500        );
   500        );
   501 
   501 
   502 #endif // #ifdef __KERNEL__
   502 #endif // #ifdef __KERNEL__
   503 
       
   504 
       
   505 
       
   506 
   503 
   507 /******************************************************************************
   504 /******************************************************************************
   508  * Master methods
   505  * Master methods
   509  *****************************************************************************/
   506  *****************************************************************************/
   510 
   507 
   553         unsigned int index);
   550         unsigned int index);
   554 
   551 
   555 
   552 
   556 #endif /* __KERNEL__ */
   553 #endif /* __KERNEL__ */
   557 
   554 
   558 
       
   559 #ifndef __KERNEL__
   555 #ifndef __KERNEL__
       
   556 
   560 /** Return the domain index of a given domain strucure
   557 /** Return the domain index of a given domain strucure
   561  *
   558  *
   562  * Return the domain index of a given domain strucure. Usage inside of the
   559  * Return the domain index of a given domain strucure. Usage inside of the
   563  * RTDM Interface
   560  * RTDM Interface
   564  *
   561  *
   568  unsigned int ecrt_domain_index(
   565  unsigned int ecrt_domain_index(
   569          ec_domain_t *domain
   566          ec_domain_t *domain
   570          );
   567          );
   571 
   568 
   572 #endif // #ifndef __KERNEL__
   569 #endif // #ifndef __KERNEL__
   573 
       
   574 
   570 
   575 /** Creates a new process data domain.
   571 /** Creates a new process data domain.
   576  *
   572  *
   577  * For process data exchange, at least one process data domain is needed.
   573  * For process data exchange, at least one process data domain is needed.
   578  * This method creates a new process data domain and returns a pointer to the
   574  * This method creates a new process data domain and returns a pointer to the
   582  * \return Pointer to the new domain on success, else NULL.
   578  * \return Pointer to the new domain on success, else NULL.
   583  */
   579  */
   584 ec_domain_t *ecrt_master_create_domain(
   580 ec_domain_t *ecrt_master_create_domain(
   585         ec_master_t *master /**< EtherCAT master. */
   581         ec_master_t *master /**< EtherCAT master. */
   586         );
   582         );
   587 
       
   588 
   583 
   589 /** Obtains a slave configuration.
   584 /** Obtains a slave configuration.
   590  *
   585  *
   591  * Creates a slave configuration object for the given \a alias and \a position
   586  * Creates a slave configuration object for the given \a alias and \a position
   592  * tuple and returns it. If a configuration with the same \a alias and \a
   587  * tuple and returns it. If a configuration with the same \a alias and \a
   817  * become invalid.
   812  * become invalid.
   818  */
   813  */
   819 void ecrt_master_deactivate(
   814 void ecrt_master_deactivate(
   820         ec_master_t *master /**< EtherCAT master. */
   815         ec_master_t *master /**< EtherCAT master. */
   821         );
   816         );
   822 
       
   823 
   817 
   824 /** Set interval between calls to ecrt_master_send
   818 /** Set interval between calls to ecrt_master_send
   825  *
   819  *
   826  */
   820  */
   827 int ecrt_master_set_send_interval(
   821 int ecrt_master_set_send_interval(