Minor fixes.
authorFlorian Pose <fp@igh-essen.com>
Fri, 01 Feb 2008 20:35:12 +0000
changeset 780 53b9a0a92154
parent 779 b39a6a4d3671
child 781 9736efaac5d5
Minor fixes.
include/ecrt.h
--- a/include/ecrt.h	Fri Feb 01 20:26:26 2008 +0000
+++ b/include/ecrt.h	Fri Feb 01 20:35:12 2008 +0000
@@ -107,7 +107,7 @@
 typedef struct {
     ec_bus_status_t bus_status; /**< \see ec_bus_status_t */
     unsigned int bus_tainted; /**< non-zero, if the bus topology is invalid */
-    unsigned int slaves_responding; /**< number of responging slaves */
+    unsigned int slaves_responding; /**< number of responding slaves */
 }
 ec_master_status_t;
 
@@ -156,24 +156,24 @@
 
 ec_domain_t *ecrt_master_create_domain(ec_master_t *master);
 
-ec_slave_t *ecrt_master_get_slave(const ec_master_t *, const char *,
-        uint32_t vendor_id, uint32_t product_code);
-ec_slave_t *ecrt_master_get_slave_by_pos(const ec_master_t *, uint16_t,
-        uint32_t vendor_id, uint32_t product_code);
+ec_slave_t *ecrt_master_get_slave(const ec_master_t *master,
+        const char *address, uint32_t vendor_id, uint32_t product_code);
+ec_slave_t *ecrt_master_get_slave_by_pos(const ec_master_t *master,
+        uint16_t position, uint32_t vendor_id, uint32_t product_code);
 
 int ecrt_master_activate(ec_master_t *master);
 
 void ecrt_master_send(ec_master_t *master);
 void ecrt_master_receive(ec_master_t *master);
 
-void ecrt_master_get_status(const ec_master_t *master, ec_master_status_t *);
+void ecrt_master_get_status(const ec_master_t *master, ec_master_status_t *s);
 
 /******************************************************************************
  * Domain methods
  *****************************************************************************/
 
 int ecrt_domain_register_pdo(ec_domain_t *domain, ec_slave_t *slave,
-        uint16_t pdo_index, uint8_t pdo_subindex, void **data_ptr);
+        uint16_t pdo_entry_index, uint8_t pdo_entry_subindex, void **data_ptr);
 
 int ecrt_domain_register_pdo_range(ec_domain_t *domain, ec_slave_t *slave,
         ec_direction_t direction, uint16_t offset, uint16_t length,