PMBus™ Slave Example for XMC1300 devices.

This gives a simple reference application for implementing
several commands like: CAPABILITY, STATUS BYTE and STATUS WORD
The XMCLib version 2.0.0 or higher needs to be present in the project 
for the interaction between the hardware and the PMBusLib.
A PMBus™ Master device needs to be connected to the XMC in order to run the example.

For running this demo:

1. Create a new project in your favourite tool chain including XMCLib.

2. Add the library folder "PMBusLib" to your project.

3. Replace library "xmc_pmbus_common_conf.h" file with that included in the example folder:

	- Configuration of the library is done there:
	
		#define XMC_PMBUS_NODE_USIC0_CH0   XMC_PMBUS_ENABLE
		
4. Replace library "xmc_pmbus_common.c" file with that included in the example folder:

	- Callbacks for the three implemented commands have been added included their extern declaration:
	/* Extern declarations */
		extern XMC_PMBUS_STATUS_t XMC_PMBUS_NODE_CmdCapability(XMC_PMBUS_NODE_t *const node);
		extern XMC_PMBUS_STATUS_t XMC_PMBUS_NODE_CmdStatusByte(XMC_PMBUS_NODE_t * const node);
		extern XMC_PMBUS_STATUS_t XMC_PMBUS_NODE_CmdStatusWord(XMC_PMBUS_NODE_t * const node);
		   .
		   .
		   .
	/* Callback functions added to the callback command array */
	    const XMC_PMBUS_NODE_CMD_INFO_t cmd_info[] =
		{
            .
			.
			.			
		{.call_back = XMC_PMBUS_NODE_CmdCapability, .no_of_data_bytes = 1U, .attribute = (uint16_t) (XMC_PMBUS_PROTOCOL_RD_BYTE	)}, /* Command Code - 19h; Command Name = CAPABILITY*/
			.
			.
			.
		{.call_back = XMC_PMBUS_NODE_CmdStatusByte, .no_of_data_bytes = 1U, .attribute = (uint16_t) (XMC_PMBUS_PROTOCOL_WR_RD_BYTE	)}, /* Command Code - 78h; Command Name = STATUS_BYTE*/
		{.call_back = XMC_PMBUS_NODE_CmdStatusWord, .no_of_data_bytes = 2U, .attribute = (uint16_t) (XMC_PMBUS_PROTOCOL_WR_RD_WORD	)}, /* Command Code - 79h; Command Name = STATUS_WORD*/	
			.
			.
			.
		}
5. Copy the provided main.c.

6. Run both master and slave and check that the correct answer to the different commands is given.