資源簡介
EtherCAT STM32F407 LAN9252 EtherCAT總線從站代碼,運(yùn)動(dòng)控制DS402協(xié)議

代碼片段和文件信息
/**
\addtogroup?AoE?ADS?over?EtherCAT
@{
*/
/**
\file?aoeappl.c
\author?EthercatSSC@beckhoff.com
\brief?Implementation
This?file?contains?the?AoE?mailbox?interface.
\version?5.11
Changes?to?version?V5.01:
V5.11?ECAT10:?change?PROTO?handling?to?prevent?compiler?errors
Changes?to?version?V4.40:
V5.01?MBX1:?Allocate?always?complete?16Bit?memory?areas
Changes?to?version?V4.10:
V4.40?COE1:?Prototype?of?function?OBJ_GetobjectList()?changed?(abortCode?added)
Changes?to?version?V4.08:
V4.10?AOEAPPL:?fix?some?issues?with?the?CoE?objects?access?over?AoE
*/
/*---------------------------------------------------------------------------------------
------
------????Includes
------
---------------------------------------------------------------------------------------*/
#include?“ecat_def.h“
#if?AOE_SUPPORTED
#include?“ecatslv.h“
#if?COE_SUPPORTED
#include?“objdef.h“
#endif
#define????_AOEAPPL_????1
#include?“aoeappl.h“
#undef??????_AOEAPPL_
/*?ECATCHANGE_START(V5.11)?ECAT10*/
/*remove?definition?of?_AOEAPPL_?(#ifdef?is?used?in?aoeappl.h)*/
/*?ECATCHANGE_END(V5.11)?ECAT10*/
/*---------------------------------------------------------------------------------------
------
------????internal?Types?and?Defines
------
---------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------
------
------????local?variables
------
---------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------
------
------????local?functions
------
---------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------
------
------????functions
------
---------------------------------------------------------------------------------------*/
/////////////////////////////////////////////////////////////////////////////////////////
/**
?\param?????pCmd??????Pointer?to?the?AMS?commands
?\brief????This?function?is?called?when?a?AMS?indication?shall?be?routed
*////////////////////////////////////////////////////////////////////////////////////////
UINT16????AOEAPPL_AmsInd(AmsCmd?MBXMEM?*pCmd)
{
????UINT16?result?=?0;
????if?(?pCmd->head.cmdId?==?ROUTERCMD_FRAGMENT?)
????{
????????/*?fragmented?AMS?command?*/
????????pCmd?=?AOE_FragmentedCmdInd(pCmd);
????????if?(pCmd?==?NULL)
????????{
????????????return?ERR_NOERROR;
????????}
????}
????if?(AOE_AmsNetIdsEqual(&pCmd->head.target.netId?&sRouterNetId))
????{
????????/*?Router?is?addressed?check?if?the?port?is?valid?*/
????????UINT16?port?=?SWAPWORD(pCmd->head.target.port);
????????UINT16?cmdId?=?SWAPWORD(pCmd->head.cmdId);
????????/*?only?port?65535?(for?
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件???????1582??2017-03-29?15:34??wm_lan9252_CiA402_20171001\Ethercat\Inc\aoeappl.h
?????文件???????4940??2017-03-29?15:34??wm_lan9252_CiA402_20171001\Ethercat\Inc\applInterface.h
?????文件???????1721??2017-03-29?15:34??wm_lan9252_CiA402_20171001\Ethercat\Inc\bootmode.h
?????文件??????61742??2018-02-28?17:17??wm_lan9252_CiA402_20171001\Ethercat\Inc\cia402appl.h
?????文件??????64623??2017-03-29?15:34??wm_lan9252_CiA402_20171001\Ethercat\Inc\cia402appl.h~RF1216d87(1).TMP
?????文件??????61722??2017-03-29?15:34??wm_lan9252_CiA402_20171001\Ethercat\Inc\cia402appl.h~RF178458f(1).TMP
?????文件??????61722??2017-03-29?15:34??wm_lan9252_CiA402_20171001\Ethercat\Inc\cia402appl.h~RF18674d9(1).TMP
?????文件??????61704??2017-03-29?15:34??wm_lan9252_CiA402_20171001\Ethercat\Inc\cia402appl.h~RF1aae5f3(1).TMP
?????文件??????61705??2017-03-29?15:34??wm_lan9252_CiA402_20171001\Ethercat\Inc\cia402appl.h~RF287f2e(1).TMP
?????文件??????61704??2017-03-29?15:34??wm_lan9252_CiA402_20171001\Ethercat\Inc\cia402appl.h~RF3c9fa9(1).TMP
?????文件??????61677??2017-03-29?15:34??wm_lan9252_CiA402_20171001\Ethercat\Inc\cia402appl.h~RF48d0e6(1).TMP
?????文件??????61704??2017-03-29?15:34??wm_lan9252_CiA402_20171001\Ethercat\Inc\cia402appl.h~RF50fe0e(1).TMP
?????文件??????61704??2017-03-29?15:34??wm_lan9252_CiA402_20171001\Ethercat\Inc\cia402appl.h~RF7026f2(1).TMP
?????文件??????61700??2017-03-29?15:34??wm_lan9252_CiA402_20171001\Ethercat\Inc\cia402appl.h~RF73a239(1).TMP
?????文件??????61724??2017-03-29?15:34??wm_lan9252_CiA402_20171001\Ethercat\Inc\cia402appl.h~RFd1ab5f(1).TMP
?????文件???????1937??2017-03-29?15:34??wm_lan9252_CiA402_20171001\Ethercat\Inc\coeappl.h
?????文件???????8483??2017-03-29?15:34??wm_lan9252_CiA402_20171001\Ethercat\Inc\diag.h
?????文件??????11759??2017-03-29?15:34??wm_lan9252_CiA402_20171001\Ethercat\Inc\ecataoe.h
?????文件???????5906??2017-03-29?15:34??wm_lan9252_CiA402_20171001\Ethercat\Inc\ecatappl.h
?????文件???????4218??2017-03-29?15:34??wm_lan9252_CiA402_20171001\Ethercat\Inc\ecatcoe.h
?????文件???????9551??2017-03-29?15:34??wm_lan9252_CiA402_20171001\Ethercat\Inc\ecateoe.h
?????文件???????9578??2017-03-29?15:34??wm_lan9252_CiA402_20171001\Ethercat\Inc\ecatfoe.h
?????文件??????29160??2017-09-30?07:36??wm_lan9252_CiA402_20171001\Ethercat\Inc\ecatslv.h
?????文件??????29091??2017-03-29?15:34??wm_lan9252_CiA402_20171001\Ethercat\Inc\ecatslv.h~RF134920.TMP
?????文件??????29154??2017-03-29?15:34??wm_lan9252_CiA402_20171001\Ethercat\Inc\ecatslv.h~RF511fe0.TMP
?????文件??????29151??2017-03-29?15:34??wm_lan9252_CiA402_20171001\Ethercat\Inc\ecatslv.h~RF741305.TMP
?????文件???????5134??2017-03-29?15:34??wm_lan9252_CiA402_20171001\Ethercat\Inc\ecatsoe.h
?????文件??????40748??2017-10-01?18:58??wm_lan9252_CiA402_20171001\Ethercat\Inc\ecat_def.h
?????文件??????41801??2017-03-29?15:34??wm_lan9252_CiA402_20171001\Ethercat\Inc\ecat_def.h~RF18bfb95.TMP
?????文件??????41785??2017-03-29?15:34??wm_lan9252_CiA402_20171001\Ethercat\Inc\ecat_def.h~RF199e325.TMP
............此處省略409個(gè)文件信息
評(píng)論
共有 條評(píng)論