Description
Universal memory hex dump function. Use it for debugging purpose. This function makes use of the CPrintf() function. The data is dumped to the output device selceted by CPrintf_select_output().
Example
Receive demo ( \D.SignT\Network\DM2DM642EMAC\Projects\UDP\Receive\receive.c
): xd() is used in a callback function:
{
switch (ec)
{
xd (data, len, TRUE, (
uint32_t)data,
sizeof(
char));
break;
default:
break;
}
return (1);
}
Any time data is received the data is dumped to the output device:
-------------------------------------------------
| D.SignT receive demo |
| |
| (c) 2017 D.SignT www.dsignt.de |
| |
| netlib revision: 2.91 |
-------------------------------------------------
initialize network... ...success
assigned network configuration:
MAC address: 02-00-c0-41-02-94
IP address: 192.168.168.200
DNS Server: 192.168.168.1
Link status changed: No Link
Link status changed: Linked at 100Mbit half duplex
00000518: 01 | .
00000518: 02 00 | ..
00000518: 01 | .
00000518: 02 00 | ..
00000518: 02 01 | ..
00000518: 02 02 | ..
00000518: 02 03 | ..