CanFestival 之同步原理分析

函数调用关系

states.c canDispatch->proceedSYNC

UNS8 proceedSYNC(CO_Data* d)
{

  UNS8 res;
 
  MSG_WAR(0x3002, "SYNC received. Proceed. ", 0);
 
  (*d->post_sync)(d); //sync.c  void _post_sync(CO_Data* d){}

  /* only operational state allows PDO transmission */
  if(! d->CurrentCommunicationState.csPDO)
    return 0;

  res = _sendPDOevent(d, 1 /*isSyncEvent*/ );
 
  /*Call user app callback*/
  (*d->post_TPDO)(d); //sync.c  void _post_TPDO(CO_Data* d){}
 
  return res;
 
}

 

CanFestival 没有实现时间戳功能

 


 

你可能感兴趣的:(CanFestival 之同步原理分析)