drivers/ec_command.h
changeset 13 db0742533c10
parent 2 b0a7a4745bf9
child 14 28b57b073f58
equal deleted inserted replaced
12:920e3b41a61f 13:db0742533c10
    51     unsigned short mem; /**< Physikalische Speicheradresse im Slave */
    51     unsigned short mem; /**< Physikalische Speicheradresse im Slave */
    52   }
    52   }
    53   phy;
    53   phy;
    54 
    54 
    55   unsigned long logical; /**< Logische Adresse */
    55   unsigned long logical; /**< Logische Adresse */
    56   unsigned char raw[4]; /**< Rohdaten für die generierung des Frames */
    56   unsigned char raw[4]; /**< Rohdaten für die Generierung des Frames */
    57 }
    57 }
    58 EtherCAT_address_t;
    58 EtherCAT_address_t;
    59 
    59 
    60 /***************************************************************/
    60 /***************************************************************/
    61 
    61 
    84 /***************************************************************/
    84 /***************************************************************/
    85 
    85 
    86 void EtherCAT_command_init(EtherCAT_command_t *);
    86 void EtherCAT_command_init(EtherCAT_command_t *);
    87 void EtherCAT_command_clear(EtherCAT_command_t *);
    87 void EtherCAT_command_clear(EtherCAT_command_t *);
    88 
    88 
       
    89 void EtherCAT_command_read(EtherCAT_command_t *,
       
    90                            unsigned short,
       
    91                            unsigned short,
       
    92                            unsigned int);
       
    93 void EtherCAT_command_write(EtherCAT_command_t *,
       
    94                             unsigned short,
       
    95                             unsigned short,
       
    96                             unsigned int,
       
    97                             const unsigned char *);
       
    98 void EtherCAT_command_position_read(EtherCAT_command_t *,
       
    99                                     short,
       
   100                                     unsigned short,
       
   101                                     unsigned int);
       
   102 void EtherCAT_command_position_write(EtherCAT_command_t *,
       
   103                                      short,
       
   104                                      unsigned short,
       
   105                                      unsigned int,
       
   106                                      const unsigned char *);
       
   107 void EtherCAT_command_broadcast_read(EtherCAT_command_t *,
       
   108                                      unsigned short,
       
   109                                      unsigned int);
       
   110 void EtherCAT_command_broadcast_write(EtherCAT_command_t *,
       
   111                                       unsigned short,
       
   112                                       unsigned int,
       
   113                                       const unsigned char *);
       
   114 void EtherCAT_command_logical_read_write(EtherCAT_command_t *,
       
   115                                          unsigned int,
       
   116                                          unsigned int,
       
   117                                          unsigned char *);
       
   118 
    89 /***************************************************************/
   119 /***************************************************************/
    90 
   120 
    91 #endif
   121 #endif