drivers/ec_master.h
branchkernel2.6
changeset 27 d75ef6b46e33
parent 19 a51289e6cb2d
child 33 f4171b8aadf8
equal deleted inserted replaced
26:60435f959e5c 27:d75ef6b46e33
    54 EtherCAT_master_t;
    54 EtherCAT_master_t;
    55 
    55 
    56 /***************************************************************/
    56 /***************************************************************/
    57 
    57 
    58 // Master creation and deletion
    58 // Master creation and deletion
    59 int EtherCAT_master_init(EtherCAT_master_t *, EtherCAT_device_t *);
    59 void EtherCAT_master_init(EtherCAT_master_t *);
    60 void EtherCAT_master_clear(EtherCAT_master_t *);
    60 void EtherCAT_master_clear(EtherCAT_master_t *);
       
    61 
       
    62 // Registration of devices
       
    63 int EtherCAT_register_device(EtherCAT_master_t *, EtherCAT_device_t *);
       
    64 void EtherCAT_unregister_device(EtherCAT_master_t *, EtherCAT_device_t *);
    61 
    65 
    62 // Sending and receiving
    66 // Sending and receiving
    63 int EtherCAT_simple_send_receive(EtherCAT_master_t *, EtherCAT_command_t *);
    67 int EtherCAT_simple_send_receive(EtherCAT_master_t *, EtherCAT_command_t *);
    64 int EtherCAT_simple_send(EtherCAT_master_t *, EtherCAT_command_t *);
    68 int EtherCAT_simple_send(EtherCAT_master_t *, EtherCAT_command_t *);
    65 int EtherCAT_simple_receive(EtherCAT_master_t *, EtherCAT_command_t *);
    69 int EtherCAT_simple_receive(EtherCAT_master_t *, EtherCAT_command_t *);