src/dcf.c
changeset 361 2220813498f2
parent 353 ee08ce0366a7
child 368 7b51757bfc81
equal deleted inserted replaced
360:09af3515dd42 361:2220813498f2
    74 **
    74 **
    75 ** @return
    75 ** @return
    76 */
    76 */
    77 UNS8 send_consise_dcf(CO_Data* d,UNS8 nodeId)
    77 UNS8 send_consise_dcf(CO_Data* d,UNS8 nodeId)
    78 {
    78 {
       
    79   UNS8 szData;
    79   /* Fetch DCF OD entry, if not already done */
    80   /* Fetch DCF OD entry, if not already done */
    80   if(!d->dcf_odentry)
    81   if(!d->dcf_odentry)
    81   {
    82   {
    82     UNS32 errorCode;
    83     UNS32 errorCode;
    83     ODCallback_t *Callback;
    84     ODCallback_t *Callback;
    84     d->dcf_odentry = (*d->scanIndexOD)(0x1F22, &errorCode, &Callback);
    85     d->dcf_odentry = (*d->scanIndexOD)(0x1F22, &errorCode, &Callback);
    85     /* If DCF entry do not exist... Nothing to do.*/
    86     /* If DCF entry do not exist... Nothing to do.*/
    86     if (errorCode != OD_SUCCESSFUL) goto DCF_finish;
    87     if (errorCode != OD_SUCCESSFUL) goto DCF_finish;
    87   }
    88   }
    88 
    89 
    89   UNS8 szData = d->dcf_odentry->pSubindex[nodeId].size;
    90   szData = d->dcf_odentry->pSubindex[nodeId].size;
       
    91   
    90   /* if the entry for the nodeId is not empty. */
    92   /* if the entry for the nodeId is not empty. */
    91   if(szData!=0){
    93   if(szData!=0){
    92   	/* if the entry for the nodeId is already been processing, quit.*/
    94   	/* if the entry for the nodeId is already been processing, quit.*/
    93   	if(d->dcf_odentry->pSubindex[nodeId].bAccessType & DCF_TO_SEND) return 1;
    95   	if(d->dcf_odentry->pSubindex[nodeId].bAccessType & DCF_TO_SEND) return 1;
    94   	
    96