include/EtherCAT_rt.h
changeset 54 7506e67dd122
child 55 059a9e712aa7
equal deleted inserted replaced
53:6b3b8acb71b5 54:7506e67dd122
       
     1 /******************************************************************************
       
     2  *
       
     3  * Oeffentliche EtherCAT-Schnittstellen fuer Echtzeitprozesse.
       
     4  *
       
     5  * $Id$
       
     6  *
       
     7  *****************************************************************************/
       
     8 
       
     9 #ifndef _ETHERCAT_RT_H_
       
    10 #define _ETHERCAT_RT_H_
       
    11 
       
    12 /*****************************************************************************/
       
    13 
       
    14 struct ec_master;
       
    15 typedef struct ec_master ec_master_t;
       
    16 
       
    17 /*****************************************************************************/
       
    18 
       
    19 ec_master_t *EtherCAT_rt_request_master(unsigned int master_index);
       
    20 
       
    21 void EtherCAT_rt_release_master(ec_master_t *master);
       
    22 
       
    23 void *EtherCAT_rt_register_slave(ec_master_t *master, unsigned int slave_index,
       
    24                                  const char *vendor_name,
       
    25                                  const char *product_name);
       
    26 
       
    27 int EtherCAT_rt_activate_slaves(ec_master_t *master);
       
    28 
       
    29 int EtherCAT_rt_deactivate_slaves(ec_master_t *master);
       
    30 
       
    31 int EtherCAT_rt_domain_cycle(ec_master_t *master, unsigned int domain,
       
    32                              unsigned int timeout_us);
       
    33 
       
    34 /*****************************************************************************/
       
    35 
       
    36 #endif