src/dcf.c
changeset 208 05d95c45b388
parent 207 b6572d0336c3
child 210 6b5a4c21e061
--- a/src/dcf.c	Mon Jun 04 17:59:50 2007 +0200
+++ b/src/dcf.c	Tue Jun 05 16:41:38 2007 +0200
@@ -22,12 +22,12 @@
   USA
 */
 
-/*!
+/**
 ** @file   dcf.c
 ** @author Edouard TISSERANT and Francis DUPIN
 ** @date   Mon Jun  4 17:06:12 2007
 **
-** @brief
+** @brief EXEMPLE OF SOMMARY
 **
 **
 */
@@ -37,18 +37,30 @@
 #include "sysdep.h"
 
 
-
+/**
+**
+**
+** @param d fuck fuck fuck
+** @param nodeId
+** @param index
+** @param subIndex
+** @param count
+** @param dataType
+** @param data
+** @param Callback
+** @param endianize
+*/
 extern UNS8 _writeNetworkDict (CO_Data* d, UNS8 nodeId, UNS16 index,
                                UNS8 subIndex, UNS8 count, UNS8 dataType, void *data, SDOCallback_t Callback, UNS8 endianize);
 
 const indextable *ptrTable;
 
-/*!
+/**
 **
 **
 ** @param d
 ** @param nodeId
-**/
+*/
 static void CheckSDOAndContinue(CO_Data* d, UNS8 nodeId)
 {
   UNS32 abortCode;
@@ -63,14 +75,14 @@
   decompo_dcf(d,nodeId);
 }
 
-/*!
+/**
 **
 **
 ** @param d
 ** @param nodeId
 **
 ** @return
-**/
+*/
 UNS32 decompo_dcf(CO_Data* d,UNS8 nodeId)
 {
   UNS32 errorCode;
@@ -86,7 +98,7 @@
       return errorCode;
     }
 
-  /*Loop on all Nodes supported in DCF subindexes*/
+  /** Loop on all Nodes supported in DCF subindexes*/
   while (nodeId < ptrTable->bSubCount){
     UNS32 nb_targets;
 
@@ -103,27 +115,27 @@
       nb_targets = UNS32_LE(*((UNS32*)dcf));
     }
 
-    // condition on consise DCF string for NodeID, if big enough
+    /** condition on consise DCF string for NodeID, if big enough */
     if((UNS8*)d->dcf_cursor + 7 < (UNS8*)dcfend && d->dcf_count_targets < nb_targets)
       {
-        // pointer to the DCF string for NodeID
+        /** pointer to the DCF string for NodeID */
         target_Index = UNS16_LE(*((UNS16*)(d->dcf_cursor))); d->dcf_cursor += 2;
         target_Subindex = *((UNS8*)(((UNS8*)d->dcf_cursor)++));
         target_Size = UNS32_LE(*((UNS32*)(d->dcf_cursor))); d->dcf_cursor += 4;
 
-        /*printf("Master : ConfigureSlaveNode %2.2x (Concise
+        /* printf("Master : ConfigureSlaveNode %2.2x (Concise
           DCF)\n",nodeId);*/
-        res = _writeNetworkDict(d, /*CO_Data* d*/
-                                nodeId, /*UNS8 nodeId*/
-                                target_Index, /*UNS16 index*/
-                                target_Subindex, /*UNS8 subindex*/
-                                target_Size, /*UNS8 count*/
-                                0, /*UNS8 dataType*/
-                                d->dcf_cursor,/*void *data*/
-                                CheckSDOAndContinue,/*SDOCallback_t
+        res = _writeNetworkDict(d, /** CO_Data* d*/
+                                nodeId, /** UNS8 nodeId*/
+                                target_Index, /** UNS16 index*/
+                                target_Subindex, /** UNS8 subindex*/
+                                target_Size, /** UNS8 count*/
+                                0, /** UNS8 dataType*/
+                                d->dcf_cursor,/** void *data*/
+                                CheckSDOAndContinue,/** SDOCallback_t
                                                       Callback*/
-                                0); /* no endianize*/
-        /*Push d->dcf_cursor to the end of data*/
+                                0); /** no endianize*/
+        /** Push d->dcf_cursor to the end of data*/
 
         d->dcf_cursor += target_Size;
         d->dcf_count_targets++;
@@ -133,7 +145,7 @@
     nodeId++;
     d->dcf_cursor = NULL;
   }
-  /* Switch Master to preOperational state */
+  /**  Switch Master to preOperational state */
   (*d->preOperational)();
 
 }