src/nmtMaster.c
changeset 631 08b6b903f84a
parent 597 ea32aa303987
equal deleted inserted replaced
630:96919642e99c 631:08b6b903f84a
    86 /*!
    86 /*!
    87 **
    87 **
    88 **
    88 **
    89 ** @param d
    89 ** @param d
    90 ** @param nodeId
    90 ** @param nodeId
       
    91 **
       
    92 ** @return
    91 **/
    93 **/
    92 void masterRequestNodeState(CO_Data* d, UNS8 nodeId)
    94 UNS8 masterRequestNodeState(CO_Data* d, UNS8 nodeId)
    93 {
    95 {
    94   /* FIXME: should warn for bad toggle bit. */
    96   /* FIXME: should warn for bad toggle bit. */
    95 
    97 
    96   /* NMTable configuration to indicate that the master is waiting
    98   /* NMTable configuration to indicate that the master is waiting
    97     for a Node_Guard frame from the slave whose node_id is ID
    99     for a Node_Guard frame from the slave whose node_id is ID
   103     UNS8 i = 0;
   105     UNS8 i = 0;
   104     for (i = 0 ; i < NMT_MAX_NODE_ID ; i++) {
   106     for (i = 0 ; i < NMT_MAX_NODE_ID ; i++) {
   105       d->NMTable[i] = Unknown_state;
   107       d->NMTable[i] = Unknown_state;
   106     }
   108     }
   107   }
   109   }
   108   masterSendNMTnodeguard(d,nodeId);
   110   return masterSendNMTnodeguard(d,nodeId);
   109 }
   111 }
   110 
   112