src/nmtMaster.c
changeset 71 95cd3376cc9f
parent 0 4472ee7c6c3e
child 149 fe50ada8020b
equal deleted inserted replaced
70:f36f09f08b62 71:95cd3376cc9f
    56 }
    56 }
    57 
    57 
    58 /******************************************************************************/
    58 /******************************************************************************/
    59 void masterRequestNodeState(CO_Data* d, UNS8 nodeId)
    59 void masterRequestNodeState(CO_Data* d, UNS8 nodeId)
    60 {
    60 {
    61   // FIXME: should warn for bad toggle bit.
    61   /* FIXME: should warn for bad toggle bit. */
    62 
    62 
    63   /* NMTable configuration to indicate that the master is waiting
    63   /* NMTable configuration to indicate that the master is waiting
    64    * for a Node_Guard frame from the slave whose node_id is ID */
    64    * for a Node_Guard frame from the slave whose node_id is ID */
    65   d->NMTable[nodeId] = Unknown_state; // A state that does not exist
    65   d->NMTable[nodeId] = Unknown_state; /* A state that does not exist */
    66 
    66 
    67   if (nodeId == 0) { // NMT broadcast
    67   if (nodeId == 0) { /* NMT broadcast */
    68     UNS8 i = 0;
    68     UNS8 i = 0;
    69     for (i = 0 ; i < NMT_MAX_NODE_ID ; i++) {
    69     for (i = 0 ; i < NMT_MAX_NODE_ID ; i++) {
    70       d->NMTable[i] = Unknown_state;
    70       d->NMTable[i] = Unknown_state;
    71     }
    71     }
    72   }
    72   }