InPackageID vs Node Id

Technical questions regarding the XTC tools and programming with XMOS.
Post Reply
User avatar
aneves
Experienced Member
Posts: 93
Joined: Wed Sep 16, 2015 2:38 pm

InPackageID vs Node Id

Post by aneves »

Hi Everyone,

In my pursuit of understanding XN files, I've come across something I don't 100% understand but I think should be easy to clear up.

I'm going through the XN spec doc and trying to get a grip on the different attributes of Node elements. What is the difference between the Id attribue and the InPackageId attribute?

Here's what i think it means, but hopefully someone can confirm or explain better.

Sounds to me like the Id attribute of a Node is the sole, unique ID of that Node no matter where it is located. The InPackageId is the Node's ID in the context of the Package element it is located in.

If that is the case, how are these different IDs used differently? When would you address a Node by one ID vs the other?

The XN spec states
Maps the node to an element in the package file.
What does this mean? Is this referring to the .pkg file for a device? I opened one such pkg file and a corresponding config_xxx.xml file and couldn't find a reasonable mapping between them with InPackageId's from that device's XN.

Maybe I'm overthinking this here, anyway, any explanation would be appreciated.

Thanks!


Post Reply