Hi,
1. To integrate these files into your projects, just add these files to your list of source files.
2. You can pass the pointer to the configuration as the parameter to Port_Init() function, then call it again when you want to switch the variant.
E.g., there are 2 generated Port configuration structures (Port_ConfigType) named as PortConfigSet_VS_0 and PortConfigSet_VS_1. At the beginning, you want to use PortConfigSet_VS_0, then you will call:
...
Port_Init(&PortConfigSet_VS_0);
...
When you want to switch to PortConfigSet_VS_1, simply call Port_Init again:
...
Port_Init(&PortConfigSet_VS_1);
...