drivers/ec_master.h
changeset 11 e58d78234412
parent 2 b0a7a4745bf9
child 13 db0742533c10
equal deleted inserted replaced
10:67c739ece5d5 11:e58d78234412
    73 int EtherCAT_activate_all_slaves(EtherCAT_master_t *);
    73 int EtherCAT_activate_all_slaves(EtherCAT_master_t *);
    74 int EtherCAT_deactivate_all_slaves(EtherCAT_master_t *);
    74 int EtherCAT_deactivate_all_slaves(EtherCAT_master_t *);
    75 
    75 
    76 // Sending and receiving
    76 // Sending and receiving
    77 int EtherCAT_async_send_receive(EtherCAT_master_t *);
    77 int EtherCAT_async_send_receive(EtherCAT_master_t *);
       
    78 int EtherCAT_send_receive_command(EtherCAT_master_t *, EtherCAT_command_t *);
    78 int EtherCAT_send(EtherCAT_master_t *);
    79 int EtherCAT_send(EtherCAT_master_t *);
    79 int EtherCAT_receive(EtherCAT_master_t *);
    80 int EtherCAT_receive(EtherCAT_master_t *);
       
    81 
    80 int EtherCAT_write_process_data(EtherCAT_master_t *);
    82 int EtherCAT_write_process_data(EtherCAT_master_t *);
    81 int EtherCAT_read_process_data(EtherCAT_master_t *);
    83 int EtherCAT_read_process_data(EtherCAT_master_t *);
    82 void EtherCAT_clear_process_data(EtherCAT_master_t *);
    84 void EtherCAT_clear_process_data(EtherCAT_master_t *);
    83 
    85 
    84 /***************************************************************/
    86 /***************************************************************/
   130 // Private functions
   132 // Private functions
   131 EtherCAT_command_t *alloc_cmd(EtherCAT_master_t *);
   133 EtherCAT_command_t *alloc_cmd(EtherCAT_master_t *);
   132 int add_command(EtherCAT_master_t *, EtherCAT_command_t *);
   134 int add_command(EtherCAT_master_t *, EtherCAT_command_t *);
   133 void set_byte(unsigned char *, unsigned int, unsigned char);
   135 void set_byte(unsigned char *, unsigned int, unsigned char);
   134 void set_word(unsigned char *, unsigned int, unsigned int);
   136 void set_word(unsigned char *, unsigned int, unsigned int);
       
   137 void output_debug_data(unsigned char *, unsigned int);
   135 
   138 
   136 /***************************************************************/
   139 /***************************************************************/
   137 
   140 
   138 #endif
   141 #endif