include/nmtMaster.h
changeset 528 0a30e161d63c
parent 71 95cd3376cc9f
child 529 c171e11707c5
--- a/include/nmtMaster.h	Thu Nov 20 07:51:14 2008 +0100
+++ b/include/nmtMaster.h	Sat Jan 17 17:25:58 2009 +0100
@@ -20,43 +20,64 @@
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
 
+/** @defgroup networkmanagement Network Management
+ *  @ingroup userapi
+ */
+/** @defgroup nmtmaster NMT Master
+ *  @ingroup networkmanagement
+ */
+ 
 #ifndef __nmtMaster_h__
 #define __nmtMaster_h__
 
 #include "data.h"
 
-/** Transmit a NMT message on the bus number bus_id
+/** 
+ * @ingroup nmtmaster
+ * @brief Transmit a NMT message on the bus number bus_id
  * to the slave whose node_id is ID
+ * 
  * bus_id is hardware dependant
  * cs represents the order of state changement:
- * cs =  NMT_Start_Node            // Put the node in operational mode             
- * cs =	 NMT_Stop_Node		   // Put the node in stopped mode
- * cs =	 NMT_Enter_PreOperational  // Put the node in pre_operational mode  
- * cs =  NMT_Reset_Node		   // Put the node in initialization mode 
- * cs =  NMT_Reset_Comunication	   // Put the node in initialization mode 
+ *  - cs =  NMT_Start_Node            // Put the node in operational mode             
+ *  - cs =	 NMT_Stop_Node		   // Put the node in stopped mode
+ *  - cs =	 NMT_Enter_PreOperational  // Put the node in pre_operational mode  
+ *  - cs =  NMT_Reset_Node		   // Put the node in initialization mode 
+ *  - cs =  NMT_Reset_Comunication	   // Put the node in initialization mode 
  * The mode is changed according to the slave state machine mode :
- *        initialisation  ---> pre-operational (Automatic transition)
- *        pre-operational <--> operational
- *        pre-operational <--> stopped
- *        pre-operational, operational, stopped -> initialisation
- *
- * return canSend(bus_id,&m)               
+ *  - initialisation  ---> pre-operational (Automatic transition)
+ *  - pre-operational <--> operational
+ *  - pre-operational <--> stopped
+ *  - pre-operational, operational, stopped -> initialisation
+ * @param *d Pointer on a CAN object data structure
+ * @param Node_ID Id of the slave node
+ * @param cs State changement
+ * @return canSend(bus_id,&m)               
  */
 UNS8 masterSendNMTstateChange (CO_Data* d, UNS8 Node_ID, UNS8 cs);
 
-/** Transmit a Node_Guard message on the bus number bus_id
+/**
+ * @ingroup nmtmaster 
+ * @brief Transmit a Node_Guard message on the bus number bus_id
  * to the slave whose node_id is nodeId
+ * 
  * bus_id is hardware dependant
- * return canSend(bus_id,&m)
+ * @param *d Pointer on a CAN object data structure
+ * @param nodeId Id of the slave node
+ * @return canSend(bus_id,&m)
  */
 UNS8 masterSendNMTnodeguard (CO_Data* d, UNS8 nodeId);
 
-
-/** Prepare a Node_Guard message transmission on the bus number bus_id
+/** 
+ * @ingroup nmtmaster
+ * @brief Prepare a Node_Guard message transmission on the bus number bus_id
  * to the slave whose node_id is nodeId
+ * 
  * Put nodeId = 0 to send an NMT broadcast.
  * This message will ask for the slave, whose node_id is nodeId, its state
  * bus_id is hardware dependant
+ * @param *d Pointer on a CAN object data structure
+ * @param nodeId Id of the slave node
  */
 void masterRequestNodeState (CO_Data* d, UNS8 nodeId);