Hi,
I am confused with the LinkId, procId and SelfProcId. In system_linkId.h, there are three defines
#define SYSTEM_MAKE_LINK_ID(p, x) (((p) <<28) | ((x) & 0x0FFFFFFF))
#define SYSTEM_GET_LINK_ID(x) ((x) & 0x0FFFFFFF)
#define SYSTEM_GET_PROC_ID(x) (((x) & ~0x0FFFFFFF)>>28)
In system_common.c, there is a function called System_getSelfProcId. It will called to get procId. I think this function is the same as SYSTEM_GET_PROC_ID
The System_sendLinkCmd() function will check if SYSTEM_GET_PROC_ID(LinkId)!=System_getSelfProcId(), then decide to send command to MsgQ or local. I don't understand for whick Link the above condition will be true.
Could someone give me an example?
Thanks in advance!