Renamed fsm->sdodata to fsm->coe_sdodata
authorFlorian Pose <fp@igh-essen.com>
Tue, 17 Oct 2006 14:22:19 +0000
changeset 405 61d5d6457fa6
parent 404 7f7f429e13c7
child 406 e4f531d0d62d
Renamed fsm->sdodata to fsm->coe_sdodata
master/fsm.c
master/fsm.h
--- a/master/fsm.c	Tue Oct 17 14:19:59 2006 +0000
+++ b/master/fsm.c	Tue Oct 17 14:22:19 2006 +0000
@@ -1423,7 +1423,7 @@
             return;
         }
         fsm->slave_state = ec_fsm_slaveconf_sdoconf;
-        fsm->sdodata = list_entry(slave->sdo_confs.next, ec_sdo_data_t, list);
+        fsm->coe_sdodata = list_entry(slave->sdo_confs.next, ec_sdo_data_t, list);
         fsm->coe_state = ec_fsm_coe_down_start;
         fsm->coe_state(fsm); // execute immediately
         return;
@@ -1473,7 +1473,7 @@
     }
 
     fsm->slave_state = ec_fsm_slaveconf_sdoconf;
-    fsm->sdodata = list_entry(slave->sdo_confs.next, ec_sdo_data_t, list);
+    fsm->coe_sdodata = list_entry(slave->sdo_confs.next, ec_sdo_data_t, list);
     fsm->coe_state = ec_fsm_coe_down_start;
     fsm->coe_state(fsm); // execute immediately
 }
@@ -1497,9 +1497,9 @@
     if (fsm->coe_state != ec_fsm_end) return;
 
     // Another SDO to configure?
-    if (fsm->sdodata->list.next != &fsm->slave->sdo_confs) {
-        fsm->sdodata = list_entry(fsm->sdodata->list.next,
-                                  ec_sdo_data_t, list);
+    if (fsm->coe_sdodata->list.next != &fsm->slave->sdo_confs) {
+        fsm->coe_sdodata = list_entry(fsm->coe_sdodata->list.next,
+                                      ec_sdo_data_t, list);
         fsm->coe_state = ec_fsm_coe_down_start;
         fsm->coe_state(fsm); // execute immediately
         return;
@@ -2072,7 +2072,7 @@
 {
     ec_datagram_t *datagram = &fsm->datagram;
     ec_slave_t *slave = fsm->slave;
-    ec_sdo_data_t *sdodata = fsm->sdodata;
+    ec_sdo_data_t *sdodata = fsm->coe_sdodata;
     uint8_t *data;
 
     EC_INFO("Downloading SDO 0x%04X:%i to slave %i.\n",
@@ -2177,7 +2177,7 @@
     ec_slave_t *slave = fsm->slave;
     uint8_t *data, mbox_prot;
     size_t rec_size;
-    ec_sdo_data_t *sdodata = fsm->sdodata;
+    ec_sdo_data_t *sdodata = fsm->coe_sdodata;
 
     if (datagram->state != EC_DATAGRAM_RECEIVED
         || datagram->working_counter != 1) {
--- a/master/fsm.h	Tue Oct 17 14:19:59 2006 +0000
+++ b/master/fsm.h	Tue Oct 17 14:22:19 2006 +0000
@@ -80,7 +80,7 @@
     uint8_t change_take_time; /**< take sending timestamp */
 
     void (*coe_state)(ec_fsm_t *); /**< CoE state function */
-    ec_sdo_data_t *sdodata; /**< input/output: SDO data object */
+    ec_sdo_data_t *coe_sdodata; /**< input/output: SDO data object */
     cycles_t coe_start; /**< CoE timestamp */
 };