src/dcf.c
changeset 202 9cfd9211616c
parent 200 930be51ddc24
child 204 44ce74232ccb
equal deleted inserted replaced
201:2966cd34162a 202:9cfd9211616c
    78 			{
    78 			{
    79 				// pointer to the DCF string for NodeID
    79 				// pointer to the DCF string for NodeID
    80 				target_Index = UNS16_LE(*((UNS16*)(d->dcf_cursor))); d->dcf_cursor += 2;
    80 				target_Index = UNS16_LE(*((UNS16*)(d->dcf_cursor))); d->dcf_cursor += 2;
    81 				target_Subindex = *((UNS8*)(d->dcf_cursor++));
    81 				target_Subindex = *((UNS8*)(d->dcf_cursor++));
    82 				target_Size = UNS32_LE(*((UNS32*)(d->dcf_cursor))); d->dcf_cursor += 4;
    82 				target_Size = UNS32_LE(*((UNS32*)(d->dcf_cursor))); d->dcf_cursor += 4;
    83 				
    83 					
    84 					/*printf("Master : ConfigureSlaveNode %2.2x (Concise DCF)\n",nodeId);*/
    84 					/*printf("Master : ConfigureSlaveNode %2.2x (Concise DCF)\n",nodeId);*/
    85 					res = writeNetworkDictCallBack(d, /*CO_Data* d*/
    85 					res = _writeNetworkDict(d, /*CO_Data* d*/
    86 							nodeId, /*UNS8 nodeId*/
    86 							nodeId, /*UNS8 nodeId*/
    87 							target_Index, /*UNS16 index*/
    87 							target_Index, /*UNS16 index*/
    88 							target_Subindex, /*UNS8 subindex*/
    88 							target_Subindex, /*UNS8 subindex*/
    89 							target_Size, /*UNS8 count*/
    89 							target_Size, /*UNS8 count*/
    90 							0, /*UNS8 dataType*/
    90 							0, /*UNS8 dataType*/
    91 							d->dcf_cursor,/*void *data*/
    91 							d->dcf_cursor,/*void *data*/
    92 							CheckSDOAndContinue); /*SDOCallback_t Callback*/					
    92 							CheckSDOAndContinue,/*SDOCallback_t Callback*/	
       
    93 							0); /* no endianize		*/
    93 					/*Push d->dcf_cursor to the end of data*/
    94 					/*Push d->dcf_cursor to the end of data*/
    94 					
    95 					
    95 					d->dcf_cursor += target_Size;
    96 					d->dcf_cursor += target_Size;
    96 					d->dcf_count_targets++;
    97 					d->dcf_count_targets++;
    97 					
    98